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.0007347/0.0007347, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007612/0.0007612, allocations: 168.7 kB / 15.95 MB, free: 204 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.229/1.229, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1931/0.1931, allocations: 22.35 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002645/0.0002645, allocations: 8 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2269, allocations: 55.97 MB / 437.9 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.001768/0.2287, allocations: 2.398 MB / 440.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005066/0.2292, allocations: 386.8 kB / 440.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2293, allocations: 11.19 kB / 440.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.938e-05/0.2294, allocations: 36 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.2296, allocations: 138 kB / 440.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.2298, allocations: 48.94 kB / 440.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002003/0.23, allocations: 335.9 kB / 441.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.2302, allocations: 141.7 kB / 441.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2303, allocations: 129.4 kB / 441.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.2304, allocations: 111.8 kB / 441.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.2305, allocations: 14.84 kB / 441.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.772e-05/0.2306, allocations: 41.34 kB / 441.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.2306, allocations: 43.84 kB / 441.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.2307, allocations: 73.89 kB / 441.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.2308, allocations: 218.7 kB / 442 MB, free: 36.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2308, allocations: 0 / 442 MB, free: 36.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2308, allocations: 0 / 442 MB, free: 36.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.2308, allocations: 0 / 442 MB, free: 36.71 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.0005254/0.2314, allocations: 0.5288 MB / 442.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.2314, allocations: 9.188 kB / 442.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.2315, allocations: 30.16 kB / 442.6 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.2317, allocations: 280.8 kB / 442.8 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.2317, allocations: 13 kB / 442.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.2317, allocations: 16.94 kB / 442.9 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.232, allocations: 212.4 kB / 443.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.232, allocations: 3.953 kB / 443.1 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.232, allocations: 10.33 kB / 443.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2321, allocations: 5.875 kB / 443.1 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.2323, allocations: 127.9 kB / 443.2 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007029/0.233, allocations: 0.8233 MB / 444.1 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.2332, allocations: 105.6 kB / 444.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.275e-05/0.2332, allocations: 38.92 kB / 444.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2333, allocations: 2.812 kB / 444.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.073e-05/0.2333, allocations: 34.56 kB / 444.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.2333, allocations: 0 / 444.2 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002565/0.2335, allocations: 145.1 kB / 444.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.634e-05/0.2336, allocations: 55.12 kB / 444.4 MB, free: 34.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.2338, allocations: 291.2 kB / 444.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.2338, allocations: 32.55 kB / 444.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.697e-05/0.2339, allocations: 170.8 kB / 444.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.2339, allocations: 36.92 kB / 444.9 MB, free: 34.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-06/0.2339, allocations: 4 kB / 444.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.244e-05/0.234, allocations: 342.8 kB / 445.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.49e-05/0.234, allocations: 36.94 kB / 445.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.549e-05/0.2341, allocations: 63.06 kB / 445.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.872e-05/0.2342, allocations: 40.59 kB / 445.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2342, allocations: 0 / 445.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002086/0.2344, allocations: 167.1 kB / 445.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.2344, allocations: 12.55 kB / 445.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2344, allocations: 0 / 445.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.2344, allocations: 0 / 445.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.2346, allocations: 49.17 kB / 445.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.2346, allocations: 0 / 445.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2348, allocations: 21.72 kB / 445.7 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.2348, allocations: 6.938 kB / 445.7 MB, free: 33.94 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.0001436/0.2349, allocations: 143.7 kB / 445.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.235, allocations: 22.81 kB / 445.8 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002462/0.2352, allocations: 162.1 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2352, allocations: 2.531 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2352, allocations: 0 / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.2352, allocations: 0 / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.2354, allocations: 280.7 kB / 446.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2355, allocations: 0 / 446.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.2356, allocations: 31.44 kB / 446.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2356, allocations: 3.938 kB / 446.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.2357, allocations: 4 kB / 446.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2357, allocations: 3.125 kB / 446.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2357, allocations: 0 / 446.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/0.2359, allocations: 284.2 kB / 446.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.236, allocations: 102.7 kB / 446.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.236, allocations: 6.312 kB / 446.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.2361, allocations: 4 kB / 446.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.104e-05/0.2362, allocations: 6.188 kB / 446.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.2362, allocations: 2.969 kB / 446.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.2363, allocations: 207.3 kB / 446.9 MB, free: 33.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2363, allocations: 0 / 446.9 MB, free: 33.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.2366, allocations: 58.06 kB / 447 MB, free: 33.02 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 (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 8.504e-05/0.2367, allocations: 108.4 kB / 447.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.2369, allocations: 107.8 kB / 447.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2369, allocations: 0 / 447.2 MB, free: 32.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.555e-05/0.237, allocations: 49.66 kB / 447.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.2373, allocations: 61.7 kB / 447.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007644/0.2381, allocations: 0.6944 MB / 448 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.2382, allocations: 0.7603 MB / 448.7 MB, free: 31.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000136/0.2384, allocations: 37.34 kB / 448.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.212e-05/0.2384, allocations: 21.81 kB / 448.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2384, allocations: 2.625 kB / 448.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of Templates: time 0.004524/0.2429, allocations: 2.524 MB / 451.3 MB, free: 31.49 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)