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.001681/0.001681, allocations: 103.2 kB / 16.45 MB, free: 6.5 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.001517/0.001517, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.577/1.577, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1077/0.1077, allocations: 24.02 MB / 332.9 MB, free: 12.71 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_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.003337/0.003337, allocations: 71.89 kB / 468.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4106, allocations: 59.54 MB / 0.5154 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004123/0.4147, allocations: 3.467 MB / 0.5188 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.4166, allocations: 1.064 MB / 0.5198 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.4169, allocations: 7.719 kB / 0.5198 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.4171, allocations: 77.59 kB / 0.5199 GB, free: 6.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005047/0.4176, allocations: 219 kB / 0.5201 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006971/0.4183, allocations: 222 kB / 0.5203 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009718/0.4193, allocations: 0.8649 MB / 0.5212 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007041/0.42, allocations: 0.5486 MB / 0.5217 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004987/0.4205, allocations: 428.4 kB / 0.5221 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000677/0.4211, allocations: 0.5975 MB / 0.5227 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.4213, allocations: 99.62 kB / 0.5228 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002538/0.4216, allocations: 128.9 kB / 0.5229 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.4218, allocations: 281.6 kB / 0.5232 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.4221, allocations: 428.6 kB / 0.5236 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.4233, allocations: 1.063 MB / 0.5246 GB, free: 4.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.4233, allocations: 0 / 0.5246 GB, free: 4.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4233, allocations: 1.062 kB / 0.5246 GB, free: 4.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4233, allocations: 0 / 0.5246 GB, free: 4.621 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.002542/0.4258, allocations: 1.057 MB / 0.5256 GB, free: 3.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.4259, allocations: 10.75 kB / 0.5257 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.426, allocations: 78.7 kB / 0.5257 GB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.4267, allocations: 470 kB / 0.5262 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.4267, allocations: 40.34 kB / 0.5262 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.4268, allocations: 62.33 kB / 0.5263 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4283, allocations: 0.7643 MB / 0.527 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.4283, allocations: 5.922 kB / 0.527 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.52e-05/0.4284, allocations: 19.91 kB / 0.5271 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.4284, allocations: 13.28 kB / 0.5271 GB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002231/0.4306, allocations: 0.8468 MB / 0.5279 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007874/0.4385, allocations: 2.338 MB / 0.5302 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.4404, allocations: 0.6118 MB / 0.5308 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.4417, allocations: 413.6 kB / 0.5312 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.809e-05/0.4417, allocations: 18.66 kB / 0.5312 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.4418, allocations: 44.36 kB / 0.5312 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001647/0.4434, allocations: 234.9 kB / 0.5315 GB, free: 1.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 3.927e-06/0.4434, allocations: 0 / 0.5315 GB, free: 1.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.02502/0.4684, allocations: 4.065 MB / 0.5354 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.969e-05/0.4685, allocations: 63.45 kB / 0.5355 GB, free: 15.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.4696, allocations: 450.2 kB / 0.5359 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003214/0.4699, allocations: 41.42 kB / 0.5359 GB, free: 15.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/0.4702, allocations: 263.9 kB / 0.5362 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.4707, allocations: 303 kB / 0.5365 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005023/0.4712, allocations: 183.5 kB / 0.5367 GB, free: 14.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002615/0.4715, allocations: 373.2 kB / 0.537 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.4729, allocations: 396.2 kB / 0.5374 GB, free: 13.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.4746, allocations: 0.5294 MB / 0.5379 GB, free: 13.63 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.03086/0.5055, allocations: 4.824 MB / 0.5426 GB, free: 11.3 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.5055, allocations: 3.875 kB / 0.5426 GB, free: 11.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.006967/0.5124, allocations: 1.781 MB / 0.5444 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/0.5125, allocations: 10.12 kB / 0.5444 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.5125, allocations: 3.469 kB / 0.5444 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006448/0.5189, allocations: 1.025 MB / 0.5454 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.5205, allocations: 263.4 kB / 0.5456 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007603/0.5281, allocations: 5.271 MB / 0.5508 GB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5292, allocations: 44.77 kB / 0.5508 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.5293, allocations: 48.55 kB / 0.5509 GB, free: 5.043 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 {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005011/0.5298, allocations: 213.2 kB / 0.5511 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.53, allocations: 67.98 kB / 0.5511 GB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004617/0.5346, allocations: 1.54 MB / 0.5526 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.5346, allocations: 13.47 kB / 0.5527 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.5346, allocations: 2.375 kB / 0.5527 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.5346, allocations: 9.094 kB / 0.5527 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005958/0.5406, allocations: 2.334 MB / 0.5549 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.5406, allocations: 4 kB / 0.555 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001281/0.5419, allocations: 225 kB / 0.5552 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003481/0.5454, allocations: 0.6908 MB / 0.5558 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.5455, allocations: 32.97 kB / 0.5559 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005604/0.5511, allocations: 4.604 MB / 0.5604 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5511, allocations: 0 / 0.5604 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005349/0.5565, allocations: 1.964 MB / 0.5623 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.5567, allocations: 144.7 kB / 0.5624 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/0.5569, allocations: 27.92 kB / 0.5624 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006104/0.5575, allocations: 35.95 kB / 0.5625 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.5577, allocations: 76.88 kB / 0.5626 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.312e-05/0.5577, allocations: 23.98 kB / 0.5626 GB, free: 11.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004148/0.5582, allocations: 327.1 kB / 0.5629 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5582, allocations: 0 / 0.5629 GB, free: 10.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009458/0.5591, allocations: 236 kB / 0.5631 GB, free: 10.64 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 (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.0002756/0.5594, allocations: 143.2 kB / 0.5633 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003421/0.5628, allocations: 1.246 MB / 0.5645 GB, free: 9.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5628, allocations: 192 / 0.5645 GB, free: 9.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.5647, allocations: 0.7227 MB / 0.5652 GB, free: 8.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007776/0.5655, allocations: 143.6 kB / 0.5653 GB, free: 8.363 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.5701, allocations: 2.18 MB / 0.5674 GB, free: 6.148 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006254/0.5707, allocations: 0.9249 MB / 0.5683 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000577/0.5713, allocations: 153.6 kB / 0.5685 GB, free: 5.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.5715, allocations: 67.41 kB / 0.5686 GB, free: 4.98 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5715, allocations: 0 / 0.5686 GB, free: 4.98 MB / 414.1 MB Notification: Performance of Templates: time 0.02699/0.5985, allocations: 14.93 MB / 0.5831 GB, free: 6.18 MB / 430.1 MB " [Timeout remaining time 659] 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.091245466843247] Failed to read output from testmodel.py, exit status != 0: 0.6098032630980015 0.620365063 0.194164483 Calling exit ...