Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001172, 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.001262/0.001262, allocations: 197 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2116/0.2116, allocations: 22.36 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 67.89 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3449, allocations: 54.94 MB / 435.8 MB, free: 39.83 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001): time 0.03336/0.3784, allocations: 21.84 MB / 457.6 MB, free: 32.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007488/0.3791, allocations: 221.2 kB / 457.8 MB, free: 31.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.3793, allocations: 11.81 kB / 457.8 MB, free: 31.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.236e-05/0.3794, allocations: 31.95 kB / 457.9 MB, free: 31.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.3796, allocations: 96.89 kB / 458 MB, free: 31.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.3798, allocations: 41.11 kB / 458 MB, free: 31.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.3801, allocations: 287.3 kB / 458.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002726/0.3804, allocations: 152.9 kB / 458.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.3805, allocations: 116.7 kB / 458.5 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3807, allocations: 99.69 kB / 458.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.3807, allocations: 13.88 kB / 458.7 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.446e-05/0.3808, allocations: 14.81 kB / 458.7 MB, free: 31.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.3808, allocations: 44.28 kB / 458.7 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.3809, allocations: 110.2 kB / 458.8 MB, free: 31.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.3812, allocations: 221.3 kB / 459 MB, free: 31.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3812, allocations: 4 kB / 459 MB, free: 31.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.3812, allocations: 1.219 kB / 459 MB, free: 31.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3812, allocations: 0 / 459 MB, free: 31.26 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006564/0.3818, allocations: 0.5147 MB / 459.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3819, allocations: 8.781 kB / 459.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.589e-05/0.382, allocations: 29.44 kB / 459.6 MB, free: 30.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.3822, allocations: 268.9 kB / 459.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.3823, allocations: 15.8 kB / 459.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.3823, allocations: 14.62 kB / 459.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003419/0.3826, allocations: 189.7 kB / 460.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3827, allocations: 192 / 460.1 MB, free: 30.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3827, allocations: 13.47 kB / 460.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.3827, allocations: 8.453 kB / 460.1 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.383, allocations: 127 kB / 460.2 MB, free: 30.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007854/0.3838, allocations: 0.8475 MB / 461.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.384, allocations: 88.83 kB / 461.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.3842, allocations: 54.95 kB / 461.2 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.3842, allocations: 1 kB / 461.2 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.3842, allocations: 35.84 kB / 461.2 MB, free: 29.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.3842, allocations: 0 / 461.2 MB, free: 29.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005006/0.3847, allocations: 185.3 kB / 461.4 MB, free: 29.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.3848, allocations: 52.5 kB / 461.5 MB, free: 29.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.385, allocations: 226 kB / 461.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.385, allocations: 29.7 kB / 461.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.3851, allocations: 144.9 kB / 461.9 MB, free: 29.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.3851, allocations: 49.47 kB / 461.9 MB, free: 29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.3851, allocations: 30.62 kB / 461.9 MB, free: 28.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.3852, allocations: 338.2 kB / 462.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.3853, allocations: 43.2 kB / 462.3 MB, free: 28.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.3855, allocations: 60.77 kB / 462.4 MB, free: 28.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008129/0.3863, allocations: 222.6 kB / 462.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3863, allocations: 1.406 kB / 462.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000316/0.3866, allocations: 172.7 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3867, allocations: 8.203 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3867, allocations: 1.25 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3867, allocations: 1.188 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.3869, allocations: 35.64 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.3869, allocations: 1.562 kB / 462.8 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.387, allocations: 19.44 kB / 462.8 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.387, allocations: 8.5 kB / 462.8 MB, free: 28.39 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.0001489/0.3872, allocations: 136 kB / 463 MB, free: 28.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.418e-05/0.3873, allocations: 24.83 kB / 463 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.3873, allocations: 22.53 kB / 463 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3873, allocations: 1.562 kB / 463 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3873, allocations: 5.531 kB / 463 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3873, allocations: 7.234 kB / 463 MB, free: 28.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.3876, allocations: 265 kB / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3876, allocations: 0 / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.3878, allocations: 40.16 kB / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3878, allocations: 0 / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3878, allocations: 1.344 kB / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.3878, allocations: 1.125 kB / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3878, allocations: 0 / 463.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000472/0.3883, allocations: 299.1 kB / 463.6 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.3883, allocations: 97.72 kB / 463.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.3884, allocations: 5.156 kB / 463.7 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.3885, allocations: 9.578 kB / 463.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.3886, allocations: 12.23 kB / 463.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.3886, allocations: 3.188 kB / 463.7 MB, free: 27.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.3887, allocations: 165.1 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3887, allocations: 4.062 kB / 463.9 MB, free: 27.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.389, allocations: 44.22 kB / 464 MB, free: 27.54 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 (14): * Single equations (assignments): 14 * 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 9.462e-05/0.3891, allocations: 103.5 kB / 464.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.3894, allocations: 117.3 kB / 464.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3894, allocations: 0 / 464.2 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.3896, allocations: 59.39 kB / 464.2 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3899, allocations: 55.97 kB / 464.3 MB, free: 27.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009552/0.3909, allocations: 0.5584 MB / 464.8 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.3911, allocations: 0.7373 MB / 465.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.3912, allocations: 33.75 kB / 465.6 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.756e-05/0.3913, allocations: 21.03 kB / 465.6 MB, free: 26.28 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3913, allocations: 0 / 465.6 MB, free: 26.28 MB / 350.1 MB Notification: Performance of Templates: time 0.005106/0.3964, allocations: 2.364 MB / 468 MB, free: 25.6 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)