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.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.001629/0.001629, allocations: 105.4 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.002559/0.002559, 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.521/1.521, 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.1007/0.1007, allocations: 22.7 MB / 325.4 MB, free: 3.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.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_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: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 67.89 kB / 457.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1374, allocations: 58.01 MB / 0.5036 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004421/0.1418, allocations: 3.026 MB / 0.5065 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.144, allocations: 0.951 MB / 0.5075 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.1441, allocations: 4 kB / 0.5075 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.1444, allocations: 59.36 kB / 0.5075 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004899/0.1449, allocations: 190.7 kB / 0.5077 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.1455, allocations: 187.6 kB / 0.5079 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008594/0.1463, allocations: 0.7175 MB / 0.5086 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005204/0.1468, allocations: 351.8 kB / 0.5089 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003829/0.1472, allocations: 315.1 kB / 0.5092 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005654/0.1478, allocations: 426.6 kB / 0.5096 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.1479, allocations: 72 kB / 0.5097 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.1481, allocations: 99.97 kB / 0.5098 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.1483, allocations: 207.5 kB / 0.51 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003273/0.1486, allocations: 334.5 kB / 0.5103 GB, free: 200 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2656/0.4142, allocations: 0.7842 MB / 0.5111 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4142, allocations: 1.031 kB / 0.5111 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4142, allocations: 3.281 kB / 0.5111 GB, free: 12.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.4142, allocations: 0 / 0.5111 GB, free: 12.38 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.002189/0.4164, allocations: 0.9125 MB / 0.512 GB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4164, allocations: 11.94 kB / 0.512 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.4166, allocations: 62.03 kB / 0.5121 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.4172, allocations: 393.9 kB / 0.5124 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.4172, allocations: 32.88 kB / 0.5125 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.4173, allocations: 46.08 kB / 0.5125 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4184, allocations: 0.5535 MB / 0.513 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4184, allocations: 3.938 kB / 0.5131 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.429e-05/0.4185, allocations: 18.69 kB / 0.5131 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.4185, allocations: 10.81 kB / 0.5131 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.4195, allocations: 0.5573 MB / 0.5136 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003078/0.4226, allocations: 1.521 MB / 0.5151 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008877/0.4235, allocations: 463.7 kB / 0.5156 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.424, allocations: 260.5 kB / 0.5158 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.934e-05/0.4241, allocations: 13.72 kB / 0.5158 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.4241, allocations: 38.06 kB / 0.5158 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003664/0.4245, allocations: 75.08 kB / 0.5159 GB, free: 11.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.555e-06/0.4245, allocations: 0 / 0.5159 GB, free: 11.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.009672/0.4341, allocations: 2.54 MB / 0.5184 GB, free: 10.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.4342, allocations: 58.91 kB / 0.5185 GB, free: 10.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005038/0.4347, allocations: 393.4 kB / 0.5188 GB, free: 10.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.192e-05/0.4347, allocations: 41.98 kB / 0.5189 GB, free: 10.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.4349, allocations: 248.2 kB / 0.5191 GB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.435, allocations: 221.7 kB / 0.5193 GB, free: 9.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/0.4353, allocations: 144.3 kB / 0.5195 GB, free: 9.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4354, allocations: 359.6 kB / 0.5198 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007486/0.4362, allocations: 317.5 kB / 0.5201 GB, free: 9.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.437, allocations: 433.5 kB / 0.5205 GB, free: 9.094 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.01576/0.4528, allocations: 2.95 MB / 0.5234 GB, free: 8.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4528, allocations: 4.812 kB / 0.5234 GB, free: 8.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003364/0.4561, allocations: 1.072 MB / 0.5244 GB, free: 8.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.4562, allocations: 10.03 kB / 0.5245 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4562, allocations: 7.719 kB / 0.5245 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00251/0.4587, allocations: 399.6 kB / 0.5248 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.4602, allocations: 252.5 kB / 0.5251 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.4616, allocations: 2.339 MB / 0.5274 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007691/0.4624, allocations: 36.47 kB / 0.5274 GB, free: 5.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.079e-05/0.4624, allocations: 33.27 kB / 0.5274 GB, free: 5.699 MB / 382.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.00035/0.4628, allocations: 195.5 kB / 0.5276 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.4629, allocations: 53.11 kB / 0.5277 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002931/0.4658, allocations: 1.071 MB / 0.5287 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.4658, allocations: 10.62 kB / 0.5287 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4659, allocations: 0.875 kB / 0.5287 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.4659, allocations: 3.703 kB / 0.5287 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.4698, allocations: 1.776 MB / 0.5305 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.4698, allocations: 0 / 0.5305 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.471, allocations: 208 kB / 0.5307 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.4729, allocations: 347.2 kB / 0.531 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-05/0.473, allocations: 31.27 kB / 0.531 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.4744, allocations: 2.338 MB / 0.5333 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4744, allocations: 3.938 kB / 0.5333 GB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00321/0.4776, allocations: 1.431 MB / 0.5347 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002343/0.4779, allocations: 130.1 kB / 0.5348 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.478, allocations: 22.81 kB / 0.5349 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.4785, allocations: 28.66 kB / 0.5349 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4787, allocations: 51.92 kB / 0.5349 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.919e-05/0.4788, allocations: 22.05 kB / 0.535 GB, free: 1.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000333/0.4791, allocations: 273.2 kB / 0.5352 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4791, allocations: 0 / 0.5352 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008214/0.4799, allocations: 178.4 kB / 0.5354 GB, free: 0.9609 MB / 382.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.0002382/0.4802, allocations: 135.8 kB / 0.5355 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002347/0.4825, allocations: 0.832 MB / 0.5363 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4825, allocations: 192 / 0.5363 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.4838, allocations: 460 kB / 0.5368 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006766/0.4844, allocations: 120 kB / 0.5369 GB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.4886, allocations: 1.917 MB / 0.5388 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006089/0.4892, allocations: 0.8757 MB / 0.5396 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005768/0.4898, allocations: 135.3 kB / 0.5397 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.4901, allocations: 62.17 kB / 0.5398 GB, free: 14.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4901, allocations: 0 / 0.5398 GB, free: 14.43 MB / 398.1 MB Notification: Performance of Templates: time 0.02317/0.5132, allocations: 11.24 MB / 0.5508 GB, free: 8.219 MB / 398.1 MB " [Timeout remaining time 659] 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_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.524709001649171] Failed to read output from testmodel.py, exit status != 0: 0.52294528670609 0.536755234 0.11935859600000001 Calling exit ...