Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.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.002262/0.002262, allocations: 109.4 kB / 17.15 MB, free: 6.02 MB / 14.72 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.003021/0.003021, allocations: 203.2 kB / 20.11 MB, free: 3.066 MB / 14.72 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 1.718/1.718, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.1056/0.1056, allocations: 24.04 MB / 333.6 MB, free: 1.566 MB / 254.1 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: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") [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.002038/0.002038, allocations: 72.97 kB / 468.9 MB, free: 31.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1218, allocations: 59.56 MB / 0.5161 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.005144/0.1269, allocations: 3.466 MB / 0.5195 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.1295, allocations: 1.064 MB / 0.5205 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.1297, allocations: 4 kB / 0.5205 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.13, allocations: 79.22 kB / 0.5206 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005506/0.1306, allocations: 218.4 kB / 0.5208 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006944/0.1312, allocations: 223.6 kB / 0.521 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.1323, allocations: 0.8576 MB / 0.5218 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008613/0.1331, allocations: 0.5449 MB / 0.5224 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005891/0.1337, allocations: 430.8 kB / 0.5228 GB, free: 5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008212/0.1346, allocations: 0.5842 MB / 0.5233 GB, free: 4.414 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.1347, allocations: 104 kB / 0.5234 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002442/0.135, allocations: 135.9 kB / 0.5236 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002839/0.1352, allocations: 283.2 kB / 0.5238 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000456/0.1357, allocations: 426.2 kB / 0.5243 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.1369, allocations: 1.063 MB / 0.5253 GB, free: 2.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1369, allocations: 3.938 kB / 0.5253 GB, free: 2.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1369, allocations: 0 / 0.5253 GB, free: 2.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.1369, allocations: 4 kB / 0.5253 GB, free: 2.41 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002741/0.1397, allocations: 1.063 MB / 0.5263 GB, free: 1.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1397, allocations: 8.625 kB / 0.5263 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.1399, allocations: 72.52 kB / 0.5264 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007479/0.1407, allocations: 463.5 kB / 0.5269 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.1407, allocations: 41.69 kB / 0.5269 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1409, allocations: 60.33 kB / 0.527 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1423, allocations: 0.7718 MB / 0.5277 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.1424, allocations: 0 / 0.5277 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.792e-05/0.1425, allocations: 27.98 kB / 0.5277 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.1425, allocations: 16 kB / 0.5277 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.1442, allocations: 0.8405 MB / 0.5286 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005357/0.1495, allocations: 2.338 MB / 0.5309 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1508, allocations: 0.6183 MB / 0.5315 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.1518, allocations: 411.1 kB / 0.5318 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.556e-05/0.1519, allocations: 20.53 kB / 0.5319 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.152, allocations: 47.06 kB / 0.5319 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00104/0.153, allocations: 239.4 kB / 0.5321 GB, free: 11.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.126e-06/0.153, allocations: 4 kB / 0.5321 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.0171/0.1701, allocations: 4.058 MB / 0.5361 GB, free: 7.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.1702, allocations: 60.06 kB / 0.5362 GB, free: 7.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006515/0.1708, allocations: 457.8 kB / 0.5366 GB, free: 6.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.1709, allocations: 41.7 kB / 0.5366 GB, free: 6.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.1712, allocations: 261.2 kB / 0.5369 GB, free: 6.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.1715, allocations: 297.5 kB / 0.5372 GB, free: 5.957 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.1718, allocations: 178.5 kB / 0.5373 GB, free: 5.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002172/0.1721, allocations: 378.8 kB / 0.5377 GB, free: 5.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/0.173, allocations: 397.8 kB / 0.5381 GB, free: 5.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.174, allocations: 0.5217 MB / 0.5386 GB, free: 4.453 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0271/0.2011, allocations: 4.824 MB / 0.5433 GB, free: 15.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.2011, allocations: 4 kB / 0.5433 GB, free: 15.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.007713/0.2089, allocations: 1.777 MB / 0.545 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.2089, allocations: 14.44 kB / 0.5451 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.2089, allocations: 4 kB / 0.5451 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006534/0.2154, allocations: 1.034 MB / 0.5461 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/0.217, allocations: 259.7 kB / 0.5463 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/0.2255, allocations: 5.268 MB / 0.5515 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.2266, allocations: 40 kB / 0.5515 GB, free: 6.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002475/0.2268, allocations: 51.94 kB / 0.5516 GB, free: 6.852 MB / 414.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.streamNL.w = 0.0 $DER.streamLIN.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006037/0.2274, allocations: 213.8 kB / 0.5518 GB, free: 6.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.2276, allocations: 63.58 kB / 0.5518 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004949/0.2326, allocations: 1.543 MB / 0.5533 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.2326, allocations: 15.94 kB / 0.5533 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.2326, allocations: 112 / 0.5533 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.2326, allocations: 15.84 kB / 0.5534 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00626/0.2389, allocations: 2.341 MB / 0.5556 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.2389, allocations: 0 / 0.5556 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.2402, allocations: 239.6 kB / 0.5559 GB, free: 2.328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00357/0.2438, allocations: 0.6831 MB / 0.5565 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.2439, allocations: 27.98 kB / 0.5566 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005932/0.2498, allocations: 4.61 MB / 0.5611 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2498, allocations: 0 / 0.5611 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00567/0.2555, allocations: 1.964 MB / 0.563 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.2558, allocations: 144.5 kB / 0.5631 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.2559, allocations: 20 kB / 0.5631 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006786/0.2566, allocations: 31.97 kB / 0.5632 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.2569, allocations: 72.89 kB / 0.5632 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-05/0.2569, allocations: 31.98 kB / 0.5633 GB, free: 10.44 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004945/0.2574, allocations: 319.1 kB / 0.5636 GB, free: 10.13 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2574, allocations: 0 / 0.5636 GB, free: 10.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001001/0.2584, allocations: 244 kB / 0.5638 GB, free: 9.895 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003062/0.2587, allocations: 143.1 kB / 0.5639 GB, free: 9.742 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003611/0.2624, allocations: 1.25 MB / 0.5652 GB, free: 8.477 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2624, allocations: 0 / 0.5652 GB, free: 8.477 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/0.2644, allocations: 0.7344 MB / 0.5659 GB, free: 7.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008143/0.2652, allocations: 132.2 kB / 0.566 GB, free: 7.605 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005342/0.2705, allocations: 2.16 MB / 0.5681 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009195/0.2715, allocations: 0.9326 MB / 0.569 GB, free: 4.453 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007128/0.2722, allocations: 153.6 kB / 0.5692 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.2725, allocations: 71.34 kB / 0.5692 GB, free: 4.23 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.2725, allocations: 4 kB / 0.5692 GB, free: 4.227 MB / 430.1 MB Notification: Performance of Templates: time 0.03046/0.303, allocations: 14.94 MB / 0.5838 GB, free: 5.426 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.018137177452445] Failed to read output from testmodel.py, exit status != 0: 0.31341908872127533 0.562623861 0.42285634799999994 Calling exit ...