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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 103.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 187.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.1005/0.1005, allocations: 22.7 MB / 325.4 MB, free: 3.539 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002924/0.002924, allocations: 71.86 kB / 457.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1522, allocations: 58.03 MB / 0.5036 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.005382/0.1576, allocations: 3.575 MB / 0.5071 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.1601, allocations: 1.08 MB / 0.5082 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.1603, allocations: 7.938 kB / 0.5082 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002702/0.1606, allocations: 83.16 kB / 0.5082 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005651/0.1611, allocations: 230.3 kB / 0.5085 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006781/0.1618, allocations: 231.5 kB / 0.5087 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009991/0.1628, allocations: 0.916 MB / 0.5096 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007763/0.1636, allocations: 0.5721 MB / 0.5101 GB, free: 388 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2659/0.4295, allocations: 443.7 kB / 0.5106 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.4311, allocations: 0.6218 MB / 0.5112 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005955/0.4317, allocations: 104.9 kB / 0.5113 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006792/0.4323, allocations: 135.9 kB / 0.5114 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004577/0.4328, allocations: 295.4 kB / 0.5117 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009288/0.4337, allocations: 458.2 kB / 0.5121 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00148/0.4352, allocations: 1.116 MB / 0.5132 GB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4352, allocations: 1.312 kB / 0.5132 GB, free: 10.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4352, allocations: 0 / 0.5132 GB, free: 10.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.289e-05/0.4352, allocations: 1.375 kB / 0.5132 GB, free: 10.96 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.002953/0.4382, allocations: 1.124 MB / 0.5143 GB, free: 10.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.4382, allocations: 12.34 kB / 0.5143 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.4385, allocations: 75.91 kB / 0.5144 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.4392, allocations: 0.4917 MB / 0.5149 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.4392, allocations: 43.41 kB / 0.5149 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.4394, allocations: 58.03 kB / 0.515 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.4409, allocations: 0.7878 MB / 0.5157 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.4409, allocations: 5.219 kB / 0.5157 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-05/0.441, allocations: 23.78 kB / 0.5158 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.4411, allocations: 13.88 kB / 0.5158 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.4427, allocations: 0.8629 MB / 0.5166 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004294/0.447, allocations: 2.051 MB / 0.5186 GB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.448, allocations: 0.6232 MB / 0.5192 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/0.4487, allocations: 395.1 kB / 0.5196 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.47e-05/0.4488, allocations: 20.56 kB / 0.5196 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.4488, allocations: 39.34 kB / 0.5197 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009875/0.4498, allocations: 240.8 kB / 0.5199 GB, free: 8.824 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 4.088e-06/0.4498, allocations: 4 kB / 0.5199 GB, free: 8.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=84): time 0.01977/0.4696, allocations: 4.913 MB / 0.5247 GB, free: 6.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.4696, allocations: 64.62 kB / 0.5248 GB, free: 6.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008019/0.4704, allocations: 0.4893 MB / 0.5252 GB, free: 6.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001939/0.4706, allocations: 43.23 kB / 0.5253 GB, free: 6.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.4708, allocations: 302.2 kB / 0.5256 GB, free: 6.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.4711, allocations: 317.3 kB / 0.5259 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003792/0.4715, allocations: 187.2 kB / 0.5261 GB, free: 6.055 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4716, allocations: 378.6 kB / 0.5264 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.4725, allocations: 431.9 kB / 0.5268 GB, free: 5.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009728/0.4735, allocations: 0.5582 MB / 0.5274 GB, free: 5.262 MB / 382.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.02939/0.5029, allocations: 5.508 MB / 0.5327 GB, free: 3.457 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.5029, allocations: 1.25 kB / 0.5328 GB, free: 3.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.007201/0.5101, allocations: 1.947 MB / 0.5347 GB, free: 2.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.5101, allocations: 5.406 kB / 0.5347 GB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.5101, allocations: 7.875 kB / 0.5347 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005668/0.5158, allocations: 0.9936 MB / 0.5356 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.5173, allocations: 257.3 kB / 0.5359 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007517/0.5249, allocations: 5.414 MB / 0.5412 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.526, allocations: 45.45 kB / 0.5412 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002578/0.5263, allocations: 56.05 kB / 0.5413 GB, free: 13.15 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.000685/0.5269, allocations: 210.6 kB / 0.5415 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.5272, allocations: 67.36 kB / 0.5415 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005519/0.5328, allocations: 1.726 MB / 0.5432 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.5328, allocations: 15.25 kB / 0.5432 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.5328, allocations: 1.25 kB / 0.5432 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.5328, allocations: 9.656 kB / 0.5432 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006511/0.5393, allocations: 2.552 MB / 0.5457 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.5393, allocations: 0 / 0.5457 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.5407, allocations: 227.2 kB / 0.5459 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003379/0.5441, allocations: 0.6796 MB / 0.5466 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/0.5442, allocations: 34.72 kB / 0.5466 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005852/0.5501, allocations: 4.713 MB / 0.5512 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5501, allocations: 0 / 0.5512 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005938/0.556, allocations: 2.176 MB / 0.5534 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.5564, allocations: 160.6 kB / 0.5535 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.5566, allocations: 24.81 kB / 0.5535 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007164/0.5573, allocations: 35.97 kB / 0.5536 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/0.5575, allocations: 80.44 kB / 0.5537 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/0.5576, allocations: 31.98 kB / 0.5537 GB, free: 4.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004713/0.5581, allocations: 346.9 kB / 0.554 GB, free: 3.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5581, allocations: 0 / 0.554 GB, free: 3.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000998/0.5591, allocations: 255.9 kB / 0.5543 GB, free: 3.426 MB / 398.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.0002636/0.5593, allocations: 134.4 kB / 0.5544 GB, free: 3.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00377/0.5631, allocations: 1.329 MB / 0.5557 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.5631, allocations: 0 / 0.5557 GB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.5654, allocations: 0.799 MB / 0.5565 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.5664, allocations: 140.4 kB / 0.5566 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005357/0.5717, allocations: 2.289 MB / 0.5588 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.5726, allocations: 0.9562 MB / 0.5598 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007761/0.5733, allocations: 149.9 kB / 0.5599 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.5737, allocations: 67.41 kB / 0.56 GB, free: 13.57 MB / 414.1 MB Notification: Performance of SimCode: time 1.673e-06/0.5737, allocations: 3.938 kB / 0.56 GB, free: 13.57 MB / 414.1 MB Notification: Performance of Templates: time 0.03179/0.6055, allocations: 15.84 MB / 0.5755 GB, free: 13.93 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.8410367500036955] Failed to read output from testmodel.py, exit status != 0: 0.6167017631232738 0.62829331 0.18992216 Calling exit ...