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.00716/0.00716, allocations: 102 kB / 15.73 MB, free: 6.043 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.001353/0.001353, allocations: 191.2 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2266/0.2266, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 66.95 kB / 437.1 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1279, allocations: 54.97 MB / 492.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004103/0.132, allocations: 3.564 MB / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.1339, allocations: 1.072 MB / 496.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.1341, allocations: 4 kB / 496.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.1343, allocations: 83.09 kB / 496.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004753/0.1348, allocations: 230.3 kB / 497 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.1354, allocations: 235.5 kB / 497.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008758/0.1363, allocations: 0.9121 MB / 498.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007305/0.137, allocations: 0.6113 MB / 498.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.1375, allocations: 426.8 kB / 499.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007179/0.1382, allocations: 0.5997 MB / 499.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.1383, allocations: 100 kB / 499.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002196/0.1386, allocations: 132 kB / 500 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.1388, allocations: 279.2 kB / 0.4885 GB, free: 8.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004168/0.1393, allocations: 457.9 kB / 0.489 GB, free: 8.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009945/0.1403, allocations: 1.086 MB / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1403, allocations: 0 / 0.49 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1403, allocations: 4 kB / 0.49 GB, free: 7.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.1403, allocations: 0 / 0.49 GB, free: 7.379 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00271/0.143, allocations: 1.173 MB / 0.4912 GB, free: 6.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1431, allocations: 8.031 kB / 0.4912 GB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.1433, allocations: 79.94 kB / 0.4913 GB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007344/0.144, allocations: 487 kB / 0.4917 GB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.144, allocations: 41.69 kB / 0.4918 GB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.1442, allocations: 56.38 kB / 0.4918 GB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.1456, allocations: 0.7756 MB / 0.4926 GB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1456, allocations: 4 kB / 0.4926 GB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.36e-05/0.1457, allocations: 24 kB / 0.4926 GB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1457, allocations: 12 kB / 0.4926 GB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1472, allocations: 0.8211 MB / 0.4934 GB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00419/0.1514, allocations: 2.082 MB / 0.4955 GB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.1525, allocations: 0.6732 MB / 0.4961 GB, free: 1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006847/0.1532, allocations: 406.4 kB / 0.4965 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.822e-05/0.1533, allocations: 24.7 kB / 0.4965 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.1534, allocations: 47.05 kB / 0.4966 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006257/0.154, allocations: 163.3 kB / 0.4967 GB, free: 372 kB / 366.1 MB Notification: Performance of pre-optimization done (n=68): time 2.404e-06/0.154, allocations: 0 / 0.4967 GB, free: 372 kB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01045/0.1645, allocations: 2.544 MB / 0.4992 GB, free: 13.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.1645, allocations: 59.97 kB / 0.4993 GB, free: 13.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005871/0.1651, allocations: 493.9 kB / 0.4997 GB, free: 13.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.1652, allocations: 41.7 kB / 0.4998 GB, free: 13.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.1654, allocations: 300.4 kB / 0.5001 GB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.1656, allocations: 244.4 kB / 0.5003 GB, free: 12.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.1659, allocations: 162.6 kB / 0.5005 GB, free: 12.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.166, allocations: 374.7 kB / 0.5008 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000685/0.1667, allocations: 365.7 kB / 0.5012 GB, free: 11.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007741/0.1675, allocations: 0.491 MB / 0.5016 GB, free: 11.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.169, allocations: 0.869 MB / 0.5025 GB, free: 10.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.169, allocations: 0.7656 kB / 0.5025 GB, free: 10.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006204/0.1752, allocations: 1.666 MB / 0.5041 GB, free: 8.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.1753, allocations: 8 kB / 0.5041 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.1753, allocations: 0 / 0.5041 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004518/0.1798, allocations: 0.7281 MB / 0.5048 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.1814, allocations: 247.7 kB / 0.5051 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006488/0.1879, allocations: 4.152 MB / 0.5091 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008856/0.1888, allocations: 32.02 kB / 0.5092 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001725/0.1889, allocations: 47.95 kB / 0.5092 GB, free: 3.148 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.0004763/0.1894, allocations: 202.4 kB / 0.5094 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/0.1897, allocations: 59.25 kB / 0.5095 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004001/0.1937, allocations: 1.415 MB / 0.5108 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.1937, allocations: 12 kB / 0.5108 GB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.1937, allocations: 11.94 kB / 0.5109 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.1937, allocations: 3.984 kB / 0.5109 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.195, allocations: 0.7984 MB / 0.5116 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.1951, allocations: 0 / 0.5116 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.1964, allocations: 215.8 kB / 0.5118 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.1987, allocations: 478 kB / 0.5123 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.1988, allocations: 23.98 kB / 0.5123 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004343/0.2031, allocations: 3.468 MB / 0.5157 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2031, allocations: 480 / 0.5157 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004388/0.2075, allocations: 1.796 MB / 0.5175 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.2078, allocations: 148.2 kB / 0.5176 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001935/0.208, allocations: 20 kB / 0.5176 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000635/0.2087, allocations: 27.97 kB / 0.5177 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.2089, allocations: 64.91 kB / 0.5177 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.429e-05/0.209, allocations: 28.09 kB / 0.5177 GB, free: 10.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005462/0.2095, allocations: 354.8 kB / 0.5181 GB, free: 9.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2095, allocations: 0 / 0.5181 GB, free: 9.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009348/0.2105, allocations: 235.8 kB / 0.5183 GB, free: 9.504 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 (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.0002859/0.2108, allocations: 138.7 kB / 0.5184 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.2137, allocations: 1.186 MB / 0.5196 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.2137, allocations: 4 kB / 0.5196 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.2153, allocations: 0.6923 MB / 0.5203 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007239/0.216, allocations: 142 kB / 0.5204 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004356/0.2204, allocations: 2.109 MB / 0.5225 GB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.2209, allocations: 0.9356 MB / 0.5234 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005305/0.2215, allocations: 145.3 kB / 0.5235 GB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.2218, allocations: 63.41 kB / 0.5236 GB, free: 4.012 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2218, allocations: 7.938 kB / 0.5236 GB, free: 4.004 MB / 398.1 MB Notification: Performance of Templates: time 0.02403/0.2458, allocations: 13.36 MB / 0.5366 GB, free: 6.777 MB / 414.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)