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.000776/0.000776, allocations: 75.7 kB / 20.8 MB, free: 3.707 MB / 18.57 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.0008301/0.0008301, allocations: 165.3 kB / 24.09 MB, free: 428 kB / 18.57 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 0.9161/0.9161, allocations: 177.1 MB / 204.4 MB, free: 5.68 MB / 186.7 MB " [Timeout remaining time 179] 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.0599/0.0599, allocations: 18.13 MB / 279 MB, free: 11.46 MB / 266.7 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_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 1.523e-06/1.523e-06, allocations: 0 / 417.4 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.649e-05, allocations: 3.531 kB / 417.4 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.002777/0.002804, allocations: 2.761 MB / 420.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.004324, allocations: 0.9322 MB / 421.1 MB, free: 9.324 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.004514, allocations: 6.562 kB / 421.1 MB, free: 9.32 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.004691, allocations: 64.59 kB / 421.1 MB, free: 9.281 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003702/0.005061, allocations: 188.6 kB / 421.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.005584, allocations: 197.1 kB / 421.5 MB, free: 9.047 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006346/0.006218, allocations: 0.7358 MB / 422.2 MB, free: 8.691 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004478/0.006666, allocations: 346.3 kB / 422.6 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003851/0.007051, allocations: 308 kB / 422.9 MB, free: 8.414 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005003/0.007552, allocations: 354.6 kB / 423.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.007662, allocations: 71.56 kB / 423.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.007841, allocations: 104.8 kB / 423.4 MB, free: 8.289 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.008005, allocations: 214 kB / 423.6 MB, free: 8.172 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002736/0.008278, allocations: 253.3 kB / 423.9 MB, free: 8.059 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008061/0.009084, allocations: 0.8385 MB / 424.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.009089, allocations: 1.891 kB / 424.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.00909, allocations: 0 / 424.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.009103, allocations: 4 kB / 424.7 MB, free: 7.742 MB / 330.7 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.001356/0.01046, allocations: 0.8303 MB / 425.5 MB, free: 7.211 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.0105, allocations: 15.48 kB / 425.5 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.0106, allocations: 61.55 kB / 425.6 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.011, allocations: 334.2 kB / 425.9 MB, free: 6.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.01103, allocations: 33.7 kB / 426 MB, free: 6.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.0111, allocations: 49.86 kB / 426 MB, free: 6.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008073/0.0119, allocations: 0.5491 MB / 426.6 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.01192, allocations: 0.7031 kB / 426.6 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/0.01195, allocations: 20.28 kB / 426.6 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.01197, allocations: 13.97 kB / 426.6 MB, free: 6.664 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008367/0.0128, allocations: 0.5586 MB / 427.2 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.01478, allocations: 1.294 MB / 428.5 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.01541, allocations: 450.2 kB / 428.9 MB, free: 5.625 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003826/0.0158, allocations: 258.8 kB / 429.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.01584, allocations: 10.64 kB / 429.2 MB, free: 5.516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.01586, allocations: 38.75 kB / 429.2 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002201/0.01608, allocations: 76.92 kB / 429.3 MB, free: 5.438 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 2.625e-06/0.01608, allocations: 5.438 kB / 429.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.00534/0.02142, allocations: 2.464 MB / 431.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.02144, allocations: 57.69 kB / 431.8 MB, free: 4.418 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.02179, allocations: 375.2 kB / 432.2 MB, free: 4.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.02183, allocations: 36.39 kB / 432.2 MB, free: 4.188 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.02193, allocations: 252.7 kB / 432.4 MB, free: 3.973 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.02206, allocations: 225.1 kB / 432.7 MB, free: 3.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.02225, allocations: 144 kB / 432.8 MB, free: 3.723 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.02233, allocations: 363 kB / 433.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005001/0.02283, allocations: 314 kB / 433.5 MB, free: 3.281 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.02335, allocations: 436.1 kB / 433.9 MB, free: 3.055 MB / 330.7 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.007362/0.03071, allocations: 2.952 MB / 436.8 MB, free: 1.727 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.03071, allocations: 5.469 kB / 436.8 MB, free: 1.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001922/0.03263, allocations: 1.075 MB / 437.9 MB, free: 1.141 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.03266, allocations: 7.219 kB / 437.9 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.03267, allocations: 4.125 kB / 437.9 MB, free: 1.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.03384, allocations: 408.1 kB / 438.3 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.03454, allocations: 250.8 kB / 438.6 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.03574, allocations: 2.337 MB / 440.9 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/0.03615, allocations: 31.09 kB / 440.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.0362, allocations: 38.19 kB / 441 MB, free: 14.57 MB / 346.7 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.0003027/0.03651, allocations: 192.7 kB / 441.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-05/0.03658, allocations: 46.09 kB / 441.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.03834, allocations: 1.073 MB / 442.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.03835, allocations: 6.875 kB / 442.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.03836, allocations: 1.375 kB / 442.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.03837, allocations: 3.984 kB / 442.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.04066, allocations: 1.591 MB / 443.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.04067, allocations: 0 / 443.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005822/0.04125, allocations: 203.7 kB / 444.1 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008737/0.04212, allocations: 347.1 kB / 444.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.154e-05/0.04218, allocations: 23.98 kB / 444.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.04329, allocations: 2.342 MB / 446.8 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.04329, allocations: 4.062 kB / 446.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.04524, allocations: 1.437 MB / 448.2 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.04537, allocations: 51.59 kB / 448.3 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/0.04543, allocations: 16 kB / 448.3 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.04568, allocations: 35.91 kB / 448.3 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/0.04577, allocations: 56.53 kB / 448.4 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.04581, allocations: 23.98 kB / 448.4 MB, free: 7.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002067/0.04601, allocations: 263.2 kB / 448.7 MB, free: 7.273 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04601, allocations: 4.094 kB / 448.7 MB, free: 7.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004978/0.04651, allocations: 175.9 kB / 448.8 MB, free: 7.098 MB / 346.7 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.0001936/0.0467, allocations: 129.8 kB / 449 MB, free: 6.961 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.04808, allocations: 0.8221 MB / 449.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.04808, allocations: 0 / 449.8 MB, free: 6.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006805/0.04876, allocations: 467.4 kB / 450.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.0492, allocations: 112 kB / 450.4 MB, free: 5.574 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.05155, allocations: 1.679 MB / 452 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.05175, allocations: 287.7 kB / 452.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003085/0.05206, allocations: 136.5 kB / 452.5 MB, free: 3.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.0522, allocations: 60.45 kB / 452.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.0522, allocations: 0 / 452.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of Templates: time 0.01205/0.06426, allocations: 10.66 MB / 463.2 MB, free: 8.91 MB / 362.7 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 -variableFilter=.* -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -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: 3.2390613965690136] Failed to read output from testmodel.py, exit status != 0: 0.07009153719991446 0.078367429 0.067477175 Calling exit ...