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.006242/0.006242, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.001188/0.001188, allocations: 194.9 kB / 16.67 MB, free: 5.93 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2091/0.2091, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 66.22 kB / 437.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.116, allocations: 54.96 MB / 492 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.00426/0.1203, allocations: 3.455 MB / 495.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.1227, allocations: 1.044 MB / 496.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004096/0.1231, allocations: 4 kB / 496.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.1234, allocations: 71.22 kB / 496.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007121/0.1242, allocations: 218.4 kB / 496.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007167/0.1249, allocations: 223.6 kB / 497.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.126, allocations: 0.8653 MB / 497.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008662/0.1268, allocations: 0.5762 MB / 498.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006404/0.1275, allocations: 402.8 kB / 498.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007659/0.1283, allocations: 0.5724 MB / 499.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.1284, allocations: 100 kB / 499.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.1286, allocations: 124 kB / 499.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.1288, allocations: 267.3 kB / 499.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003665/0.1292, allocations: 434.1 kB / 0.4886 GB, free: 8.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008964/0.1301, allocations: 1.032 MB / 0.4896 GB, free: 7.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1301, allocations: 4 kB / 0.4896 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1301, allocations: 0 / 0.4896 GB, free: 7.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.1302, allocations: 0 / 0.4896 GB, free: 7.816 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.002429/0.1326, allocations: 1.099 MB / 0.4907 GB, free: 6.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1326, allocations: 12.02 kB / 0.4907 GB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.1328, allocations: 72.09 kB / 0.4908 GB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000662/0.1335, allocations: 459.1 kB / 0.4912 GB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.358e-05/0.1336, allocations: 45.69 kB / 0.4913 GB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1337, allocations: 56.38 kB / 0.4913 GB, free: 6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.135, allocations: 0.7367 MB / 0.4921 GB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.135, allocations: 0 / 0.4921 GB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.181e-05/0.1351, allocations: 24 kB / 0.4921 GB, free: 5.234 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.1351, allocations: 12 kB / 0.4921 GB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.1366, allocations: 0.8055 MB / 0.4929 GB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004644/0.1412, allocations: 2.396 MB / 0.4952 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1423, allocations: 0.6268 MB / 0.4958 GB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.1432, allocations: 438.2 kB / 0.4962 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.1433, allocations: 16.55 kB / 0.4963 GB, free: 0.875 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1433, allocations: 39.12 kB / 0.4963 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000564/0.1439, allocations: 159.3 kB / 0.4965 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.936e-06/0.1439, allocations: 0 / 0.4965 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.008805/0.1527, allocations: 2.385 MB / 0.4988 GB, free: 14.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.1528, allocations: 55.97 kB / 0.4988 GB, free: 14.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005104/0.1533, allocations: 453.7 kB / 0.4993 GB, free: 13.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.1533, allocations: 37.7 kB / 0.4993 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.1535, allocations: 264.7 kB / 0.4996 GB, free: 13.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1537, allocations: 236.6 kB / 0.4998 GB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.154, allocations: 162.5 kB / 0.4999 GB, free: 12.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002148/0.1542, allocations: 370.8 kB / 0.5003 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.1548, allocations: 337.8 kB / 0.5006 GB, free: 12.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006587/0.1555, allocations: 466.8 kB / 0.5011 GB, free: 11.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.1568, allocations: 0.826 MB / 0.5019 GB, free: 10.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1568, allocations: 0 / 0.5019 GB, free: 10.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00506/0.1618, allocations: 1.572 MB / 0.5034 GB, free: 9.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.1619, allocations: 8 kB / 0.5034 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1619, allocations: 0 / 0.5034 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004326/0.1662, allocations: 0.8143 MB / 0.5042 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.1675, allocations: 247.7 kB / 0.5044 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005524/0.173, allocations: 4.079 MB / 0.5084 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006324/0.1737, allocations: 28.03 kB / 0.5084 GB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.1738, allocations: 39.95 kB / 0.5085 GB, free: 3.914 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.0003071/0.1741, allocations: 198.6 kB / 0.5087 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1742, allocations: 59.28 kB / 0.5087 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003127/0.1773, allocations: 1.314 MB / 0.51 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.1774, allocations: 11.94 kB / 0.51 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.1774, allocations: 0 / 0.51 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1774, allocations: 3.984 kB / 0.51 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003762/0.1812, allocations: 2.012 MB / 0.512 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1812, allocations: 0 / 0.512 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.1822, allocations: 219.7 kB / 0.5122 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.1844, allocations: 0.5101 MB / 0.5127 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.184e-05/0.1845, allocations: 23.98 kB / 0.5127 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.1879, allocations: 3.404 MB / 0.5161 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1879, allocations: 0 / 0.5161 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00351/0.1914, allocations: 1.673 MB / 0.5177 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.1916, allocations: 136.4 kB / 0.5178 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.534e-05/0.1917, allocations: 23.94 kB / 0.5178 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004437/0.1922, allocations: 31.91 kB / 0.5179 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1923, allocations: 64.91 kB / 0.5179 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.1924, allocations: 23.98 kB / 0.518 GB, free: 9.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003582/0.1927, allocations: 323.1 kB / 0.5183 GB, free: 9.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1927, allocations: 0 / 0.5183 GB, free: 9.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007699/0.1935, allocations: 227.8 kB / 0.5185 GB, free: 9.336 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.0002268/0.1937, allocations: 135.2 kB / 0.5186 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00229/0.196, allocations: 1.113 MB / 0.5197 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1961, allocations: 0 / 0.5197 GB, free: 8.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.1973, allocations: 0.6446 MB / 0.5203 GB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.1979, allocations: 138 kB / 0.5205 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003588/0.2015, allocations: 2.023 MB / 0.5224 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.202, allocations: 0.9196 MB / 0.5233 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004276/0.2024, allocations: 137.2 kB / 0.5235 GB, free: 4.156 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.2026, allocations: 71.34 kB / 0.5235 GB, free: 4.086 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2027, allocations: 0 / 0.5235 GB, free: 4.086 MB / 398.1 MB Notification: Performance of Templates: time 0.0188/0.2215, allocations: 12.68 MB / 0.5359 GB, free: 7.539 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)