Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_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_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 105 kB / 15.98 MB, free: 6.352 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.00102/0.00102, allocations: 195.3 kB / 16.91 MB, free: 6.184 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.208/1.208, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08422/0.08422, allocations: 22.32 MB / 313.1 MB, free: 8.938 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 61.81 kB / 380.9 MB, free: 41.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08293, allocations: 54.96 MB / 435.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003607/0.08658, allocations: 2.857 MB / 438.7 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006106/0.08721, allocations: 398.5 kB / 439.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.08735, allocations: 15.94 kB / 439.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.02e-05/0.08743, allocations: 27.77 kB / 439.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.08769, allocations: 107.2 kB / 439.3 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.08788, allocations: 59.94 kB / 439.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.08816, allocations: 362.2 kB / 439.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.08839, allocations: 165.6 kB / 439.8 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.08857, allocations: 147.3 kB / 440 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.08872, allocations: 127.4 kB / 440.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.08876, allocations: 20 kB / 440.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.322e-05/0.08886, allocations: 47.97 kB / 440.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.08891, allocations: 51.72 kB / 440.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.08902, allocations: 143.3 kB / 440.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.08924, allocations: 223.7 kB / 440.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.08925, allocations: 0 / 440.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.08925, allocations: 0 / 440.6 MB, free: 8.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.08926, allocations: 0 / 440.6 MB, free: 8.668 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007094/0.08998, allocations: 0.5726 MB / 441.2 MB, free: 8.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.09001, allocations: 8.031 kB / 441.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.472e-05/0.09007, allocations: 32.56 kB / 441.2 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.09035, allocations: 282.6 kB / 441.5 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.09037, allocations: 16.75 kB / 441.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.09042, allocations: 16.38 kB / 441.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.09072, allocations: 208.6 kB / 441.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.09074, allocations: 8.172 kB / 441.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.09077, allocations: 15.92 kB / 441.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.09078, allocations: 4 kB / 441.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.09099, allocations: 124.8 kB / 441.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008856/0.09189, allocations: 0.8262 MB / 442.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.09211, allocations: 98.67 kB / 442.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.362e-05/0.0922, allocations: 44.84 kB / 442.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.09223, allocations: 0 / 442.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.09225, allocations: 38.55 kB / 442.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 9.72e-07/0.09226, allocations: 0 / 442.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002862/0.09255, allocations: 149.5 kB / 443 MB, free: 6.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.09259, allocations: 55.41 kB / 443.1 MB, free: 5.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.09284, allocations: 304.4 kB / 443.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.09287, allocations: 25.8 kB / 443.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.09297, allocations: 171.6 kB / 443.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.093, allocations: 43.39 kB / 443.6 MB, free: 5.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.09306, allocations: 29.7 kB / 443.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.09318, allocations: 338.8 kB / 444 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.021e-05/0.09325, allocations: 35.98 kB / 444 MB, free: 5.016 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.968e-05/0.09334, allocations: 62.55 kB / 444.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.09445, allocations: 257.2 kB / 444.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.09446, allocations: 0 / 444.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002474/0.09472, allocations: 165.3 kB / 444.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.09474, allocations: 6.5 kB / 444.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.09475, allocations: 7.984 kB / 444.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.09476, allocations: 3.938 kB / 444.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.09496, allocations: 31.98 kB / 444.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.09498, allocations: 4 kB / 444.5 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.0951, allocations: 15.84 kB / 444.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.09512, allocations: 7.938 kB / 444.5 MB, free: 4.445 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.09531, allocations: 141.8 kB / 444.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.192e-05/0.09535, allocations: 23.72 kB / 444.7 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002849/0.09564, allocations: 166.4 kB / 444.9 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.09566, allocations: 7.875 kB / 444.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.09566, allocations: 0 / 444.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.09568, allocations: 4 kB / 444.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.09594, allocations: 281.4 kB / 445.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.09595, allocations: 0 / 445.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.09613, allocations: 27.98 kB / 445.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.09614, allocations: 0 / 445.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.09616, allocations: 4 kB / 445.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.09617, allocations: 3.938 kB / 445.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.09617, allocations: 4 kB / 445.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003164/0.09649, allocations: 275.2 kB / 445.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.09656, allocations: 104.7 kB / 445.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/0.09661, allocations: 8 kB / 445.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.09673, allocations: 3.938 kB / 445.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.09677, allocations: 12.03 kB / 445.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.09679, allocations: 12 kB / 445.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001711/0.09696, allocations: 211.1 kB / 445.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09697, allocations: 4 kB / 445.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.09724, allocations: 48 kB / 445.9 MB, free: 3.035 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.09737, allocations: 95.25 kB / 445.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002061/0.09758, allocations: 111.9 kB / 446.1 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.09759, allocations: 3.938 kB / 446.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.951e-05/0.09768, allocations: 52.05 kB / 446.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.09803, allocations: 48.61 kB / 446.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009396/0.09897, allocations: 0.6949 MB / 446.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.09924, allocations: 0.7558 MB / 447.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.09931, allocations: 23.44 kB / 447.6 MB, free: 1.195 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09931, allocations: 0 / 447.6 MB, free: 1.195 MB / 318.1 MB Notification: Performance of Templates: time 0.00432/0.1036, allocations: 3.084 MB / 450.7 MB, free: 14.12 MB / 334.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)