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.001549/0.001549, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002057/0.002057, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.281/1.281, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.204/0.204, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2487, allocations: 54.94 MB / 435.1 MB, free: 39.45 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.02835/0.2771, allocations: 22.09 MB / 457.1 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006015/0.2778, allocations: 250.3 kB / 457.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.2779, allocations: 12.94 kB / 457.4 MB, free: 31.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.215e-05/0.278, allocations: 23.86 kB / 457.4 MB, free: 31.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2782, allocations: 81.62 kB / 457.5 MB, free: 31.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001135/0.2783, allocations: 39.92 kB / 457.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.2785, allocations: 275.9 kB / 457.8 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.2787, allocations: 132.7 kB / 457.9 MB, free: 31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.2788, allocations: 119.7 kB / 458.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.279, allocations: 97.86 kB / 458.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.279, allocations: 15 kB / 458.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.724e-05/0.2791, allocations: 11.91 kB / 458.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.2791, allocations: 35.38 kB / 458.2 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.119e-05/0.2792, allocations: 110.6 kB / 458.3 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.2794, allocations: 219.1 kB / 458.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2794, allocations: 4.609 kB / 458.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2794, allocations: 0 / 458.5 MB, free: 30.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2794, allocations: 0 / 458.5 MB, free: 30.72 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.0006352/0.2801, allocations: 0.5101 MB / 459.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2801, allocations: 9.125 kB / 459.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.82e-05/0.2802, allocations: 33.06 kB / 459.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.2804, allocations: 269.7 kB / 459.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.2805, allocations: 14.42 kB / 459.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.2805, allocations: 15.16 kB / 459.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.2808, allocations: 197.9 kB / 459.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2808, allocations: 1.281 kB / 459.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.2809, allocations: 9.25 kB / 459.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2809, allocations: 4.531 kB / 459.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002948/0.2812, allocations: 114.9 kB / 459.7 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007651/0.2819, allocations: 0.8506 MB / 460.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.2821, allocations: 81.11 kB / 460.6 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.2823, allocations: 58.91 kB / 460.7 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.2823, allocations: 6.578 kB / 460.7 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.2823, allocations: 39.11 kB / 460.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.2823, allocations: 0 / 460.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004456/0.2828, allocations: 183.1 kB / 460.9 MB, free: 28.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.2828, allocations: 52.81 kB / 461 MB, free: 28.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.283, allocations: 229.2 kB / 461.2 MB, free: 28.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.283, allocations: 26.86 kB / 461.2 MB, free: 28.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.391e-05/0.2831, allocations: 153.1 kB / 461.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.2831, allocations: 48.3 kB / 461.4 MB, free: 28.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/0.2832, allocations: 34.36 kB / 461.4 MB, free: 28.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.025e-05/0.2832, allocations: 334.2 kB / 461.8 MB, free: 28.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.2833, allocations: 36.28 kB / 461.8 MB, free: 28.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.2835, allocations: 66.47 kB / 461.9 MB, free: 28.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007605/0.2842, allocations: 220.8 kB / 462.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2842, allocations: 1.156 kB / 462.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000313/0.2846, allocations: 167.7 kB / 462.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2846, allocations: 5.531 kB / 462.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2846, allocations: 1.094 kB / 462.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2846, allocations: 1.031 kB / 462.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.2848, allocations: 42.66 kB / 462.3 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2848, allocations: 1.281 kB / 462.3 MB, free: 27.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.285, allocations: 13.25 kB / 462.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.285, allocations: 3.719 kB / 462.3 MB, free: 27.86 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.0001548/0.2851, allocations: 139.7 kB / 462.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/0.2852, allocations: 26.25 kB / 462.5 MB, free: 27.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.2852, allocations: 26.27 kB / 462.5 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2852, allocations: 1.406 kB / 462.5 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2853, allocations: 3.938 kB / 462.5 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2853, allocations: 0 / 462.5 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.2855, allocations: 269.5 kB / 462.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2855, allocations: 0 / 462.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.2857, allocations: 31.89 kB / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2857, allocations: 5.5 kB / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2857, allocations: 1.656 kB / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2858, allocations: 4 kB / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2858, allocations: 0 / 462.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004407/0.2862, allocations: 297.7 kB / 463.1 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.638e-05/0.2863, allocations: 101.5 kB / 463.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.2863, allocations: 1.188 kB / 463.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.2864, allocations: 7.531 kB / 463.2 MB, free: 27.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.2865, allocations: 15.34 kB / 463.2 MB, free: 27.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.2865, allocations: 2.281 kB / 463.2 MB, free: 27.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.2866, allocations: 167.7 kB / 463.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2866, allocations: 0 / 463.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002801/0.2869, allocations: 45.72 kB / 463.4 MB, free: 27.01 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 8.645e-05/0.287, allocations: 101.5 kB / 463.5 MB, free: 26.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003162/0.2873, allocations: 117.4 kB / 463.7 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2873, allocations: 0 / 463.7 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.2875, allocations: 60.47 kB / 463.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.2879, allocations: 47.94 kB / 463.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009728/0.2888, allocations: 0.6284 MB / 464.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.289, allocations: 0.7337 MB / 465.1 MB, free: 25.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.2892, allocations: 28.89 kB / 465.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.2892, allocations: 19.66 kB / 465.2 MB, free: 25.7 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2892, allocations: 4 kB / 465.2 MB, free: 25.7 MB / 350.1 MB Notification: Performance of Templates: time 0.00514/0.2944, allocations: 2.179 MB / 467.4 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)