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.0009472/0.0009472, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001125/0.001125, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2539/0.2539, allocations: 22.33 MB / 313.3 MB, free: 13.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 12 kB / 381.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3363, allocations: 55.97 MB / 437.8 MB, free: 39.36 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.002327/0.3387, allocations: 2.018 MB / 439.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004166/0.3391, allocations: 277.7 kB / 440.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3392, allocations: 12.22 kB / 440.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.519e-05/0.3393, allocations: 28.23 kB / 440.1 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.3395, allocations: 112.4 kB / 440.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001189/0.3396, allocations: 28.41 kB / 440.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001827/0.3398, allocations: 206 kB / 440.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.34, allocations: 121.6 kB / 440.6 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.3402, allocations: 133.9 kB / 440.7 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.3404, allocations: 89.47 kB / 440.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.3404, allocations: 12.78 kB / 440.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.105e-05/0.3404, allocations: 8.719 kB / 440.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.043e-05/0.3405, allocations: 31.7 kB / 440.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.696e-05/0.3405, allocations: 66.02 kB / 440.9 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.3407, allocations: 162.9 kB / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.3407, allocations: 0 / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3407, allocations: 2.938 kB / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.3407, allocations: 0 / 441.1 MB, free: 37.2 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.0006026/0.3413, allocations: 486.2 kB / 441.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3414, allocations: 7.969 kB / 441.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.3414, allocations: 32.17 kB / 441.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.3417, allocations: 263.5 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3417, allocations: 12.3 kB / 441.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.3418, allocations: 14.66 kB / 441.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.3421, allocations: 200.4 kB / 442.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3421, allocations: 3.953 kB / 442.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.3421, allocations: 6.688 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.3421, allocations: 2.969 kB / 442.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.3424, allocations: 114.7 kB / 442.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007662/0.3432, allocations: 0.8452 MB / 443.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.3434, allocations: 87.17 kB / 443.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.3434, allocations: 0 / 443.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.3434, allocations: 37.56 kB / 443.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.093e-06/0.3434, allocations: 0 / 443.2 MB, free: 35.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004631/0.3439, allocations: 175.7 kB / 443.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.3439, allocations: 54.12 kB / 443.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.3441, allocations: 227.3 kB / 443.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.3441, allocations: 25.7 kB / 443.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.236e-05/0.3442, allocations: 150.2 kB / 443.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.3443, allocations: 52.56 kB / 443.9 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-06/0.3443, allocations: 4 kB / 443.9 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.867e-05/0.3443, allocations: 330.1 kB / 444.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.3445, allocations: 38.09 kB / 444.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.3446, allocations: 63.27 kB / 444.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.3447, allocations: 52.34 kB / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3447, allocations: 0 / 444.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002934/0.345, allocations: 167.3 kB / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3451, allocations: 5.719 kB / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3451, allocations: 0 / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.3451, allocations: 2.469 kB / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.3453, allocations: 39.5 kB / 444.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.3453, allocations: 4.062 kB / 444.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3454, allocations: 18.34 kB / 444.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.3455, allocations: 2.656 kB / 444.6 MB, free: 34.5 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002208/0.3457, allocations: 137.2 kB / 444.7 MB, free: 34.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.732e-05/0.3457, allocations: 19.73 kB / 444.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.91e-05/0.3458, allocations: 31.06 kB / 444.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3458, allocations: 3.969 kB / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3458, allocations: 0 / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.3458, allocations: 0 / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/0.3461, allocations: 261.8 kB / 445 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3461, allocations: 10.84 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.3463, allocations: 29.59 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3463, allocations: 2.656 kB / 445 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3463, allocations: 3.953 kB / 445.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3463, allocations: 7.281 kB / 445.1 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3463, allocations: 6.812 kB / 445.1 MB, free: 34.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004316/0.3467, allocations: 286.2 kB / 445.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.3468, allocations: 101.3 kB / 445.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.3468, allocations: 6.688 kB / 445.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.347, allocations: 7.859 kB / 445.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.049e-05/0.347, allocations: 14.69 kB / 445.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/0.347, allocations: 11.12 kB / 445.5 MB, free: 33.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.3472, allocations: 164.3 kB / 445.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3472, allocations: 0 / 445.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.3474, allocations: 42.06 kB / 445.7 MB, free: 33.65 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.564e-05/0.3475, allocations: 98.94 kB / 445.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002915/0.3478, allocations: 118.2 kB / 445.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3478, allocations: 4.125 kB / 445.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.348, allocations: 58.59 kB / 446 MB, free: 33.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.3483, allocations: 48.42 kB / 446 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000911/0.3492, allocations: 0.6561 MB / 446.7 MB, free: 33.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.3494, allocations: 0.7394 MB / 447.4 MB, free: 32.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3495, allocations: 35.42 kB / 447.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.191e-05/0.3496, allocations: 17.09 kB / 447.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3496, allocations: 0 / 447.5 MB, free: 32.35 MB / 350.1 MB Notification: Performance of Templates: time 0.004796/0.3544, allocations: 2.083 MB / 449.5 MB, free: 32.2 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: