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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.458/1.458, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2243/0.2243, allocations: 22.35 MB / 312.7 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 55.91 kB / 380.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3592, allocations: 54.96 MB / 435.8 MB, free: 40.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00355/0.3628, allocations: 2.566 MB / 438.3 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006658/0.3634, allocations: 365 kB / 438.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.3636, allocations: 10.16 kB / 438.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.639e-05/0.3637, allocations: 32.14 kB / 438.7 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.3639, allocations: 126.6 kB / 438.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.3642, allocations: 77.03 kB / 438.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.3645, allocations: 351.8 kB / 439.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.3647, allocations: 175.7 kB / 439.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3649, allocations: 141.6 kB / 439.6 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.3651, allocations: 127 kB / 439.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.677e-05/0.3651, allocations: 19.19 kB / 439.7 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.3653, allocations: 42.34 kB / 439.8 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.3653, allocations: 58.48 kB / 439.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.3654, allocations: 133.7 kB / 440 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.3657, allocations: 299.3 kB / 440.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3657, allocations: 0 / 440.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3657, allocations: 0 / 440.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3658, allocations: 0 / 440.3 MB, free: 37.25 MB / 350.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.0007845/0.3665, allocations: 0.5695 MB / 440.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.3666, allocations: 8.625 kB / 440.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.227e-05/0.3667, allocations: 33.47 kB / 440.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.3669, allocations: 291.3 kB / 441.2 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3669, allocations: 11.31 kB / 441.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.367, allocations: 18.88 kB / 441.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.3673, allocations: 214.5 kB / 441.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3673, allocations: 3.938 kB / 441.4 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.3673, allocations: 7.938 kB / 441.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3673, allocations: 5.688 kB / 441.4 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.3675, allocations: 129.1 kB / 441.5 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008305/0.3684, allocations: 0.8228 MB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.3686, allocations: 96.78 kB / 442.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.116e-05/0.3687, allocations: 47.69 kB / 442.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.3687, allocations: 0 / 442.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.3688, allocations: 33.34 kB / 442.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.3688, allocations: 0 / 442.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003205/0.3691, allocations: 154.5 kB / 442.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.3691, allocations: 59.34 kB / 442.7 MB, free: 35.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.3694, allocations: 288 kB / 443 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.3694, allocations: 29.7 kB / 443.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.005e-05/0.3695, allocations: 172 kB / 443.2 MB, free: 35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.3695, allocations: 40.78 kB / 443.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-05/0.3696, allocations: 29.88 kB / 443.3 MB, free: 34.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.273e-05/0.3697, allocations: 336.4 kB / 443.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.173e-05/0.3697, allocations: 37.62 kB / 443.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.602e-05/0.3698, allocations: 66.89 kB / 443.7 MB, free: 34.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.371, allocations: 252.6 kB / 444 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.371, allocations: 2.562 kB / 444 MB, free: 34.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000235/0.3713, allocations: 175.8 kB / 444.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3713, allocations: 3.906 kB / 444.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3713, allocations: 6.922 kB / 444.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3713, allocations: 3.938 kB / 444.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.3715, allocations: 33 kB / 444.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3716, allocations: 3.984 kB / 444.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.3717, allocations: 20.41 kB / 444.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.3717, allocations: 5.938 kB / 444.2 MB, free: 34.35 MB / 350.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.0002233/0.3719, allocations: 139.4 kB / 444.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.372, allocations: 30.39 kB / 444.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.3723, allocations: 153.1 kB / 444.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3723, allocations: 3.938 kB / 444.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3723, allocations: 3.281 kB / 444.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3723, allocations: 0 / 444.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002522/0.3726, allocations: 278 kB / 444.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3726, allocations: 4 kB / 444.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.3728, allocations: 34.31 kB / 444.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3728, allocations: 0 / 444.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.3728, allocations: 8 kB / 444.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.3728, allocations: 6.656 kB / 444.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3728, allocations: 384 / 444.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.3731, allocations: 271.5 kB / 445.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.3732, allocations: 102 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.3732, allocations: 7.844 kB / 445.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.3734, allocations: 15.16 kB / 445.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.979e-05/0.3734, allocations: 13.08 kB / 445.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-06/0.3734, allocations: 7.156 kB / 445.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001749/0.3736, allocations: 209.5 kB / 445.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3736, allocations: 0 / 445.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.3739, allocations: 54.5 kB / 445.5 MB, free: 33.4 MB / 350.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.0001365/0.374, allocations: 103.9 kB / 445.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.3743, allocations: 109.3 kB / 445.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3743, allocations: 0 / 445.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.303e-05/0.3744, allocations: 50.2 kB / 445.8 MB, free: 33.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.3748, allocations: 62.97 kB / 445.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009072/0.3757, allocations: 0.5903 MB / 446.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.3758, allocations: 0.7521 MB / 447.2 MB, free: 32.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.376, allocations: 31.14 kB / 447.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.3761, allocations: 25.84 kB / 447.2 MB, free: 32.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3761, allocations: 7.125 kB / 447.3 MB, free: 32.13 MB / 350.1 MB Notification: Performance of Templates: time 0.005666/0.3817, allocations: 2.773 MB / 450 MB, free: 31.95 MB / 350.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)