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_002.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.001312/0.001312, allocations: 115.6 kB / 16.46 MB, free: 6.453 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.001419/0.001419, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.535/1.535, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.101/0.101, allocations: 22.92 MB / 331.8 MB, free: 13.78 MB / 270.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") [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.002243/0.002243, allocations: 67.89 kB / 466.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3861/0.3884, allocations: 59.25 MB / 0.5135 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003933/0.3923, allocations: 3.58 MB / 0.517 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3941, allocations: 1.105 MB / 0.5181 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.3943, allocations: 11.47 kB / 0.5181 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.3945, allocations: 83.12 kB / 0.5181 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004444/0.3949, allocations: 230.1 kB / 0.5184 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005253/0.3955, allocations: 239.6 kB / 0.5186 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007991/0.3963, allocations: 0.9149 MB / 0.5195 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006137/0.3969, allocations: 0.567 MB / 0.52 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.3973, allocations: 453.7 kB / 0.5205 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007578/0.3981, allocations: 0.6278 MB / 0.5211 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.3983, allocations: 103.3 kB / 0.5212 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.3985, allocations: 140.5 kB / 0.5213 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.3987, allocations: 286.6 kB / 0.5216 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003922/0.3991, allocations: 458.2 kB / 0.522 GB, free: 5.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008759/0.4, allocations: 1.122 MB / 0.5231 GB, free: 5.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.4, allocations: 1.25 kB / 0.5231 GB, free: 5.352 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4, allocations: 0.5156 kB / 0.5231 GB, free: 5.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.4, allocations: 0 / 0.5231 GB, free: 5.352 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002435/0.4025, allocations: 1.121 MB / 0.5242 GB, free: 4.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4025, allocations: 13.11 kB / 0.5242 GB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.4027, allocations: 82.47 kB / 0.5243 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.4033, allocations: 498.7 kB / 0.5248 GB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.4033, allocations: 43.75 kB / 0.5248 GB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.4035, allocations: 59.06 kB / 0.5249 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.4049, allocations: 0.7904 MB / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4049, allocations: 0 / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/0.405, allocations: 21.62 kB / 0.5257 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.405, allocations: 12.91 kB / 0.5257 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.4066, allocations: 0.8685 MB / 0.5265 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.4108, allocations: 2.055 MB / 0.5285 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.4119, allocations: 0.6304 MB / 0.5292 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.4126, allocations: 395.4 kB / 0.5295 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.619e-05/0.4127, allocations: 18.45 kB / 0.5296 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.4127, allocations: 48.11 kB / 0.5296 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001008/0.4137, allocations: 235.8 kB / 0.5298 GB, free: 1.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 2.956e-06/0.4137, allocations: 0 / 0.5298 GB, free: 1.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=84): time 0.02002/0.4337, allocations: 4.928 MB / 0.5346 GB, free: 15.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.4338, allocations: 61.44 kB / 0.5347 GB, free: 15.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007201/0.4345, allocations: 492.1 kB / 0.5352 GB, free: 15.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.4346, allocations: 40.98 kB / 0.5352 GB, free: 15.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.435, allocations: 303.4 kB / 0.5355 GB, free: 15.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.4354, allocations: 312.8 kB / 0.5358 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005179/0.4359, allocations: 192.5 kB / 0.536 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002478/0.4361, allocations: 382.9 kB / 0.5363 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.4375, allocations: 435.5 kB / 0.5368 GB, free: 14.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.439, allocations: 0.5616 MB / 0.5373 GB, free: 13.89 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.04019/0.4792, allocations: 5.494 MB / 0.5427 GB, free: 11.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.4792, allocations: 4.812 kB / 0.5427 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.01059/0.4898, allocations: 1.945 MB / 0.5446 GB, free: 10.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.4899, allocations: 7.25 kB / 0.5446 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.4899, allocations: 7.344 kB / 0.5446 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007006/0.4969, allocations: 0.9927 MB / 0.5456 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.4985, allocations: 258.5 kB / 0.5458 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008115/0.5067, allocations: 5.421 MB / 0.5511 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.5078, allocations: 40.56 kB / 0.5511 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.5079, allocations: 53.84 kB / 0.5512 GB, free: 4.84 MB / 398.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 {(2,5), (2,5), (2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004797/0.5084, allocations: 212.9 kB / 0.5514 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.5085, allocations: 70.94 kB / 0.5515 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005078/0.5136, allocations: 1.718 MB / 0.5531 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.5136, allocations: 11.05 kB / 0.5532 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5136, allocations: 5.281 kB / 0.5532 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.5136, allocations: 5.297 kB / 0.5532 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006429/0.5201, allocations: 2.563 MB / 0.5557 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.5201, allocations: 0 / 0.5557 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.5214, allocations: 231.5 kB / 0.5559 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003518/0.5249, allocations: 0.6901 MB / 0.5566 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/0.5251, allocations: 23.98 kB / 0.5566 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005935/0.5311, allocations: 4.723 MB / 0.5612 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.5311, allocations: 3.984 kB / 0.5612 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005795/0.5369, allocations: 2.171 MB / 0.5633 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.5372, allocations: 156.5 kB / 0.5635 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.5373, allocations: 23.98 kB / 0.5635 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006582/0.5379, allocations: 35.97 kB / 0.5635 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.5382, allocations: 73.19 kB / 0.5636 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.5382, allocations: 39.92 kB / 0.5636 GB, free: 9.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004622/0.5387, allocations: 350.8 kB / 0.564 GB, free: 9.402 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5387, allocations: 0 / 0.564 GB, free: 9.402 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009999/0.5397, allocations: 248 kB / 0.5642 GB, free: 9.16 MB / 414.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 (73): * Single equations (assignments): 68 * 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 {(2,5), (2,5), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002872/0.54, allocations: 139.8 kB / 0.5643 GB, free: 9.012 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.5436, allocations: 1.327 MB / 0.5656 GB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.5436, allocations: 192 / 0.5656 GB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.5457, allocations: 0.7929 MB / 0.5664 GB, free: 6.867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008856/0.5466, allocations: 137.8 kB / 0.5665 GB, free: 6.734 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.5514, allocations: 2.289 MB / 0.5688 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.5521, allocations: 0.9562 MB / 0.5697 GB, free: 3.434 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005617/0.5526, allocations: 153.9 kB / 0.5699 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.5529, allocations: 75.39 kB / 0.5699 GB, free: 3.207 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5529, allocations: 0 / 0.5699 GB, free: 3.207 MB / 414.1 MB Notification: Performance of Templates: time 0.02685/0.5798, allocations: 15.84 MB / 0.5854 GB, free: 3.496 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.809793829917908] Failed to read output from testmodel.py, exit status != 0: 0.5884048622101545 0.6004840210000001 0.19766413700000002 Calling exit ...