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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1155/0.1155, allocations: 21.44 MB / 36.39 MB, free: 1.219 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 179.1 kB / 42.62 MB, free: 3.992 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.4 MB / 254.1 MB, free: 15.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 88.62 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003683, allocations: 8.719 kB / 373.2 MB, free: 59.15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 52.96 MB / 426.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3397/0.4443, allocations: 81.47 MB / 0.4958 GB, free: 17.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/0.4446, allocations: 84.22 kB / 0.4958 GB, free: 17.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02918/0.4738, allocations: 9.749 MB / 0.5054 GB, free: 16.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4739, allocations: 0 / 0.5054 GB, free: 16.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.14e-05/0.474, allocations: 15.66 kB / 0.5054 GB, free: 16.9 MB / 362.7 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.002514/0.4765, allocations: 0.8943 MB / 0.5063 GB, free: 16.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/0.4765, allocations: 8.25 kB / 0.5063 GB, free: 16.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.4767, allocations: 74.12 kB / 0.5063 GB, free: 16.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000769/0.4775, allocations: 456.7 kB / 0.5068 GB, free: 16.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.4776, allocations: 41.56 kB / 0.5068 GB, free: 16.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001571/0.4777, allocations: 58.03 kB / 0.5069 GB, free: 16.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.4792, allocations: 0.7493 MB / 0.5076 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.4792, allocations: 1.812 kB / 0.5076 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-05/0.4793, allocations: 21.41 kB / 0.5076 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.4793, allocations: 13.38 kB / 0.5076 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.4809, allocations: 0.8247 MB / 0.5084 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.4853, allocations: 2.021 MB / 0.5104 GB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.4863, allocations: 0.6656 MB / 0.5111 GB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001818/0.4865, allocations: 102.7 kB / 0.5112 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.4865, allocations: 42.19 kB / 0.5112 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008882/0.4874, allocations: 208.9 kB / 0.5114 GB, free: 15.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.727e-06/0.4874, allocations: 0 / 0.5114 GB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.009422/0.4969, allocations: 2.468 MB / 0.5138 GB, free: 14.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.4969, allocations: 59.62 kB / 0.5139 GB, free: 14.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000441/0.4974, allocations: 384.4 kB / 0.5142 GB, free: 14.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.4975, allocations: 40.69 kB / 0.5143 GB, free: 14.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4976, allocations: 263.7 kB / 0.5145 GB, free: 14.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.4978, allocations: 246.8 kB / 0.5148 GB, free: 14.35 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.172e-05/0.4979, allocations: 17.25 kB / 0.5148 GB, free: 14.35 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.498, allocations: 369.1 kB / 0.5151 GB, free: 14.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005855/0.4986, allocations: 355.5 kB / 0.5155 GB, free: 14.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000639/0.4992, allocations: 482.1 kB / 0.5159 GB, free: 13.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006028/0.4998, allocations: 425 kB / 0.5163 GB, free: 13.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.4998, allocations: 1.594 kB / 0.5163 GB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006304/0.5061, allocations: 1.711 MB / 0.518 GB, free: 13.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.5062, allocations: 5.75 kB / 0.518 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5062, allocations: 7.875 kB / 0.518 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006099/0.5123, allocations: 0.8452 MB / 0.5188 GB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.5138, allocations: 299.6 kB / 0.5191 GB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005597/0.5194, allocations: 3.898 MB / 0.5229 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009154/0.5203, allocations: 40.66 kB / 0.523 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.5204, allocations: 45.22 kB / 0.523 GB, free: 27.15 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/0.5208, allocations: 199.5 kB / 0.5232 GB, free: 27.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.5209, allocations: 61.12 kB / 0.5233 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/0.5251, allocations: 1.473 MB / 0.5247 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.5251, allocations: 7.781 kB / 0.5247 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5251, allocations: 7.969 kB / 0.5247 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.5252, allocations: 7.641 kB / 0.5247 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.5263, allocations: 0.7768 MB / 0.5255 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.5263, allocations: 0 / 0.5255 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.5276, allocations: 269 kB / 0.5257 GB, free: 26.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004032/0.5316, allocations: 0.6121 MB / 0.5263 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.5317, allocations: 23.91 kB / 0.5264 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003625/0.5354, allocations: 3.247 MB / 0.5295 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5354, allocations: 0 / 0.5295 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004378/0.5398, allocations: 1.796 MB / 0.5313 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.54, allocations: 142.8 kB / 0.5314 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.11e-05/0.5401, allocations: 15.12 kB / 0.5314 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.5406, allocations: 30.58 kB / 0.5315 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.5407, allocations: 58.67 kB / 0.5315 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/0.5408, allocations: 34.78 kB / 0.5316 GB, free: 23.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003181/0.5411, allocations: 296.9 kB / 0.5318 GB, free: 23.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5411, allocations: 0 / 0.5318 GB, free: 23.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008124/0.5419, allocations: 239.1 kB / 0.5321 GB, free: 23.62 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002278/0.5422, allocations: 145 kB / 0.5322 GB, free: 23.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001951/0.5441, allocations: 1.091 MB / 0.5333 GB, free: 23.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5441, allocations: 7.969 kB / 0.5333 GB, free: 23.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009675/0.5451, allocations: 0.6449 MB / 0.5339 GB, free: 23.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004788/0.5456, allocations: 109.6 kB / 0.534 GB, free: 23.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.5487, allocations: 2.337 MB / 0.5363 GB, free: 21.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.5492, allocations: 0.9363 MB / 0.5372 GB, free: 21.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004676/0.5496, allocations: 147.2 kB / 0.5373 GB, free: 21.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.5498, allocations: 63.12 kB / 0.5374 GB, free: 21.23 MB / 378.7 MB Notification: Performance of SimCode: time 6.32e-07/0.5498, allocations: 0 / 0.5374 GB, free: 21.23 MB / 378.7 MB Notification: Performance of Templates: time 0.01479/0.5646, allocations: 10.75 MB / 0.5479 GB, free: 16.12 MB / 378.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)