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.0007513/0.0007513, 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.0007976/0.0007976, allocations: 165.3 kB / 24.09 MB, free: 424 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.8823/0.8823, allocations: 177.2 MB / 204.4 MB, free: 5.715 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.06422/0.06422, allocations: 18.14 MB / 279 MB, free: 11.49 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_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 1.963e-06/1.963e-06, allocations: 0 / 416.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.874e-05/3.071e-05, allocations: 2.281 kB / 416.6 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003221/0.003251, allocations: 3.236 MB / 419.8 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.004988, allocations: 1.063 MB / 420.9 MB, free: 9.395 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.005219, allocations: 8.219 kB / 420.9 MB, free: 9.391 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.005425, allocations: 82.78 kB / 421 MB, free: 9.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.005932, allocations: 242.7 kB / 421.2 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.006597, allocations: 244.8 kB / 421.4 MB, free: 9.039 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009033/0.0075, allocations: 0.9457 MB / 422.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006308/0.008131, allocations: 0.564 MB / 422.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005587/0.008689, allocations: 434 kB / 423.4 MB, free: 8.148 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007928/0.009482, allocations: 0.5135 MB / 423.9 MB, free: 7.988 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.009676, allocations: 104.4 kB / 424 MB, free: 7.988 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.009928, allocations: 140.6 kB / 424.1 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.01017, allocations: 302 kB / 424.4 MB, free: 7.801 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004556/0.01063, allocations: 349.9 kB / 424.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.01175, allocations: 1.215 MB / 426 MB, free: 7.176 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01176, allocations: 0 / 426 MB, free: 7.176 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.01176, allocations: 0 / 426 MB, free: 7.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.01178, allocations: 0 / 426 MB, free: 7.176 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002017/0.0138, allocations: 1.047 MB / 427 MB, free: 6.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.01384, allocations: 14.55 kB / 427 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.01399, allocations: 77.38 kB / 427.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005991/0.01459, allocations: 443.2 kB / 427.5 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.01462, allocations: 43.69 kB / 427.6 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.01472, allocations: 58.84 kB / 427.6 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.01585, allocations: 0.8863 MB / 428.5 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.01586, allocations: 192 / 428.5 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.105e-05/0.01591, allocations: 21.81 kB / 428.5 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.01592, allocations: 20.84 kB / 428.6 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.01707, allocations: 0.8643 MB / 429.4 MB, free: 5.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002621/0.01969, allocations: 1.733 MB / 431.2 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007594/0.02045, allocations: 0.6333 MB / 431.8 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.02095, allocations: 396 kB / 432.2 MB, free: 4.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.466e-05/0.02101, allocations: 11.59 kB / 432.2 MB, free: 4.105 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.02103, allocations: 43.53 kB / 432.2 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005798/0.02161, allocations: 239.9 kB / 432.5 MB, free: 3.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=68): time 3.717e-06/0.02162, allocations: 0 / 432.5 MB, free: 3.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=84): time 0.01089/0.03251, allocations: 4.688 MB / 437.2 MB, free: 1.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.03254, allocations: 60.56 kB / 437.2 MB, free: 1.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.033, allocations: 476.9 kB / 437.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.815e-05/0.03306, allocations: 41.27 kB / 437.7 MB, free: 1.094 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.03317, allocations: 303.5 kB / 438 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.03331, allocations: 312.8 kB / 438.3 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.03353, allocations: 192.1 kB / 438.5 MB, free: 440 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.18e-05/0.03359, allocations: 382.2 kB / 438.9 MB, free: 64 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006378/0.03423, allocations: 444.4 kB / 439.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/0.03494, allocations: 0.5654 MB / 439.9 MB, free: 15.47 MB / 346.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.01486/0.0498, allocations: 5.533 MB / 445.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.986e-06/0.04981, allocations: 3.938 kB / 445.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.004067/0.05388, allocations: 1.968 MB / 447.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.0539, allocations: 4 kB / 447.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.05391, allocations: 7.938 kB / 447.4 MB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003002/0.05691, allocations: 1.018 MB / 448.4 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/0.05768, allocations: 255.6 kB / 448.7 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00489/0.06257, allocations: 5.276 MB / 453.9 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006276/0.0632, allocations: 44.06 kB / 454 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-05/0.06327, allocations: 59.88 kB / 454 MB, free: 2.012 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: 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.000358/0.06362, allocations: 221.6 kB / 454.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.262e-05/0.06372, allocations: 63.58 kB / 454.3 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.06652, allocations: 1.742 MB / 456.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.06653, allocations: 8 kB / 456.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.06653, allocations: 4 kB / 456.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-06/0.06654, allocations: 3.984 kB / 456.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.06994, allocations: 2.351 MB / 458.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.06994, allocations: 0 / 458.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.07058, allocations: 227.7 kB / 458.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.07248, allocations: 0.6987 MB / 459.4 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.07254, allocations: 27.98 kB / 459.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00313/0.07567, allocations: 4.597 MB / 464 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.07568, allocations: 3.938 kB / 464 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.07879, allocations: 2.186 MB / 466.2 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.07893, allocations: 71.55 kB / 466.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.077e-05/0.07901, allocations: 31.92 kB / 466.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003289/0.07934, allocations: 39.97 kB / 466.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000404/0.07974, allocations: 76.78 kB / 466.4 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.447e-05/0.07979, allocations: 35.97 kB / 466.4 MB, free: 5.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002738/0.08007, allocations: 323.1 kB / 466.7 MB, free: 4.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08007, allocations: 4 kB / 466.7 MB, free: 4.969 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007394/0.08081, allocations: 255.9 kB / 467 MB, free: 4.719 MB / 362.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 (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.0002196/0.08103, allocations: 141.7 kB / 467.1 MB, free: 4.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.08314, allocations: 1.343 MB / 468.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.08315, allocations: 0 / 468.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.08428, allocations: 0.813 MB / 469.3 MB, free: 2.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.08476, allocations: 144.3 kB / 469.4 MB, free: 2.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.0877, allocations: 2.064 MB / 471.5 MB, free: 168 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.08795, allocations: 365.5 kB / 471.8 MB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003867/0.08834, allocations: 145.7 kB / 472 MB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.0885, allocations: 72.45 kB / 472.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.0885, allocations: 0 / 472.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of Templates: time 0.01685/0.1054, allocations: 15.57 MB / 487.6 MB, free: 228 kB / 378.7 MB " [Timeout remaining time 660] 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -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: 3.4213680690154433] Failed to read output from testmodel.py, exit status != 0: 0.11200679000467062 0.12085488400000001 0.107266739 Calling exit ...