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) 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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 112.6 kB / 16.37 MB, free: 6 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.001539/0.001539, allocations: 196 kB / 17.31 MB, free: 5.613 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1027/0.1027, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 68.02 kB / 382.3 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08747/0.08876, allocations: 54.97 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003932/0.09273, allocations: 3.005 MB / 440.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.09429, allocations: 0.9354 MB / 441.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.09444, allocations: 4 kB / 441.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.09464, allocations: 63.36 kB / 441.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003796/0.09503, allocations: 174.7 kB / 441.4 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00047/0.09551, allocations: 183.6 kB / 441.6 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006609/0.09618, allocations: 0.7175 MB / 442.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000464/0.09665, allocations: 403.7 kB / 442.7 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.09697, allocations: 303.1 kB / 443 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004717/0.09745, allocations: 410.6 kB / 443.4 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.09756, allocations: 72 kB / 443.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.09775, allocations: 104 kB / 443.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.09795, allocations: 211.4 kB / 443.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.09826, allocations: 322.6 kB / 444.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006419/0.09891, allocations: 0.7787 MB / 444.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.09892, allocations: 3.984 kB / 444.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09893, allocations: 0 / 444.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.09894, allocations: 4 kB / 444.9 MB, free: 4.566 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001875/0.1008, allocations: 0.9081 MB / 445.8 MB, free: 3.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1009, allocations: 12.02 kB / 445.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.101, allocations: 60.22 kB / 445.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/0.1015, allocations: 379.8 kB / 446.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.191e-05/0.1016, allocations: 37.38 kB / 446.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-05/0.1017, allocations: 40.38 kB / 446.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009376/0.1026, allocations: 0.5532 MB / 446.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.1026, allocations: 0 / 446.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.162e-05/0.1027, allocations: 16 kB / 446.9 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.1027, allocations: 8 kB / 446.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009747/0.1037, allocations: 0.5387 MB / 447.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002973/0.1067, allocations: 1.531 MB / 448.9 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.1075, allocations: 492.3 kB / 449.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004767/0.108, allocations: 266 kB / 449.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.655e-05/0.1081, allocations: 12.42 kB / 449.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.1081, allocations: 35 kB / 449.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002417/0.1084, allocations: 59.56 kB / 449.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.914e-06/0.1084, allocations: 0 / 449.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.002932/0.1113, allocations: 1.096 MB / 450.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.1114, allocations: 59.78 kB / 450.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.1118, allocations: 393.5 kB / 451.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.1118, allocations: 37.7 kB / 451.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.112, allocations: 236.1 kB / 451.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.1122, allocations: 181.4 kB / 451.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.1124, allocations: 122.2 kB / 451.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1125, allocations: 358.8 kB / 452.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000466/0.113, allocations: 253.2 kB / 452.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005534/0.1135, allocations: 374.1 kB / 452.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.1146, allocations: 0.6273 MB / 453.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1146, allocations: 0 / 453.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00191/0.1165, allocations: 0.8589 MB / 454.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1166, allocations: 8.375 kB / 454.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.1166, allocations: 4 kB / 454.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/0.1177, allocations: 173.5 kB / 454.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.119, allocations: 247.7 kB / 454.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008345/0.1199, allocations: 1.159 MB / 455.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004816/0.1204, allocations: 27.98 kB / 456 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-05/0.1205, allocations: 31.97 kB / 456 MB, free: 9.035 MB / 334.1 MB 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002617/0.1207, allocations: 190.6 kB / 456.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.1208, allocations: 43.44 kB / 456.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.1228, allocations: 0.8259 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.1228, allocations: 8 kB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1228, allocations: 0 / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1228, allocations: 3.984 kB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002534/0.1254, allocations: 1.46 MB / 458.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.1254, allocations: 3.984 kB / 458.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.1265, allocations: 203.7 kB / 458.7 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008492/0.1274, allocations: 157.6 kB / 458.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.1274, allocations: 23.98 kB / 458.9 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007691/0.1282, allocations: 1.163 MB / 460.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1282, allocations: 3.984 kB / 460.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.1304, allocations: 1.134 MB / 461.2 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.1305, allocations: 120.5 kB / 461.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.609e-05/0.1306, allocations: 15.94 kB / 461.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003964/0.131, allocations: 19.98 kB / 461.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.1312, allocations: 56.52 kB / 461.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.1312, allocations: 19.98 kB / 461.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002865/0.1315, allocations: 279.1 kB / 461.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1315, allocations: 0 / 461.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005363/0.1321, allocations: 167.8 kB / 461.9 MB, free: 2.988 MB / 334.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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001879/0.1323, allocations: 123.2 kB / 462 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.1337, allocations: 0.6829 MB / 462.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1337, allocations: 0 / 462.7 MB, free: 2.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007846/0.1345, allocations: 359.8 kB / 463 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.1351, allocations: 117.6 kB / 463.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/0.1385, allocations: 1.778 MB / 464.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.1389, allocations: 0.8673 MB / 465.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003904/0.1393, allocations: 128.5 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.1395, allocations: 55.41 kB / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1395, allocations: 0 / 465.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of Templates: time 0.01458/0.1541, allocations: 8.987 MB / 474.9 MB, free: 5.945 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)