Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001214/0.001214, allocations: 195.3 kB / 16.26 MB, free: 6.621 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2105/0.2105, allocations: 22.36 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2382, allocations: 54.95 MB / 435.2 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003078/0.2413, allocations: 2.864 MB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007088/0.2421, allocations: 413 kB / 438.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2422, allocations: 8.156 kB / 438.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.92e-05/0.2423, allocations: 27.72 kB / 438.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.2426, allocations: 95.11 kB / 438.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.2428, allocations: 68.19 kB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.243, allocations: 357 kB / 439.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2433, allocations: 162.5 kB / 439.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.2434, allocations: 150.7 kB / 439.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2435, allocations: 127.7 kB / 439.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.2436, allocations: 19.47 kB / 439.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.422e-05/0.2437, allocations: 53.44 kB / 439.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/0.2437, allocations: 47.47 kB / 439.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.985e-05/0.2438, allocations: 141.2 kB / 439.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.244, allocations: 302.7 kB / 440 MB, free: 36.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2441, allocations: 0 / 440 MB, free: 36.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2441, allocations: 0 / 440 MB, free: 36.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2441, allocations: 0 / 440 MB, free: 36.48 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0006424/0.2447, allocations: 0.5658 MB / 440.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2448, allocations: 8.344 kB / 440.6 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.397e-05/0.2448, allocations: 31 kB / 440.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.2451, allocations: 295.1 kB / 440.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.2451, allocations: 16.69 kB / 440.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.182e-05/0.2451, allocations: 17.31 kB / 441 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.2454, allocations: 208.3 kB / 441.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2454, allocations: 192 / 441.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.2454, allocations: 18.75 kB / 441.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2455, allocations: 3.812 kB / 441.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.2457, allocations: 128.6 kB / 441.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007794/0.2465, allocations: 0.8344 MB / 442.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.2467, allocations: 95.02 kB / 442.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.405e-05/0.2468, allocations: 45.34 kB / 442.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.2468, allocations: 3.344 kB / 442.3 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.252e-05/0.2468, allocations: 34.56 kB / 442.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.2468, allocations: 0 / 442.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002735/0.2471, allocations: 150.7 kB / 442.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/0.2471, allocations: 51.41 kB / 442.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.2473, allocations: 288.7 kB / 442.8 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.2474, allocations: 29.7 kB / 442.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.027e-05/0.2474, allocations: 174.2 kB / 443 MB, free: 34.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.2475, allocations: 37.28 kB / 443 MB, free: 34.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.2475, allocations: 36.47 kB / 443.1 MB, free: 34.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.011e-05/0.2476, allocations: 335.2 kB / 443.4 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.566e-05/0.2476, allocations: 37.69 kB / 443.4 MB, free: 33.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.919e-05/0.2477, allocations: 64.73 kB / 443.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2488, allocations: 254.3 kB / 443.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2488, allocations: 0 / 443.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002172/0.2491, allocations: 170.3 kB / 443.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2491, allocations: 5.781 kB / 443.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.2491, allocations: 0 / 443.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2491, allocations: 7.875 kB / 443.9 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.2493, allocations: 38.23 kB / 444 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.2493, allocations: 4.062 kB / 444 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2494, allocations: 17.78 kB / 444 MB, free: 33.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.2495, allocations: 3 kB / 444 MB, free: 33.58 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.0001917/0.2497, allocations: 137.3 kB / 444.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.2497, allocations: 27.28 kB / 444.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.25, allocations: 157.9 kB / 444.3 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.25, allocations: 7.188 kB / 444.3 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.25, allocations: 3.938 kB / 444.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.25, allocations: 0 / 444.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.2502, allocations: 281.8 kB / 444.6 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2502, allocations: 6.906 kB / 444.6 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.2504, allocations: 31.38 kB / 444.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2504, allocations: 3.031 kB / 444.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.2504, allocations: 0 / 444.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2505, allocations: 3.938 kB / 444.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2505, allocations: 6.938 kB / 444.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.2507, allocations: 267.8 kB / 444.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.2508, allocations: 105.4 kB / 445 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2508, allocations: 6.781 kB / 445 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2509, allocations: 7.938 kB / 445 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.816e-05/0.251, allocations: 9.625 kB / 445 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.251, allocations: 2.969 kB / 445 MB, free: 32.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001409/0.2511, allocations: 213.8 kB / 445.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2512, allocations: 3.938 kB / 445.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.2514, allocations: 56.44 kB / 445.3 MB, free: 32.64 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 (13): * Single equations (assignments): 13 * 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.0001076/0.2515, allocations: 100.7 kB / 445.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.2518, allocations: 108.1 kB / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2518, allocations: 0 / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.782e-05/0.2518, allocations: 50.05 kB / 445.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.2522, allocations: 65.34 kB / 445.6 MB, free: 32.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008388/0.2531, allocations: 0.6692 MB / 446.3 MB, free: 32.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2532, allocations: 0.7482 MB / 447 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.2533, allocations: 44.83 kB / 447.1 MB, free: 31.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.512e-05/0.2534, allocations: 21.94 kB / 447.1 MB, free: 31.29 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2534, allocations: 0 / 447.1 MB, free: 31.29 MB / 350.1 MB Notification: Performance of Templates: time 0.005212/0.2586, allocations: 2.745 MB / 449.8 MB, free: 31.11 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)