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.001002/0.001002, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008527/0.008528, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.523/1.523, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2252/0.2252, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 12 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3556, allocations: 55.98 MB / 438.6 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00236/0.358, allocations: 2.5 MB / 441.1 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008041/0.3588, allocations: 401.2 kB / 441.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.359, allocations: 12.31 kB / 441.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.94e-05/0.3591, allocations: 27.42 kB / 441.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.3594, allocations: 105.5 kB / 441.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3596, allocations: 60.91 kB / 441.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.3599, allocations: 345.9 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.3601, allocations: 144.9 kB / 442.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.3603, allocations: 133.2 kB / 442.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001686/0.3605, allocations: 119.4 kB / 442.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.3605, allocations: 12.16 kB / 442.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.3606, allocations: 39.56 kB / 442.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.293e-05/0.3607, allocations: 44.73 kB / 442.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.3608, allocations: 161.5 kB / 442.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.361, allocations: 283.1 kB / 442.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.361, allocations: 0 / 442.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3611, allocations: 0 / 442.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3611, allocations: 0 / 442.9 MB, free: 36.44 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.0006613/0.3617, allocations: 0.5284 MB / 443.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3618, allocations: 12.91 kB / 443.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.3619, allocations: 31.16 kB / 443.5 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.3621, allocations: 287.8 kB / 443.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.3622, allocations: 17.19 kB / 443.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.3622, allocations: 15.88 kB / 443.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.3625, allocations: 211.6 kB / 444 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3625, allocations: 192 / 444 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.3626, allocations: 14.91 kB / 444 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3626, allocations: 6 kB / 444 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.3628, allocations: 129.2 kB / 444.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009441/0.3638, allocations: 0.8264 MB / 445 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.364, allocations: 98.86 kB / 445.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.972e-05/0.3641, allocations: 43.73 kB / 445.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.3642, allocations: 7.391 kB / 445.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.3642, allocations: 30.56 kB / 445.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3642, allocations: 0 / 445.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003523/0.3646, allocations: 153.1 kB / 445.3 MB, free: 34.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.3646, allocations: 51.41 kB / 445.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.3649, allocations: 299.8 kB / 445.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.3649, allocations: 29.12 kB / 445.7 MB, free: 34.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.365, allocations: 171.8 kB / 445.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.574e-05/0.365, allocations: 33.67 kB / 445.9 MB, free: 34.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.3651, allocations: 19.34 kB / 445.9 MB, free: 34.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.466e-05/0.3652, allocations: 338.4 kB / 446.2 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.3653, allocations: 34.44 kB / 446.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.678e-05/0.3653, allocations: 62.8 kB / 446.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/0.3665, allocations: 258.2 kB / 446.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3665, allocations: 0 / 446.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002437/0.3668, allocations: 159.8 kB / 446.7 MB, free: 33.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3668, allocations: 5.594 kB / 446.7 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3668, allocations: 4.062 kB / 446.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3668, allocations: 6.688 kB / 446.7 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.367, allocations: 36.78 kB / 446.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.367, allocations: 0 / 446.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.3672, allocations: 29.09 kB / 446.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.3672, allocations: 5.156 kB / 446.8 MB, free: 33.57 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.0001979/0.3674, allocations: 144.7 kB / 447 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.3674, allocations: 23.81 kB / 447 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002862/0.3677, allocations: 165.5 kB / 447.1 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3677, allocations: 7.875 kB / 447.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.3678, allocations: 384 / 447.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3678, allocations: 0 / 447.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.368, allocations: 284.5 kB / 447.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.368, allocations: 0 / 447.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.3682, allocations: 34.19 kB / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3682, allocations: 3.062 kB / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3682, allocations: 0 / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3682, allocations: 3.938 kB / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3682, allocations: 0 / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.3685, allocations: 282.6 kB / 447.7 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.3686, allocations: 104.9 kB / 447.8 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.3686, allocations: 0 / 447.8 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.3688, allocations: 11.19 kB / 447.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.3688, allocations: 6.234 kB / 447.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.3688, allocations: 2.938 kB / 447.9 MB, free: 32.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001581/0.369, allocations: 213.7 kB / 448.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.369, allocations: 4.062 kB / 448.1 MB, free: 32.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.3693, allocations: 57.62 kB / 448.1 MB, free: 32.62 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.0001148/0.3694, allocations: 98.22 kB / 448.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.3696, allocations: 98.36 kB / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3696, allocations: 0 / 448.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.363e-05/0.3697, allocations: 48.41 kB / 448.4 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.3701, allocations: 65.27 kB / 448.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.3712, allocations: 0.7278 MB / 449.2 MB, free: 31.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.3715, allocations: 0.7526 MB / 449.9 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001534/0.3716, allocations: 35.91 kB / 450 MB, free: 31.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.136e-05/0.3717, allocations: 26.52 kB / 450 MB, free: 31.27 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3717, allocations: 0 / 450 MB, free: 31.27 MB / 350.1 MB Notification: Performance of Templates: time 0.005658/0.3773, allocations: 2.607 MB / 452.6 MB, free: 31.1 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)