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_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00783/0.00783, allocations: 101.3 kB / 15.73 MB, free: 6.422 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.001834/0.001834, allocations: 188.8 kB / 16.67 MB, free: 6.352 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2249/0.2249, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 61.34 kB / 437.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1285, allocations: 54.97 MB / 492.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.005111/0.1337, allocations: 3.449 MB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002911/0.1366, allocations: 1.033 MB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004442/0.1371, allocations: 11.94 kB / 496.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1375, allocations: 75.22 kB / 496.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008943/0.1384, allocations: 214.4 kB / 496.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008621/0.1393, allocations: 223.6 kB / 497.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001347/0.1406, allocations: 0.8614 MB / 497.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1418, allocations: 0.5801 MB / 498.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000994/0.1428, allocations: 410.8 kB / 498.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.1441, allocations: 0.5647 MB / 499.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004752/0.1445, allocations: 100 kB / 499.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003896/0.1449, allocations: 128 kB / 499.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003891/0.1453, allocations: 267.3 kB / 500 MB, free: 9.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006416/0.146, allocations: 430.1 kB / 0.4886 GB, free: 8.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1472, allocations: 1.04 MB / 0.4897 GB, free: 7.801 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1472, allocations: 0 / 0.4897 GB, free: 7.801 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1472, allocations: 0 / 0.4897 GB, free: 7.801 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.741e-05/0.1472, allocations: 0 / 0.4897 GB, free: 7.801 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.003536/0.1508, allocations: 1.103 MB / 0.4907 GB, free: 6.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.1508, allocations: 12.03 kB / 0.4907 GB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.151, allocations: 68.09 kB / 0.4908 GB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006889/0.1517, allocations: 463.2 kB / 0.4913 GB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.1518, allocations: 41.69 kB / 0.4913 GB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.1519, allocations: 52.38 kB / 0.4913 GB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.1537, allocations: 0.7445 MB / 0.4921 GB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.1538, allocations: 0 / 0.4921 GB, free: 5.238 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.1538, allocations: 24 kB / 0.4921 GB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.1539, allocations: 12 kB / 0.4921 GB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.1554, allocations: 0.8054 MB / 0.4929 GB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005311/0.1607, allocations: 2.393 MB / 0.4952 GB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.1619, allocations: 0.6303 MB / 0.4958 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008171/0.1628, allocations: 423.2 kB / 0.4962 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.996e-05/0.1629, allocations: 24.52 kB / 0.4963 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.1629, allocations: 47.06 kB / 0.4963 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006011/0.1635, allocations: 159.3 kB / 0.4965 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.484e-06/0.1635, allocations: 0 / 0.4965 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.009916/0.1734, allocations: 2.373 MB / 0.4988 GB, free: 14.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1735, allocations: 59.97 kB / 0.4988 GB, free: 14.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.174, allocations: 449.8 kB / 0.4993 GB, free: 13.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.1741, allocations: 37.7 kB / 0.4993 GB, free: 13.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.1742, allocations: 264.7 kB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1744, allocations: 236.6 kB / 0.4998 GB, free: 13.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002679/0.1747, allocations: 162.5 kB / 0.4999 GB, free: 12.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1749, allocations: 366.8 kB / 0.5003 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.1755, allocations: 341.8 kB / 0.5006 GB, free: 12.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006956/0.1762, allocations: 466.8 kB / 0.5011 GB, free: 11.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.1776, allocations: 0.8299 MB / 0.5019 GB, free: 10.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1776, allocations: 7.938 kB / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005314/0.1829, allocations: 1.564 MB / 0.5034 GB, free: 9.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1829, allocations: 8 kB / 0.5034 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.183, allocations: 4 kB / 0.5034 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004676/0.1876, allocations: 0.8065 MB / 0.5042 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.189, allocations: 251.7 kB / 0.5044 GB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005805/0.1948, allocations: 4.089 MB / 0.5084 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.1955, allocations: 24.03 kB / 0.5085 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.005e-05/0.1956, allocations: 47.95 kB / 0.5085 GB, free: 3.887 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003205/0.1959, allocations: 193.7 kB / 0.5087 GB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.1961, allocations: 59.28 kB / 0.5087 GB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/0.1995, allocations: 1.306 MB / 0.51 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1996, allocations: 15.94 kB / 0.51 GB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1996, allocations: 4 kB / 0.51 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.1996, allocations: 3.984 kB / 0.51 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00416/0.2037, allocations: 2.004 MB / 0.512 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.2038, allocations: 8 kB / 0.512 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.2049, allocations: 211.8 kB / 0.5122 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002413/0.2074, allocations: 0.5136 MB / 0.5127 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.2074, allocations: 23.98 kB / 0.5127 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/0.2114, allocations: 3.408 MB / 0.5161 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2114, allocations: 0 / 0.5161 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003958/0.2153, allocations: 1.665 MB / 0.5177 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.2156, allocations: 136.2 kB / 0.5178 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.672e-05/0.2157, allocations: 24.03 kB / 0.5178 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004745/0.2161, allocations: 27.97 kB / 0.5179 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.2163, allocations: 64.89 kB / 0.5179 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-05/0.2164, allocations: 24.12 kB / 0.518 GB, free: 9.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003771/0.2168, allocations: 323.1 kB / 0.5183 GB, free: 9.547 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2168, allocations: 0 / 0.5183 GB, free: 9.547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008813/0.2177, allocations: 235.8 kB / 0.5185 GB, free: 9.316 MB / 398.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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002466/0.2179, allocations: 136.1 kB / 0.5186 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.2203, allocations: 1.109 MB / 0.5197 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2204, allocations: 0 / 0.5197 GB, free: 8.059 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.2216, allocations: 0.6367 MB / 0.5203 GB, free: 7.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006005/0.2223, allocations: 142.1 kB / 0.5205 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003813/0.2261, allocations: 2.025 MB / 0.5224 GB, free: 5.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005726/0.2267, allocations: 0.9196 MB / 0.5233 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004657/0.2271, allocations: 141.1 kB / 0.5235 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.2274, allocations: 63.41 kB / 0.5235 GB, free: 4.074 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2274, allocations: 0 / 0.5235 GB, free: 4.074 MB / 398.1 MB Notification: Performance of Templates: time 0.02269/0.2501, allocations: 12.67 MB / 0.5359 GB, free: 7.531 MB / 414.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)