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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 104 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 191.1 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1055/0.1055, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.73 kB / 382.3 MB, free: 40.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08986, allocations: 54.97 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004285/0.09418, allocations: 3.566 MB / 440.8 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001737/0.09594, allocations: 1.068 MB / 441.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.09612, allocations: 4 kB / 441.9 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002353/0.09639, allocations: 83.16 kB / 441.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000438/0.09684, allocations: 214.3 kB / 442.1 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005292/0.09738, allocations: 235.5 kB / 442.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008324/0.09822, allocations: 0.9121 MB / 443.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006907/0.09892, allocations: 0.6113 MB / 443.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004038/0.09933, allocations: 434.7 kB / 444.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006742/0.1, allocations: 0.5919 MB / 444.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.1002, allocations: 104 kB / 445 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000213/0.1004, allocations: 128 kB / 445.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002423/0.1006, allocations: 283.2 kB / 445.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004103/0.101, allocations: 450 kB / 445.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000944/0.102, allocations: 1.083 MB / 446.9 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.102, allocations: 4 kB / 446.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.102, allocations: 0 / 446.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.102, allocations: 0 / 446.9 MB, free: 2.465 MB / 318.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.002591/0.1046, allocations: 1.173 MB / 448.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.1047, allocations: 8.031 kB / 448.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.1048, allocations: 84 kB / 448.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006649/0.1055, allocations: 498.9 kB / 448.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.824e-05/0.1056, allocations: 41.69 kB / 448.7 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.1057, allocations: 56.38 kB / 448.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.1069, allocations: 0.7757 MB / 449.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.107, allocations: 0 / 449.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.979e-05/0.1071, allocations: 20 kB / 449.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1071, allocations: 16 kB / 449.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1085, allocations: 0.8211 MB / 450.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004042/0.1126, allocations: 2.082 MB / 452.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1137, allocations: 0.6696 MB / 453.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006754/0.1144, allocations: 410.4 kB / 453.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.1144, allocations: 8.547 kB / 453.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.1145, allocations: 47.11 kB / 453.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005697/0.1151, allocations: 159.3 kB / 453.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 1.963e-06/0.1151, allocations: 0 / 453.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.009734/0.1248, allocations: 2.557 MB / 456.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.1249, allocations: 55.97 kB / 456.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005714/0.1255, allocations: 497.9 kB / 456.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.1256, allocations: 37.7 kB / 456.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1258, allocations: 304.3 kB / 457.2 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.126, allocations: 244.5 kB / 457.5 MB, free: 7.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002767/0.1263, allocations: 162.5 kB / 457.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.1264, allocations: 378.7 kB / 458 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000648/0.1271, allocations: 365.8 kB / 458.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007322/0.1278, allocations: 490.8 kB / 458.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.1292, allocations: 0.8768 MB / 459.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.1292, allocations: 4 kB / 459.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005415/0.1346, allocations: 1.658 MB / 461.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.1347, allocations: 8 kB / 461.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1347, allocations: 4 kB / 461.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/0.1388, allocations: 0.7241 MB / 462.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.1401, allocations: 251.7 kB / 462.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005943/0.1461, allocations: 4.15 MB / 466.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007547/0.1469, allocations: 40.02 kB / 466.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.147, allocations: 43.95 kB / 466.6 MB, free: 14.21 MB / 350.1 MB 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 (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003144/0.1473, allocations: 206.4 kB / 466.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.1474, allocations: 67.19 kB / 466.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.151, allocations: 1.412 MB / 468.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.151, allocations: 8 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1511, allocations: 4 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1511, allocations: 3.984 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009816/0.1521, allocations: 0.8023 MB / 469.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1521, allocations: 0 / 469.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.1532, allocations: 215.7 kB / 469.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002093/0.1553, allocations: 474.1 kB / 469.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-05/0.1554, allocations: 23.98 kB / 469.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00404/0.1595, allocations: 3.467 MB / 473.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1595, allocations: 0 / 473.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004308/0.1638, allocations: 1.804 MB / 475 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002405/0.1641, allocations: 144.2 kB / 475.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.1642, allocations: 20 kB / 475.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/0.1647, allocations: 27.97 kB / 475.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.1649, allocations: 65 kB / 475.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.564e-05/0.165, allocations: 35.92 kB / 475.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004224/0.1654, allocations: 338.9 kB / 475.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1654, allocations: 0 / 475.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008599/0.1663, allocations: 251.7 kB / 475.9 MB, free: 4.57 MB / 350.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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000226/0.1665, allocations: 129.8 kB / 476 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002513/0.1691, allocations: 1.179 MB / 477.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1691, allocations: 0 / 477.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.1705, allocations: 0.6961 MB / 477.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.1711, allocations: 144.8 kB / 478 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.1752, allocations: 2.123 MB / 480.2 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.1757, allocations: 0.9317 MB / 481.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004634/0.1761, allocations: 145.3 kB / 481.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.1764, allocations: 71.39 kB / 481.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1764, allocations: 0 / 481.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of Templates: time 0.01996/0.1963, allocations: 13.16 MB / 494.5 MB, free: 2.039 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (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 cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)