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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, 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.007583/0.007583, allocations: 169 kB / 16.26 MB, free: 6.652 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: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1974/0.1974, allocations: 22.35 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002993, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2342, allocations: 55.98 MB / 438.7 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00189/0.2362, allocations: 2.498 MB / 441.2 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005612/0.2367, allocations: 397.5 kB / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2369, allocations: 11.66 kB / 441.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.786e-05/0.2369, allocations: 31.08 kB / 441.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.2372, allocations: 106.1 kB / 441.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.2373, allocations: 63.91 kB / 441.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.2375, allocations: 343 kB / 442.1 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001967/0.2377, allocations: 152.4 kB / 442.3 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2379, allocations: 128 kB / 442.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.238, allocations: 124.5 kB / 442.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.2381, allocations: 11.81 kB / 442.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.918e-05/0.2382, allocations: 38.66 kB / 442.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.2382, allocations: 42.61 kB / 442.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.2383, allocations: 157 kB / 442.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.2385, allocations: 283.2 kB / 443 MB, free: 36.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2385, allocations: 2.938 kB / 443 MB, free: 36.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2385, allocations: 0 / 443 MB, free: 36.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.2385, allocations: 0 / 443 MB, free: 36.58 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.000551/0.2391, allocations: 0.5251 MB / 443.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2391, allocations: 12.72 kB / 443.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.2392, allocations: 55.73 kB / 443.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.2392, allocations: 34.5 kB / 443.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.2395, allocations: 292.2 kB / 443.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.2395, allocations: 13.16 kB / 444 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.2395, allocations: 20.58 kB / 444 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.2398, allocations: 210.5 kB / 444.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2398, allocations: 10.72 kB / 444.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.2398, allocations: 4 kB / 444.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2399, allocations: 13.72 kB / 444.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.2401, allocations: 126.5 kB / 444.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007307/0.2408, allocations: 0.8274 MB / 445.2 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.241, allocations: 95.17 kB / 445.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.516e-05/0.2411, allocations: 39.45 kB / 445.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.2411, allocations: 6.594 kB / 445.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.083e-05/0.2411, allocations: 34.56 kB / 445.3 MB, free: 34.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.2411, allocations: 4 kB / 445.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002657/0.2414, allocations: 146.8 kB / 445.5 MB, free: 34.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/0.2414, allocations: 55.34 kB / 445.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.2417, allocations: 291 kB / 445.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.2417, allocations: 25.7 kB / 445.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.2417, allocations: 172.8 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.2418, allocations: 34.78 kB / 446 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.2418, allocations: 27.05 kB / 446.1 MB, free: 34.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.2418, allocations: 334.6 kB / 446.4 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.773e-05/0.2419, allocations: 39.27 kB / 446.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.008e-05/0.242, allocations: 59.03 kB / 446.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.2431, allocations: 254.9 kB / 446.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2431, allocations: 6.875 kB / 446.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002249/0.2434, allocations: 167.4 kB / 446.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.2434, allocations: 3.031 kB / 446.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2434, allocations: 2.906 kB / 446.9 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.2434, allocations: 3.938 kB / 446.9 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.2436, allocations: 41.62 kB / 447 MB, free: 33.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.2436, allocations: 3.984 kB / 447 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.2438, allocations: 21.62 kB / 447 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.2438, allocations: 3 kB / 447 MB, free: 33.65 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.0001408/0.2439, allocations: 138.9 kB / 447.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.244, allocations: 23.44 kB / 447.1 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.2442, allocations: 173.4 kB / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2443, allocations: 0 / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2443, allocations: 0 / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2443, allocations: 2.812 kB / 447.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.2445, allocations: 282.3 kB / 447.6 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2445, allocations: 0 / 447.6 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.2447, allocations: 26.89 kB / 447.6 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2447, allocations: 4 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2447, allocations: 3.938 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.2447, allocations: 3.094 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2447, allocations: 3.938 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.245, allocations: 280.9 kB / 447.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.245, allocations: 100.8 kB / 448 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.2451, allocations: 7.938 kB / 448 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.2452, allocations: 2.781 kB / 448 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.2453, allocations: 14.28 kB / 448 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2453, allocations: 6.844 kB / 448 MB, free: 32.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.2454, allocations: 209 kB / 448.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2454, allocations: 0 / 448.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.2457, allocations: 58.34 kB / 448.3 MB, free: 32.71 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.0003888/0.2461, allocations: 0.8147 MB / 449.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.2463, allocations: 104.8 kB / 449.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2463, allocations: 3.938 kB / 449.2 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.722e-05/0.2464, allocations: 47.19 kB / 449.3 MB, free: 31.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.2468, allocations: 60.14 kB / 449.3 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.249, allocations: 2.644 MB / 452 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.2491, allocations: 0.7574 MB / 452.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.2493, allocations: 37.25 kB / 452.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-05/0.2494, allocations: 89.27 kB / 452.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2494, allocations: 0 / 452.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8682/1.118, allocations: 5.033 MB / 457.9 MB, free: 28.98 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.118, allocations: 212.3 kB / 458.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.367/3.485, allocations: 1.062 kB / 458.1 MB, free: 28.72 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1)