Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008957/0.0008957, allocations: 76.45 kB / 19.94 MB, free: 4.609 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 169.6 kB / 23.22 MB, free: 1.328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9112/0.9112, allocations: 177.2 MB / 203.6 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06342/0.06342, allocations: 18.04 MB / 278.1 MB, free: 11.64 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 67.27 kB / 415.8 MB, free: 12.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1286, allocations: 59.66 MB / 475.5 MB, free: 12.6 MB / 378.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.002409/0.131, allocations: 1.817 MB / 477.3 MB, free: 10.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003958/0.1314, allocations: 199 kB / 477.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.282e-05/0.1315, allocations: 3.938 kB / 477.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.1316, allocations: 39.53 kB / 477.5 MB, free: 10.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.148e-05/0.1316, allocations: 15.81 kB / 477.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.1318, allocations: 91.88 kB / 477.6 MB, free: 10.43 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.1321, allocations: 236.8 kB / 477.8 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.1322, allocations: 48.48 kB / 477.9 MB, free: 10.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.675e-05/0.1323, allocations: 83.7 kB / 478 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.363e-05/0.1324, allocations: 83.47 kB / 478.1 MB, free: 9.984 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.1324, allocations: 23.98 kB / 478.1 MB, free: 9.961 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.181e-05/0.1324, allocations: 20 kB / 478.1 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.583e-05/0.1324, allocations: 47.84 kB / 478.1 MB, free: 9.895 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.571e-05/0.1325, allocations: 75.58 kB / 478.2 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.1327, allocations: 219 kB / 478.4 MB, free: 9.605 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1327, allocations: 4 kB / 478.4 MB, free: 9.602 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1327, allocations: 0 / 478.4 MB, free: 9.602 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1327, allocations: 0 / 478.4 MB, free: 9.602 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005716/0.1333, allocations: 445.8 kB / 478.9 MB, free: 9.133 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1333, allocations: 8.922 kB / 478.9 MB, free: 9.125 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.1333, allocations: 54.72 kB / 478.9 MB, free: 9.062 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.973e-05/0.1334, allocations: 28.8 kB / 479 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1336, allocations: 186.7 kB / 479.1 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.1336, allocations: 20.88 kB / 479.2 MB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.1337, allocations: 20.38 kB / 479.2 MB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.134, allocations: 237.6 kB / 479.4 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.134, allocations: 7.938 kB / 479.4 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.134, allocations: 8 kB / 479.4 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.134, allocations: 4 kB / 479.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.1342, allocations: 153 kB / 479.6 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.1352, allocations: 0.9431 MB / 480.5 MB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.1354, allocations: 154.5 kB / 480.7 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.933e-05/0.1355, allocations: 60.84 kB / 480.7 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.1356, allocations: 7.984 kB / 480.8 MB, free: 7.129 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.1356, allocations: 34.56 kB / 480.8 MB, free: 7.086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.1356, allocations: 4 kB / 480.8 MB, free: 7.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003551/0.1359, allocations: 237.7 kB / 481 MB, free: 6.844 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.136, allocations: 59.34 kB / 481.1 MB, free: 6.773 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1361, allocations: 216.2 kB / 481.3 MB, free: 6.555 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.1361, allocations: 33.7 kB / 481.3 MB, free: 6.516 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.118e-05/0.1362, allocations: 156.3 kB / 481.5 MB, free: 6.359 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.992e-05/0.1362, allocations: 83.33 kB / 481.6 MB, free: 6.277 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.1363, allocations: 73.64 kB / 481.6 MB, free: 6.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.362e-05/0.1364, allocations: 330.8 kB / 482 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.564e-05/0.1365, allocations: 75.75 kB / 482 MB, free: 5.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.1366, allocations: 167.4 kB / 482.2 MB, free: 5.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.1374, allocations: 461.2 kB / 482.6 MB, free: 5.102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1374, allocations: 0 / 482.6 MB, free: 5.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003149/0.1377, allocations: 313 kB / 482.9 MB, free: 4.789 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.1377, allocations: 8.375 kB / 483 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1377, allocations: 15.98 kB / 483 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1377, allocations: 4 kB / 483 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.1379, allocations: 75.91 kB / 483 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1379, allocations: 7.938 kB / 483.1 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.63e-05/0.138, allocations: 39.72 kB / 483.1 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.138, allocations: 16 kB / 483.1 MB, free: 4.625 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.1381, allocations: 137.8 kB / 483.2 MB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.1382, allocations: 27.8 kB / 483.3 MB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002715/0.1384, allocations: 223.3 kB / 483.5 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1384, allocations: 0 / 483.5 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1384, allocations: 4 kB / 483.5 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.1384, allocations: 3.938 kB / 483.5 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.1387, allocations: 260.5 kB / 483.8 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1387, allocations: 0 / 483.8 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.1389, allocations: 51.97 kB / 483.8 MB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1389, allocations: 0 / 483.8 MB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1389, allocations: 15.98 kB / 483.8 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1389, allocations: 0 / 483.8 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1389, allocations: 0 / 483.8 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003487/0.1393, allocations: 377.9 kB / 484.2 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.844e-05/0.1393, allocations: 19.8 kB / 484.2 MB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.1393, allocations: 11.98 kB / 484.2 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.638e-05/0.1394, allocations: 4 kB / 484.2 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.1394, allocations: 23.95 kB / 484.2 MB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.1394, allocations: 8 kB / 484.3 MB, free: 3.395 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.449e-05/0.1395, allocations: 139.2 kB / 484.4 MB, free: 3.258 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1395, allocations: 4 kB / 484.4 MB, free: 3.254 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002058/0.1397, allocations: 51.88 kB / 484.4 MB, free: 3.203 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005152/0.1402, allocations: 0.9118 MB / 485.4 MB, free: 2.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.1405, allocations: 190.8 kB / 485.5 MB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1405, allocations: 0.75 kB / 485.5 MB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.815e-05/0.1406, allocations: 91.91 kB / 485.6 MB, free: 1.992 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.1408, allocations: 27.33 kB / 485.7 MB, free: 1.969 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.1429, allocations: 2.637 MB / 488.3 MB, free: 15.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.399e-05/0.143, allocations: 130.5 kB / 488.4 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.626e-05/0.143, allocations: 34.28 kB / 488.5 MB, free: 15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.435e-05/0.1431, allocations: 80.47 kB / 488.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.1431, allocations: 0 / 488.5 MB, free: 14.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.1597, allocations: 5.328 MB / 493.9 MB, free: 9.715 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.965/7.125, allocations: 3.281 kB / 493.9 MB, free: 9.715 MB / 394.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_basic_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.241007237927988] Failed to read output from testmodel.py, exit status != 0: 7.209947096882388 7.218265165 7.083877449 Calling exit ...