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_001.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.001821/0.001821, allocations: 112.5 kB / 17.14 MB, free: 5.922 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.002035/0.002035, allocations: 213.1 kB / 20.11 MB, free: 2.965 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.648/1.648, allocations: 230.6 MB / 253.5 MB, free: 15.25 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.1034/0.1034, allocations: 24.02 MB / 333.6 MB, free: 1.605 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") [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.002055/0.002055, allocations: 77.34 kB / 469.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1305, allocations: 59.54 MB / 0.5168 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004959/0.1354, allocations: 3.043 MB / 0.5197 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.1375, allocations: 0.9705 MB / 0.5207 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.1376, allocations: 4 kB / 0.5207 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1378, allocations: 63.36 kB / 0.5207 GB, free: 7.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004315/0.1383, allocations: 182.8 kB / 0.5209 GB, free: 6.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005342/0.1388, allocations: 187.6 kB / 0.5211 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008132/0.1396, allocations: 0.7175 MB / 0.5218 GB, free: 5.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005158/0.1401, allocations: 351.8 kB / 0.5221 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004666/0.1406, allocations: 327 kB / 0.5224 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006174/0.1412, allocations: 418.7 kB / 0.5228 GB, free: 4.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.1413, allocations: 72 kB / 0.5229 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.1415, allocations: 104 kB / 0.523 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.1418, allocations: 207.4 kB / 0.5232 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003721/0.1421, allocations: 334.5 kB / 0.5235 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009008/0.143, allocations: 0.7901 MB / 0.5243 GB, free: 3.352 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.143, allocations: 4 kB / 0.5243 GB, free: 3.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.143, allocations: 0 / 0.5243 GB, free: 3.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1431, allocations: 0 / 0.5243 GB, free: 3.348 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002146/0.1452, allocations: 0.9152 MB / 0.5252 GB, free: 2.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1452, allocations: 12.62 kB / 0.5252 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.1454, allocations: 60.56 kB / 0.5253 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.146, allocations: 395.9 kB / 0.5256 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.929e-05/0.146, allocations: 33.38 kB / 0.5257 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1461, allocations: 48.33 kB / 0.5257 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.1472, allocations: 0.5532 MB / 0.5263 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1472, allocations: 4 kB / 0.5263 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.1473, allocations: 16 kB / 0.5263 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.255e-05/0.1473, allocations: 11.98 kB / 0.5263 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1484, allocations: 0.5544 MB / 0.5268 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.1517, allocations: 1.523 MB / 0.5283 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009505/0.1527, allocations: 464.1 kB / 0.5288 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000559/0.1532, allocations: 258 kB / 0.529 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.046e-05/0.1533, allocations: 16.42 kB / 0.529 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1533, allocations: 35 kB / 0.5291 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003624/0.1537, allocations: 83.64 kB / 0.5291 GB, free: 14.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.344e-06/0.1537, allocations: 0 / 0.5291 GB, free: 14.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.01001/0.1637, allocations: 2.534 MB / 0.5316 GB, free: 11.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.1638, allocations: 67.95 kB / 0.5317 GB, free: 11.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/0.1643, allocations: 389.6 kB / 0.532 GB, free: 11.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.067e-05/0.1644, allocations: 37.7 kB / 0.5321 GB, free: 11.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.1646, allocations: 241.2 kB / 0.5323 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.1649, allocations: 226.1 kB / 0.5325 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.1652, allocations: 138.6 kB / 0.5327 GB, free: 10.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.1654, allocations: 362.8 kB / 0.533 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000807/0.1662, allocations: 317.8 kB / 0.5333 GB, free: 9.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009168/0.1672, allocations: 433.6 kB / 0.5337 GB, free: 9.387 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.01563/0.1828, allocations: 2.957 MB / 0.5366 GB, free: 6.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1828, allocations: 0 / 0.5366 GB, free: 6.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003393/0.1862, allocations: 1.082 MB / 0.5377 GB, free: 5.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1862, allocations: 4 kB / 0.5377 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.1862, allocations: 4 kB / 0.5377 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.1889, allocations: 399.2 kB / 0.5381 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.1903, allocations: 259.6 kB / 0.5383 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.1925, allocations: 2.327 MB / 0.5406 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.1932, allocations: 35.97 kB / 0.5406 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-05/0.1933, allocations: 31.97 kB / 0.5406 GB, free: 2.133 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: 13 * 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 (76): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,3), (1,3), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003884/0.1937, allocations: 206.5 kB / 0.5408 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.1938, allocations: 55.55 kB / 0.5409 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003192/0.197, allocations: 1.068 MB / 0.5419 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.197, allocations: 8 kB / 0.5419 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.197, allocations: 0 / 0.5419 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.197, allocations: 3.984 kB / 0.5419 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004199/0.2012, allocations: 1.784 MB / 0.5437 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.2012, allocations: 4 kB / 0.5437 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.2025, allocations: 207.7 kB / 0.5439 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001937/0.2044, allocations: 347.1 kB / 0.5442 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.072e-05/0.2045, allocations: 27.97 kB / 0.5442 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002156/0.2066, allocations: 2.342 MB / 0.5465 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2066, allocations: 0 / 0.5465 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003696/0.2103, allocations: 1.433 MB / 0.5479 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002533/0.2106, allocations: 132.7 kB / 0.5481 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.2107, allocations: 23.98 kB / 0.5481 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.2112, allocations: 27.97 kB / 0.5481 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.2114, allocations: 48.58 kB / 0.5482 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.966e-05/0.2115, allocations: 24.23 kB / 0.5482 GB, free: 10.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003773/0.2119, allocations: 271.2 kB / 0.5484 GB, free: 9.887 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2119, allocations: 0 / 0.5484 GB, free: 9.887 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007005/0.2126, allocations: 179.9 kB / 0.5486 GB, free: 9.711 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000287/0.2128, allocations: 135.2 kB / 0.5487 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.2153, allocations: 0.8256 MB / 0.5495 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2153, allocations: 384 / 0.5495 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.2167, allocations: 463.4 kB / 0.55 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006601/0.2173, allocations: 125.5 kB / 0.5501 GB, free: 8.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.2217, allocations: 1.906 MB / 0.552 GB, free: 6.242 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006468/0.2223, allocations: 0.8716 MB / 0.5528 GB, free: 5.336 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005179/0.2228, allocations: 140.6 kB / 0.5529 GB, free: 5.199 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.2231, allocations: 59.41 kB / 0.553 GB, free: 5.141 MB / 414.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2231, allocations: 0 / 0.553 GB, free: 5.141 MB / 414.1 MB Notification: Performance of Templates: time 0.02264/0.2457, allocations: 11.24 MB / 0.564 GB, free: 10.03 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.63283527828753] Failed to read output from testmodel.py, exit status != 0: 0.25589713267982006 0.27123926800000003 0.125050369 Calling exit ...