Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatPump_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001",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.001009/0.001009, allocations: 91.84 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.008077/0.008077, allocations: 169 kB / 16.26 MB, free: 6.68 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.279/1.279, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1821/0.1821, allocations: 22.35 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003417, allocations: 8 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2424, allocations: 55.97 MB / 438.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.001269/0.2437, allocations: 1.397 MB / 440.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001492/0.2439, allocations: 67.25 kB / 440.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.707e-05/0.2439, allocations: 3.062 kB / 440.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.127e-05/0.2439, allocations: 3.422 kB / 440.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.2441, allocations: 18.33 kB / 440.2 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.099e-05/0.2441, allocations: 14.59 kB / 440.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.784e-05/0.2442, allocations: 77.02 kB / 440.3 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.2443, allocations: 36.72 kB / 440.3 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.808e-05/0.2443, allocations: 28.22 kB / 440.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.2444, allocations: 27.7 kB / 440.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.2444, allocations: 3.5 kB / 440.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.383e-05/0.2445, allocations: 2.906 kB / 440.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.2445, allocations: 9.875 kB / 440.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.2445, allocations: 61.94 kB / 440.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.672e-05/0.2446, allocations: 75.14 kB / 440.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2446, allocations: 6.438 kB / 440.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2446, allocations: 0 / 440.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.2446, allocations: 0 / 440.5 MB, free: 38.13 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000273/0.2449, allocations: 358.8 kB / 440.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.2449, allocations: 12.84 kB / 440.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.245, allocations: 41.08 kB / 440.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.367e-05/0.245, allocations: 7.5 kB / 440.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.356e-05/0.2451, allocations: 171 kB / 441.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.2451, allocations: 14.03 kB / 441.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.2451, allocations: 5.562 kB / 441.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.2453, allocations: 98.89 kB / 441.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.2453, allocations: 0 / 441.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.2453, allocations: 0 / 441.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2453, allocations: 2.656 kB / 441.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.637e-05/0.2454, allocations: 53.3 kB / 441.2 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000421/0.2458, allocations: 461.1 kB / 441.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.775e-05/0.2459, allocations: 61.36 kB / 441.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.246, allocations: 24.2 kB / 441.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.246, allocations: 3.375 kB / 441.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.311e-05/0.246, allocations: 30.56 kB / 441.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.246, allocations: 4 kB / 441.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001544/0.2462, allocations: 68.17 kB / 441.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.191e-05/0.2462, allocations: 59.28 kB / 441.9 MB, free: 36.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.657e-05/0.2462, allocations: 115.2 kB / 442.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-06/0.2463, allocations: 25.7 kB / 442.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.2463, allocations: 104.7 kB / 442.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.2463, allocations: 22.62 kB / 442.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.2463, allocations: 13.72 kB / 442.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.707e-05/0.2464, allocations: 321.6 kB / 442.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.598e-05/0.2464, allocations: 14.92 kB / 442.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.267e-05/0.2464, allocations: 36.91 kB / 442.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.254e-05/0.2465, allocations: 54.3 kB / 442.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2465, allocations: 0 / 442.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000102/0.2466, allocations: 89.12 kB / 442.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.2466, allocations: 5.719 kB / 442.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2467, allocations: 2.906 kB / 442.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.2467, allocations: 0 / 442.7 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.575e-05/0.2468, allocations: 25.02 kB / 442.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.2468, allocations: 2.812 kB / 442.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.884e-05/0.2468, allocations: 3.938 kB / 442.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.2468, allocations: 5.625 kB / 442.8 MB, free: 36.02 MB / 350.1 MB 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 (9): * Single equations (assignments): 9 * 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 4.744e-05/0.2469, allocations: 124.3 kB / 442.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.2469, allocations: 11.03 kB / 442.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.247, allocations: 78.62 kB / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2471, allocations: 3.938 kB / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.2471, allocations: 0 / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2471, allocations: 5.781 kB / 443 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.2472, allocations: 184.7 kB / 443.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2472, allocations: 0 / 443.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.2473, allocations: 17.23 kB / 443.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2473, allocations: 7.344 kB / 443.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.2473, allocations: 4 kB / 443.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2473, allocations: 3.938 kB / 443.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2473, allocations: 4 kB / 443.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.37e-05/0.2474, allocations: 157.9 kB / 443.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.2474, allocations: 84.44 kB / 443.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.2475, allocations: 0 / 443.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.058e-05/0.2475, allocations: 11 kB / 443.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.193e-05/0.2475, allocations: 2.281 kB / 443.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.2475, allocations: 4 kB / 443.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.308e-05/0.2476, allocations: 88.48 kB / 443.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2476, allocations: 0 / 443.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000234/0.2478, allocations: 18.12 kB / 443.6 MB, free: 35.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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.0002298/0.2481, allocations: 0.6935 MB / 444.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.326e-05/0.2482, allocations: 50.23 kB / 444.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.2482, allocations: 0 / 444.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.624e-05/0.2482, allocations: 18.34 kB / 444.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.2485, allocations: 16.27 kB / 444.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.2489, allocations: 246.3 kB / 444.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.142e-05/0.249, allocations: 0.6957 MB / 445.3 MB, free: 33.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.897e-05/0.249, allocations: 6.688 kB / 445.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.2491, allocations: 21.14 kB / 445.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2491, allocations: 4 kB / 445.3 MB, free: 33.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01082/0.2599, allocations: 1.292 MB / 446.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001195/0.2601, allocations: 199.7 kB / 446.8 MB, free: 33.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/1.938, allocations: 0 / 446.8 MB, free: 33.22 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)