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.001654/0.001654, allocations: 109.4 kB / 17.14 MB, free: 6.043 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.002357/0.002357, allocations: 207.2 kB / 20.11 MB, free: 3.086 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.64/1.64, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1088/0.1088, allocations: 24.03 MB / 333.6 MB, free: 1.551 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_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.00309/0.00309, allocations: 79.62 kB / 468.9 MB, free: 31.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.14, allocations: 59.55 MB / 0.5161 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.005923/0.1459, allocations: 3.581 MB / 0.5196 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002765/0.1487, allocations: 1.111 MB / 0.5207 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005258/0.1492, allocations: 7.938 kB / 0.5207 GB, free: 7.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004007/0.1496, allocations: 83.14 kB / 0.5207 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009153/0.1505, allocations: 226.3 kB / 0.521 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009694/0.1515, allocations: 243.5 kB / 0.5212 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.1531, allocations: 0.9197 MB / 0.5221 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.1541, allocations: 0.5644 MB / 0.5226 GB, free: 5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008859/0.155, allocations: 446.7 kB / 0.5231 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.1561, allocations: 0.6309 MB / 0.5237 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001772/0.1562, allocations: 108 kB / 0.5238 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002883/0.1565, allocations: 132 kB / 0.5239 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002915/0.1568, allocations: 295.2 kB / 0.5242 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005055/0.1573, allocations: 458 kB / 0.5246 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.1587, allocations: 1.117 MB / 0.5257 GB, free: 1.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1587, allocations: 4 kB / 0.5257 GB, free: 1.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1587, allocations: 0 / 0.5257 GB, free: 1.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.1587, allocations: 4 kB / 0.5257 GB, free: 1.828 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.003005/0.1617, allocations: 1.121 MB / 0.5268 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.1618, allocations: 12.62 kB / 0.5268 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.1619, allocations: 76.47 kB / 0.5269 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009565/0.1629, allocations: 0.5031 MB / 0.5274 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.46e-05/0.163, allocations: 37.73 kB / 0.5274 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.1631, allocations: 64.33 kB / 0.5275 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1646, allocations: 0.7951 MB / 0.5283 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1646, allocations: 0 / 0.5283 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.407e-05/0.1647, allocations: 20 kB / 0.5283 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.1647, allocations: 12 kB / 0.5283 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.1664, allocations: 0.8679 MB / 0.5291 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004524/0.1709, allocations: 2.071 MB / 0.5312 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1721, allocations: 0.6283 MB / 0.5318 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007608/0.1729, allocations: 394.4 kB / 0.5322 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.113e-05/0.1729, allocations: 20.53 kB / 0.5322 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.173, allocations: 39.12 kB / 0.5322 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001046/0.174, allocations: 255.4 kB / 0.5325 GB, free: 10.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.525e-06/0.174, allocations: 0 / 0.5325 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=84): time 0.02059/0.1946, allocations: 4.984 MB / 0.5373 GB, free: 5.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.527e-05/0.1947, allocations: 60.41 kB / 0.5374 GB, free: 5.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007867/0.1955, allocations: 0.4902 MB / 0.5379 GB, free: 5.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.1956, allocations: 37.7 kB / 0.5379 GB, free: 5.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.1959, allocations: 301 kB / 0.5382 GB, free: 4.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003901/0.1963, allocations: 313.3 kB / 0.5385 GB, free: 4.434 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003537/0.1967, allocations: 190.5 kB / 0.5387 GB, free: 4.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.1969, allocations: 386.7 kB / 0.539 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009969/0.1979, allocations: 441.8 kB / 0.5395 GB, free: 3.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.199, allocations: 0.5613 MB / 0.54 GB, free: 2.82 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.03007/0.2291, allocations: 5.527 MB / 0.5454 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.2291, allocations: 0 / 0.5454 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.007386/0.2365, allocations: 1.968 MB / 0.5473 GB, free: 11.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.2365, allocations: 12 kB / 0.5473 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.459e-05/0.2365, allocations: 11.92 kB / 0.5473 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006145/0.2427, allocations: 1.007 MB / 0.5483 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.2443, allocations: 263.6 kB / 0.5486 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008852/0.2531, allocations: 5.44 MB / 0.5539 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.2543, allocations: 43.97 kB / 0.5539 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002284/0.2545, allocations: 55.94 kB / 0.554 GB, free: 4.164 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 {(2,5), (2,5), (2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005774/0.2551, allocations: 218.4 kB / 0.5542 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.2553, allocations: 71.53 kB / 0.5543 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005427/0.2607, allocations: 1.746 MB / 0.556 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.2607, allocations: 8 kB / 0.556 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.2607, allocations: 4 kB / 0.556 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.2608, allocations: 7.969 kB / 0.556 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006501/0.2673, allocations: 2.601 MB / 0.5585 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.2673, allocations: 0 / 0.5585 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.2686, allocations: 227.7 kB / 0.5587 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003581/0.2722, allocations: 0.6989 MB / 0.5594 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.2723, allocations: 35.97 kB / 0.5595 GB, free: 14.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006297/0.2786, allocations: 4.753 MB / 0.5641 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2786, allocations: 0 / 0.5641 GB, free: 9.441 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006101/0.2847, allocations: 2.198 MB / 0.5663 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.2851, allocations: 156.5 kB / 0.5664 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.2853, allocations: 19.98 kB / 0.5664 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007263/0.286, allocations: 39.97 kB / 0.5665 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.2862, allocations: 72.89 kB / 0.5665 GB, free: 6.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/0.2863, allocations: 35.97 kB / 0.5666 GB, free: 6.875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004966/0.2868, allocations: 350.9 kB / 0.5669 GB, free: 6.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2868, allocations: 0 / 0.5669 GB, free: 6.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000977/0.2878, allocations: 248 kB / 0.5671 GB, free: 6.293 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 (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.0002942/0.2881, allocations: 143.2 kB / 0.5673 GB, free: 6.141 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003887/0.292, allocations: 1.339 MB / 0.5686 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.292, allocations: 8.062 kB / 0.5686 GB, free: 4.777 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.2941, allocations: 0.8007 MB / 0.5694 GB, free: 3.969 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007493/0.2948, allocations: 140.4 kB / 0.5695 GB, free: 3.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/0.2998, allocations: 2.288 MB / 0.5717 GB, free: 1.516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006953/0.3005, allocations: 0.9523 MB / 0.5727 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000524/0.301, allocations: 157.9 kB / 0.5728 GB, free: 392 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.3013, allocations: 67.41 kB / 0.5729 GB, free: 324 kB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3013, allocations: 3.938 kB / 0.5729 GB, free: 320 kB / 430.1 MB Notification: Performance of Templates: time 0.03014/0.3314, allocations: 15.93 MB / 0.5884 GB, free: 0.5117 MB / 446.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: 6.1780471578240395] Failed to read output from testmodel.py, exit status != 0: 0.6205628756433725 0.631792457 0.470458232 Calling exit ...