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.0008302/0.0008303, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005444/0.005444, allocations: 170 kB / 16.26 MB, free: 6.613 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.403/1.403, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.216/0.216, allocations: 22.36 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003456, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3053, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.002642/0.308, allocations: 2.499 MB / 441.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000812/0.3089, allocations: 397.5 kB / 441.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.309, allocations: 11.38 kB / 441.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.987e-05/0.3091, allocations: 31.48 kB / 441.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002699/0.3094, allocations: 105 kB / 441.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.3095, allocations: 58.11 kB / 441.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.3098, allocations: 346.9 kB / 442 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.31, allocations: 141.3 kB / 442.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.3102, allocations: 139.8 kB / 442.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.3104, allocations: 121.6 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.3104, allocations: 12.5 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.812e-05/0.3105, allocations: 40.02 kB / 442.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.163e-05/0.3105, allocations: 36.11 kB / 442.5 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.3106, allocations: 159.2 kB / 442.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.3109, allocations: 284.9 kB / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3109, allocations: 0 / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3109, allocations: 2.812 kB / 442.9 MB, free: 36.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.311, allocations: 0 / 442.9 MB, free: 36.54 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.0006581/0.3116, allocations: 0.5253 MB / 443.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3117, allocations: 16.66 kB / 443.5 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.3117, allocations: 30.91 kB / 443.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.312, allocations: 291 kB / 443.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.3121, allocations: 13.28 kB / 443.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.489e-05/0.3121, allocations: 21.16 kB / 443.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.3125, allocations: 206.8 kB / 444 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3125, allocations: 192 / 444 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.3125, allocations: 10.62 kB / 444 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3126, allocations: 8.938 kB / 444 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.3128, allocations: 130.7 kB / 444.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.3139, allocations: 0.8272 MB / 445 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.3142, allocations: 99.98 kB / 445.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.832e-05/0.3142, allocations: 40.14 kB / 445.1 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3143, allocations: 6.781 kB / 445.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.3143, allocations: 38.56 kB / 445.2 MB, free: 34.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.3143, allocations: 4 kB / 445.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000331/0.3146, allocations: 149.2 kB / 445.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3147, allocations: 55.34 kB / 445.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.315, allocations: 289.5 kB / 445.6 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.315, allocations: 28.73 kB / 445.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.3151, allocations: 173.7 kB / 445.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.3151, allocations: 36.92 kB / 445.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.3152, allocations: 23.14 kB / 445.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.801e-05/0.3153, allocations: 339.8 kB / 446.2 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.875e-05/0.3153, allocations: 31.33 kB / 446.3 MB, free: 33.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.463e-05/0.3154, allocations: 60.33 kB / 446.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.3166, allocations: 261.1 kB / 446.6 MB, free: 33.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3166, allocations: 4 kB / 446.6 MB, free: 33.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002413/0.3169, allocations: 158.9 kB / 446.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3169, allocations: 6 kB / 446.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3169, allocations: 0 / 446.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3169, allocations: 6.906 kB / 446.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.3171, allocations: 37.58 kB / 446.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.3171, allocations: 3.469 kB / 446.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.3173, allocations: 22.28 kB / 446.8 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.3173, allocations: 5.375 kB / 446.8 MB, free: 33.67 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.0001943/0.3175, allocations: 141.6 kB / 447 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.3175, allocations: 23.88 kB / 447 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.3178, allocations: 165.8 kB / 447.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3178, allocations: 3.938 kB / 447.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3178, allocations: 0 / 447.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.3179, allocations: 2.906 kB / 447.2 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.3181, allocations: 288.6 kB / 447.4 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3181, allocations: 0 / 447.4 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.3183, allocations: 27 kB / 447.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3183, allocations: 6.875 kB / 447.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3183, allocations: 0 / 447.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.3183, allocations: 3.938 kB / 447.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3183, allocations: 2.875 kB / 447.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.3187, allocations: 281.9 kB / 447.7 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.662e-05/0.3187, allocations: 98 kB / 447.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.3188, allocations: 6.969 kB / 447.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.3189, allocations: 3.938 kB / 447.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.697e-05/0.3189, allocations: 13.34 kB / 447.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.319, allocations: 7 kB / 447.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.3191, allocations: 209.4 kB / 448.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3191, allocations: 0 / 448.1 MB, free: 32.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.3194, allocations: 55.78 kB / 448.1 MB, free: 32.73 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.0001284/0.3196, allocations: 100.8 kB / 448.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3198, allocations: 98.62 kB / 448.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3198, allocations: 8.062 kB / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.965e-05/0.3199, allocations: 43.14 kB / 448.4 MB, free: 32.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3203, allocations: 56.5 kB / 448.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000965/0.3212, allocations: 0.7371 MB / 449.2 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001632/0.3214, allocations: 0.7581 MB / 449.9 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001414/0.3216, allocations: 31.09 kB / 450 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.764e-05/0.3216, allocations: 22.78 kB / 450 MB, free: 31.37 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3216, allocations: 0 / 450 MB, free: 31.37 MB / 350.1 MB Notification: Performance of Templates: time 0.005645/0.3273, allocations: 2.624 MB / 452.6 MB, free: 31.19 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)