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.001094/0.001094, allocations: 106.7 kB / 16.27 MB, free: 5.984 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.001109/0.001109, allocations: 189 kB / 17.2 MB, free: 5.609 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.304/1.304, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0934/0.09341, allocations: 22.32 MB / 313.4 MB, free: 8.969 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 70.2 kB / 381.5 MB, free: 41.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07753/0.07886, allocations: 54.95 MB / 436.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.00434/0.08323, allocations: 3.436 MB / 439.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.08532, allocations: 1.048 MB / 440.9 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003102/0.08565, allocations: 4 kB / 440.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.08592, allocations: 71.22 kB / 441 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006103/0.08657, allocations: 218.4 kB / 441.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006154/0.0872, allocations: 211.6 kB / 441.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008408/0.08805, allocations: 0.8537 MB / 442.3 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007364/0.0888, allocations: 0.5918 MB / 442.8 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004866/0.0893, allocations: 406.8 kB / 443.2 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007111/0.09002, allocations: 0.5647 MB / 443.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002155/0.09025, allocations: 96 kB / 443.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.09052, allocations: 128 kB / 444 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002473/0.09077, allocations: 271.2 kB / 444.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004759/0.09126, allocations: 434.1 kB / 444.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008881/0.09215, allocations: 1.021 MB / 445.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09217, allocations: 0 / 445.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.09218, allocations: 0 / 445.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.729e-05/0.09221, allocations: 3.938 kB / 445.7 MB, free: 3.684 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002697/0.09491, allocations: 1.094 MB / 446.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.09496, allocations: 12.03 kB / 446.8 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001817/0.09514, allocations: 68.09 kB / 446.9 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.09577, allocations: 463.1 kB / 447.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.09582, allocations: 41.69 kB / 447.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.09594, allocations: 56.38 kB / 447.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.09721, allocations: 0.7522 MB / 448.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.09724, allocations: 0 / 448.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.757e-05/0.09732, allocations: 20 kB / 448.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.09734, allocations: 12 kB / 448.2 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.09875, allocations: 0.8055 MB / 449.1 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/0.1036, allocations: 2.393 MB / 451.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.1048, allocations: 0.6463 MB / 452.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007958/0.1056, allocations: 434.3 kB / 452.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.356e-05/0.1056, allocations: 12.55 kB / 452.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1057, allocations: 43.12 kB / 452.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006491/0.1063, allocations: 159.3 kB / 452.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 3.547e-06/0.1063, allocations: 0 / 452.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.01019/0.1165, allocations: 2.365 MB / 455.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.1166, allocations: 63.95 kB / 455.2 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.1171, allocations: 449.8 kB / 455.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.244e-05/0.1172, allocations: 33.7 kB / 455.6 MB, free: 9.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.1174, allocations: 264.7 kB / 455.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.1177, allocations: 240.5 kB / 456.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.1179, allocations: 158.6 kB / 456.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1181, allocations: 374.7 kB / 456.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/0.1188, allocations: 337.8 kB / 457 MB, free: 8.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007301/0.1195, allocations: 474.7 kB / 457.4 MB, free: 7.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.1209, allocations: 0.826 MB / 458.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1209, allocations: 4 kB / 458.3 MB, free: 6.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005829/0.1267, allocations: 1.572 MB / 459.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.1268, allocations: 8 kB / 459.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1268, allocations: 11.98 kB / 459.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005031/0.1318, allocations: 0.8064 MB / 460.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.1333, allocations: 255.7 kB / 460.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006015/0.1393, allocations: 4.068 MB / 465 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007337/0.1401, allocations: 27.98 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.1402, allocations: 47.95 kB / 465.1 MB, free: 15.75 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000333/0.1405, allocations: 197.6 kB / 465.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.1407, allocations: 59.19 kB / 465.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003711/0.1444, allocations: 1.314 MB / 466.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.1444, allocations: 15.94 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1444, allocations: 4.234 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.1444, allocations: 11.92 kB / 466.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00439/0.1488, allocations: 1.998 MB / 468.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1489, allocations: 4 kB / 468.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.1501, allocations: 207.8 kB / 468.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002525/0.1526, allocations: 0.5099 MB / 469.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/0.1527, allocations: 23.98 kB / 469.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003859/0.1566, allocations: 3.423 MB / 472.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1566, allocations: 0 / 472.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003877/0.1605, allocations: 1.652 MB / 474.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.1606, allocations: 136.3 kB / 474.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.1608, allocations: 23.98 kB / 474.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000533/0.1613, allocations: 27.98 kB / 474.6 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.1615, allocations: 64.94 kB / 474.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.826e-05/0.1616, allocations: 23.98 kB / 474.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003755/0.1619, allocations: 323.1 kB / 475 MB, free: 5.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.162, allocations: 0 / 475 MB, free: 5.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008152/0.1628, allocations: 235.8 kB / 475.3 MB, free: 5.188 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 (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.0002117/0.163, allocations: 129.5 kB / 475.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002872/0.1659, allocations: 1.226 MB / 476.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1659, allocations: 0 / 476.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.1673, allocations: 0.6409 MB / 477.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006504/0.1679, allocations: 138.2 kB / 477.4 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.1719, allocations: 2.07 MB / 479.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.1724, allocations: 0.9196 MB / 480.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/0.1727, allocations: 75.33 kB / 480.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1727, allocations: 0 / 480.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Templates: time 0.01848/0.1912, allocations: 15.32 MB / 495.8 MB, free: 0.6211 MB / 366.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)