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.008142/0.008142, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.00199/0.00199, allocations: 188.6 kB / 16.67 MB, free: 5.973 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.383/1.383, allocations: 222.9 MB / 240.4 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.09431/0.09431, allocations: 22.32 MB / 312.8 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 59.91 kB / 437.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1353, allocations: 54.95 MB / 492 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004673/0.1401, allocations: 3.565 MB / 495.6 MB, free: 1.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.1423, allocations: 1.072 MB / 496.6 MB, free: 84 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004279/0.1428, allocations: 4 kB / 496.6 MB, free: 80 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003219/0.1431, allocations: 83.27 kB / 496.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006751/0.1438, allocations: 226.2 kB / 496.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007077/0.1446, allocations: 231.5 kB / 497.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1457, allocations: 0.9198 MB / 498.1 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.1467, allocations: 0.6074 MB / 498.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008051/0.1476, allocations: 430.7 kB / 499.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/0.1488, allocations: 0.5997 MB / 499.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003592/0.1491, allocations: 100 kB / 499.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004865/0.1496, allocations: 128 kB / 499.9 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003495/0.15, allocations: 287.2 kB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006799/0.1507, allocations: 450 kB / 0.4889 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.1518, allocations: 1.098 MB / 0.49 GB, free: 10.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1519, allocations: 0 / 0.49 GB, free: 10.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1519, allocations: 0 / 0.49 GB, free: 10.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.023e-05/0.1519, allocations: 0 / 0.49 GB, free: 10.94 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.003073/0.155, allocations: 1.192 MB / 0.4912 GB, free: 9.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.155, allocations: 8.031 kB / 0.4912 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.1553, allocations: 76.47 kB / 0.4912 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007144/0.156, allocations: 499.3 kB / 0.4917 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.156, allocations: 37.69 kB / 0.4918 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.1562, allocations: 56.38 kB / 0.4918 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1577, allocations: 0.764 MB / 0.4926 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.1577, allocations: 3.938 kB / 0.4926 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-05/0.1578, allocations: 24 kB / 0.4926 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.1578, allocations: 12 kB / 0.4926 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.1594, allocations: 0.8211 MB / 0.4934 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004367/0.1638, allocations: 2.094 MB / 0.4954 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.1649, allocations: 0.6721 MB / 0.4961 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006913/0.1656, allocations: 414.3 kB / 0.4965 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.448e-05/0.1657, allocations: 20.53 kB / 0.4965 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.1657, allocations: 43.3 kB / 0.4966 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006253/0.1663, allocations: 168.2 kB / 0.4967 GB, free: 3.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 3.436e-06/0.1663, allocations: 0 / 0.4967 GB, free: 3.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.009921/0.1763, allocations: 2.56 MB / 0.4992 GB, free: 1.262 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.1763, allocations: 59.97 kB / 0.4993 GB, free: 1.191 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006024/0.1769, allocations: 498 kB / 0.4997 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/0.177, allocations: 33.7 kB / 0.4998 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.1772, allocations: 293.1 kB / 0.5001 GB, free: 376 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/0.1775, allocations: 257.8 kB / 0.5003 GB, free: 116 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2282/0.4057, allocations: 165.2 kB / 0.5005 GB, free: 21.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.4059, allocations: 377.3 kB / 0.5008 GB, free: 21.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008466/0.4067, allocations: 363.7 kB / 0.5012 GB, free: 21.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007943/0.4075, allocations: 497.1 kB / 0.5016 GB, free: 21.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.409, allocations: 0.8844 MB / 0.5025 GB, free: 21.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.409, allocations: 2.844 kB / 0.5025 GB, free: 21.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005475/0.4145, allocations: 1.653 MB / 0.5041 GB, free: 21.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.4145, allocations: 6.312 kB / 0.5041 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4145, allocations: 7.875 kB / 0.5041 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/0.4185, allocations: 0.7112 MB / 0.5048 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.4198, allocations: 254.8 kB / 0.5051 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006169/0.426, allocations: 4.154 MB / 0.5091 GB, free: 18.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008733/0.4268, allocations: 28.22 kB / 0.5092 GB, free: 18.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.427, allocations: 46.12 kB / 0.5092 GB, free: 18.61 MB / 382.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.0004483/0.4275, allocations: 203.7 kB / 0.5094 GB, free: 18.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.4277, allocations: 70.34 kB / 0.5095 GB, free: 18.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00378/0.4314, allocations: 1.408 MB / 0.5108 GB, free: 18.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.4315, allocations: 10.36 kB / 0.5108 GB, free: 18.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.4315, allocations: 1.406 kB / 0.5108 GB, free: 18.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.4315, allocations: 5.953 kB / 0.5109 GB, free: 18.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.4326, allocations: 0.801 MB / 0.5116 GB, free: 18.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4326, allocations: 0 / 0.5116 GB, free: 18.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.4338, allocations: 218.8 kB / 0.5118 GB, free: 18.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002099/0.4359, allocations: 481.5 kB / 0.5123 GB, free: 18.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.436, allocations: 25.2 kB / 0.5123 GB, free: 18.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003512/0.4395, allocations: 3.471 MB / 0.5157 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4395, allocations: 4 kB / 0.5157 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004044/0.4436, allocations: 1.798 MB / 0.5175 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.4438, allocations: 149.7 kB / 0.5176 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.4439, allocations: 21.03 kB / 0.5176 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/0.4445, allocations: 28.92 kB / 0.5177 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4447, allocations: 63.02 kB / 0.5177 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-05/0.4448, allocations: 25.47 kB / 0.5178 GB, free: 15.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005202/0.4453, allocations: 345.4 kB / 0.5181 GB, free: 15.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4453, allocations: 0 / 0.5181 GB, free: 15.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009712/0.4463, allocations: 245.1 kB / 0.5183 GB, free: 15.03 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 (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.0002132/0.4465, allocations: 138 kB / 0.5184 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002919/0.4495, allocations: 1.197 MB / 0.5196 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4495, allocations: 0.8125 kB / 0.5196 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.4508, allocations: 0.6869 MB / 0.5203 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006475/0.4515, allocations: 147.9 kB / 0.5204 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003962/0.4555, allocations: 2.132 MB / 0.5225 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004271/0.4559, allocations: 0.9341 MB / 0.5234 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005454/0.4565, allocations: 148 kB / 0.5236 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.4567, allocations: 64.89 kB / 0.5236 GB, free: 12.77 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4567, allocations: 0 / 0.5236 GB, free: 12.77 MB / 382.1 MB Notification: Performance of Templates: time 0.02014/0.4769, allocations: 13.36 MB / 0.5367 GB, free: 5.988 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)