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.0008968/0.0008968, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001065/0.001065, allocations: 172.7 kB / 15.95 MB, free: 208 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.377/1.377, allocations: 223.3 MB / 240 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.2344/0.2344, allocations: 22.35 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004541/0.0004543, allocations: 8 kB / 382 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3175, allocations: 55.98 MB / 438 MB, free: 39.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.001676/0.3193, allocations: 1.372 MB / 439.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002127/0.3195, allocations: 65.91 kB / 439.5 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.771e-05/0.3195, allocations: 3 kB / 439.5 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.326e-05/0.3196, allocations: 3.188 kB / 439.5 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.3197, allocations: 18.09 kB / 439.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.13e-05/0.3198, allocations: 14.38 kB / 439.5 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3199, allocations: 77.11 kB / 439.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.32, allocations: 22.2 kB / 439.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.766e-05/0.3201, allocations: 27.38 kB / 439.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.232e-05/0.3202, allocations: 31.05 kB / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.3202, allocations: 5.938 kB / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.409e-05/0.3202, allocations: 2.719 kB / 439.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.3202, allocations: 10.75 kB / 439.7 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.192e-05/0.3203, allocations: 35.48 kB / 439.7 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.711e-05/0.3204, allocations: 61.17 kB / 439.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.3204, allocations: 0 / 439.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3204, allocations: 4 kB / 439.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.3204, allocations: 0 / 439.8 MB, free: 37.85 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.0003401/0.3207, allocations: 353.6 kB / 440.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3208, allocations: 14.38 kB / 440.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.3208, allocations: 41.62 kB / 440.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.3208, allocations: 6.781 kB / 440.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.582e-05/0.3209, allocations: 173.2 kB / 440.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.321, allocations: 10.12 kB / 440.4 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.321, allocations: 9.906 kB / 440.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.3211, allocations: 89.17 kB / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.3212, allocations: 0 / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.3212, allocations: 4 kB / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3212, allocations: 3 kB / 440.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.576e-05/0.3213, allocations: 53.44 kB / 440.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004814/0.3218, allocations: 462.4 kB / 441 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.735e-05/0.3219, allocations: 60.25 kB / 441 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.404e-05/0.3219, allocations: 19.86 kB / 441 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.3219, allocations: 4 kB / 441 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.322, allocations: 30.56 kB / 441.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.322, allocations: 0 / 441.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001784/0.3221, allocations: 79.2 kB / 441.2 MB, free: 36.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.3222, allocations: 51.41 kB / 441.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.886e-05/0.3222, allocations: 115.2 kB / 441.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.344e-06/0.3223, allocations: 25.7 kB / 441.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.232e-05/0.3223, allocations: 106.4 kB / 441.4 MB, free: 36.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.3223, allocations: 22.33 kB / 441.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.3223, allocations: 6.281 kB / 441.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.741e-05/0.3224, allocations: 318.2 kB / 441.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.476e-05/0.3224, allocations: 16.97 kB / 441.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.526e-05/0.3225, allocations: 34.91 kB / 441.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.582e-05/0.3225, allocations: 18.25 kB / 441.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3225, allocations: 0 / 441.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.938e-05/0.3226, allocations: 79.05 kB / 441.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.3226, allocations: 8.469 kB / 441.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3227, allocations: 64 / 441.9 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3227, allocations: 6.969 kB / 441.9 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.996e-05/0.3228, allocations: 17.94 kB / 442 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3228, allocations: 7.891 kB / 442 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.029e-05/0.3228, allocations: 10.5 kB / 442 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.3228, allocations: 2.656 kB / 442 MB, free: 35.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.04e-05/0.3229, allocations: 112.6 kB / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.3229, allocations: 7.344 kB / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.3231, allocations: 87.7 kB / 442.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3231, allocations: 0 / 442.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3231, allocations: 0 / 442.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3231, allocations: 11.17 kB / 442.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.3233, allocations: 186 kB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3233, allocations: 0 / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/0.3233, allocations: 16.02 kB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3234, allocations: 3.938 kB / 442.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.3234, allocations: 0 / 442.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.3234, allocations: 3.844 kB / 442.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3234, allocations: 0 / 442.4 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.3235, allocations: 164.8 kB / 442.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.746e-05/0.3235, allocations: 87.28 kB / 442.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.3236, allocations: 0 / 442.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.707e-05/0.3236, allocations: 2.594 kB / 442.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.3236, allocations: 0 / 442.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.3236, allocations: 10.34 kB / 442.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.583e-05/0.3237, allocations: 84.03 kB / 442.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3237, allocations: 4 kB / 442.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.3239, allocations: 21.59 kB / 442.8 MB, free: 35.06 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 (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 0.0002792/0.3242, allocations: 0.6939 MB / 443.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.3243, allocations: 46.16 kB / 443.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3243, allocations: 128 / 443.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.549e-05/0.3244, allocations: 19.59 kB / 443.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.3246, allocations: 14.41 kB / 443.5 MB, free: 34.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.3251, allocations: 232.8 kB / 443.8 MB, free: 34.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.3252, allocations: 0.6969 MB / 444.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.871e-05/0.3253, allocations: 6.25 kB / 444.5 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.3253, allocations: 18.31 kB / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3253, allocations: 0 / 444.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0107/0.336, allocations: 1.295 MB / 445.8 MB, free: 33.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.3362, allocations: 189.4 kB / 446 MB, free: 33.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/2.021, allocations: 3.938 kB / 446 MB, free: 33.04 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/linux/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) Environment - environmentSimulation: