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.0008047/0.0008046, allocations: 97.95 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.004984/0.004984, allocations: 170.4 kB / 16.27 MB, free: 6.648 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.476/1.476, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.211/0.2109, allocations: 22.35 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003216, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3083, allocations: 55.98 MB / 438.6 MB, free: 39.56 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.0273/0.3356, allocations: 21.73 MB / 460.3 MB, free: 31.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007998/0.3364, allocations: 243 kB / 460.5 MB, free: 31.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.3366, allocations: 17.09 kB / 460.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.576e-05/0.3367, allocations: 23.91 kB / 460.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.3369, allocations: 85.41 kB / 460.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001488/0.3371, allocations: 31.88 kB / 460.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002717/0.3373, allocations: 277.8 kB / 461 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.3376, allocations: 125.1 kB / 461.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.3378, allocations: 113.6 kB / 461.2 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3379, allocations: 94.84 kB / 461.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.338, allocations: 8.656 kB / 461.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.821e-05/0.338, allocations: 8.781 kB / 461.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.674e-05/0.3381, allocations: 30.64 kB / 461.3 MB, free: 31.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3382, allocations: 131.1 kB / 461.5 MB, free: 31.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.3384, allocations: 218.5 kB / 461.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3384, allocations: 0 / 461.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3384, allocations: 1.156 kB / 461.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.3384, allocations: 0 / 461.7 MB, free: 31.02 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.0005907/0.339, allocations: 488 kB / 462.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3391, allocations: 9.656 kB / 462.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.949e-05/0.3391, allocations: 32.09 kB / 462.2 MB, free: 30.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002632/0.3394, allocations: 262.8 kB / 462.5 MB, free: 30.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.3394, allocations: 11.92 kB / 462.5 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.3395, allocations: 15 kB / 462.5 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.3398, allocations: 197.2 kB / 462.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.3398, allocations: 1.5 kB / 462.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3399, allocations: 16.56 kB / 462.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.3399, allocations: 8.578 kB / 462.7 MB, free: 30.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.3402, allocations: 114.8 kB / 462.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008286/0.341, allocations: 0.8514 MB / 463.7 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.3412, allocations: 76.89 kB / 463.7 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.3414, allocations: 67.27 kB / 463.8 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.3414, allocations: 2.594 kB / 463.8 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.3414, allocations: 35.97 kB / 463.8 MB, free: 29.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.3414, allocations: 0 / 463.8 MB, free: 29.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005003/0.3419, allocations: 179.4 kB / 464 MB, free: 29.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.342, allocations: 52.91 kB / 464.1 MB, free: 29.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.3422, allocations: 229.8 kB / 464.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3422, allocations: 31.23 kB / 464.3 MB, free: 28.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.467e-05/0.3423, allocations: 141.1 kB / 464.5 MB, free: 28.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.3424, allocations: 52.94 kB / 464.5 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.3424, allocations: 20.31 kB / 464.5 MB, free: 28.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.703e-05/0.3425, allocations: 334.1 kB / 464.9 MB, free: 28.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3426, allocations: 39.39 kB / 464.9 MB, free: 28.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.3428, allocations: 73.34 kB / 465 MB, free: 28.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/0.3436, allocations: 222.6 kB / 465.2 MB, free: 28.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3436, allocations: 0 / 465.2 MB, free: 28.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000345/0.3439, allocations: 159.6 kB / 465.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.344, allocations: 5.875 kB / 465.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.344, allocations: 7.438 kB / 465.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.344, allocations: 2.375 kB / 465.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.3442, allocations: 38.52 kB / 465.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.3442, allocations: 0.9375 kB / 465.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3443, allocations: 17.34 kB / 465.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.3444, allocations: 7.719 kB / 465.4 MB, free: 28.19 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.0001851/0.3446, allocations: 139.8 kB / 465.6 MB, free: 28.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.527e-05/0.3446, allocations: 21.03 kB / 465.6 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.725e-05/0.3447, allocations: 27.08 kB / 465.6 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3447, allocations: 1.5 kB / 465.6 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.3447, allocations: 0 / 465.6 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3447, allocations: 4.547 kB / 465.6 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/0.345, allocations: 272.3 kB / 465.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.345, allocations: 0 / 465.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.3452, allocations: 31.17 kB / 465.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3452, allocations: 5.094 kB / 465.9 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3452, allocations: 5.344 kB / 465.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.3452, allocations: 0 / 465.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3453, allocations: 1.031 kB / 465.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.3457, allocations: 301.3 kB / 466.2 MB, free: 27.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.7e-05/0.3458, allocations: 94.52 kB / 466.3 MB, free: 27.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.3458, allocations: 5.25 kB / 466.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3459, allocations: 13.7 kB / 466.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.346, allocations: 8.125 kB / 466.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.346, allocations: 6.812 kB / 466.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.3461, allocations: 166.3 kB / 466.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3462, allocations: 0 / 466.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.3464, allocations: 48.75 kB / 466.5 MB, free: 27.34 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 0.0001114/0.3465, allocations: 99.09 kB / 466.6 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003206/0.3469, allocations: 108.7 kB / 466.7 MB, free: 27.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3469, allocations: 0.9375 kB / 466.8 MB, free: 27.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.347, allocations: 63.73 kB / 466.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.3475, allocations: 54.56 kB / 466.9 MB, free: 27.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.3485, allocations: 0.6768 MB / 467.5 MB, free: 26.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.3487, allocations: 0.7452 MB / 468.3 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.3489, allocations: 30.14 kB / 468.3 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.3489, allocations: 19.03 kB / 468.3 MB, free: 26.01 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3489, allocations: 0 / 468.3 MB, free: 26.01 MB / 350.1 MB Notification: Performance of Templates: time 0.005318/0.3542, allocations: 2.163 MB / 470.5 MB, free: 25.37 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)