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.005193/0.005193, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001302/0.001302, allocations: 193.9 kB / 16.79 MB, free: 6.254 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.316/1.316, allocations: 222.9 MB / 240.5 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1927/0.1927, allocations: 22.34 MB / 313 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 71.88 kB / 380.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2388, allocations: 54.94 MB / 435.7 MB, free: 39.6 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.02813/0.267, allocations: 21.99 MB / 457.7 MB, free: 31.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006233/0.2676, allocations: 249.5 kB / 457.9 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.2678, allocations: 13.84 kB / 457.9 MB, free: 31.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.946e-05/0.2679, allocations: 17.19 kB / 458 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.2681, allocations: 88.47 kB / 458 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.2682, allocations: 35.05 kB / 458.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.2684, allocations: 283 kB / 458.4 MB, free: 31.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.2686, allocations: 128.5 kB / 458.5 MB, free: 31.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.2688, allocations: 123.1 kB / 458.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.2689, allocations: 94.22 kB / 458.7 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.269, allocations: 11.75 kB / 458.7 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.235e-05/0.269, allocations: 14.16 kB / 458.7 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.425e-05/0.2691, allocations: 35.44 kB / 458.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.552e-05/0.2692, allocations: 109.9 kB / 458.9 MB, free: 30.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.2693, allocations: 173.5 kB / 459 MB, free: 30.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2693, allocations: 0 / 459 MB, free: 30.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2694, allocations: 0 / 459 MB, free: 30.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2694, allocations: 0 / 459 MB, free: 30.93 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.0006406/0.27, allocations: 0.5118 MB / 459.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.27, allocations: 9.219 kB / 459.5 MB, free: 30.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.2701, allocations: 28.59 kB / 459.6 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.2703, allocations: 270 kB / 459.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2704, allocations: 12.08 kB / 459.9 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.2704, allocations: 14.28 kB / 459.9 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.2707, allocations: 192.9 kB / 460.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2708, allocations: 5.031 kB / 460.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.2708, allocations: 13.91 kB / 460.1 MB, free: 30.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2708, allocations: 3.438 kB / 460.1 MB, free: 30.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.2711, allocations: 114.9 kB / 460.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007527/0.2719, allocations: 0.8461 MB / 461 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.2721, allocations: 84.41 kB / 461.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.2722, allocations: 59.11 kB / 461.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.2722, allocations: 5.422 kB / 461.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.2722, allocations: 31.75 kB / 461.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.2722, allocations: 0 / 461.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004583/0.2727, allocations: 183.2 kB / 461.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.2727, allocations: 60.66 kB / 461.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.2729, allocations: 225.9 kB / 461.7 MB, free: 28.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.273, allocations: 30.89 kB / 461.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.273, allocations: 145 kB / 461.8 MB, free: 28.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.2731, allocations: 48.5 kB / 461.9 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.2731, allocations: 35.25 kB / 461.9 MB, free: 28.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.245e-05/0.2732, allocations: 338.2 kB / 462.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.2733, allocations: 39.11 kB / 462.3 MB, free: 28.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.2734, allocations: 62.47 kB / 462.4 MB, free: 28.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/0.2742, allocations: 224.9 kB / 462.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2742, allocations: 4 kB / 462.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000304/0.2745, allocations: 161.2 kB / 462.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2745, allocations: 6.344 kB / 462.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2745, allocations: 3.328 kB / 462.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2746, allocations: 2.531 kB / 462.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.2748, allocations: 34.42 kB / 462.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.2748, allocations: 2.094 kB / 462.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.2749, allocations: 15.11 kB / 462.8 MB, free: 28.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2749, allocations: 12.22 kB / 462.8 MB, free: 28.07 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.0001516/0.2751, allocations: 139.9 kB / 462.9 MB, free: 27.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.2751, allocations: 21.97 kB / 463 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.2752, allocations: 25.8 kB / 463 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2752, allocations: 1.344 kB / 463 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2752, allocations: 5.125 kB / 463 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2752, allocations: 3.422 kB / 463 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.2754, allocations: 257.2 kB / 463.3 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2754, allocations: 5.469 kB / 463.3 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.2756, allocations: 34.89 kB / 463.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2756, allocations: 1.219 kB / 463.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2757, allocations: 4 kB / 463.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2757, allocations: 1.25 kB / 463.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2757, allocations: 0 / 463.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000434/0.2761, allocations: 308.9 kB / 463.6 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.126e-05/0.2762, allocations: 94.17 kB / 463.7 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.2762, allocations: 5.344 kB / 463.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.2763, allocations: 10.06 kB / 463.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/0.2764, allocations: 7.25 kB / 463.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.2764, allocations: 7.938 kB / 463.7 MB, free: 27.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.2765, allocations: 169.9 kB / 463.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2765, allocations: 0 / 463.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.2768, allocations: 43.75 kB / 463.9 MB, free: 27.23 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 7.473e-05/0.2769, allocations: 99.72 kB / 464 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.2772, allocations: 113.2 kB / 464.1 MB, free: 27.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2772, allocations: 0 / 464.1 MB, free: 27.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.2773, allocations: 64.75 kB / 464.2 MB, free: 27.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.2777, allocations: 48.36 kB / 464.2 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009058/0.2786, allocations: 0.6444 MB / 464.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001356/0.2787, allocations: 0.7367 MB / 465.6 MB, free: 25.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.2788, allocations: 20.03 kB / 465.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2788, allocations: 1.25 kB / 465.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of Templates: time 0.003866/0.2827, allocations: 2.6 MB / 468.3 MB, free: 25.53 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)