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.000951/0.000951, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001072/0.001072, allocations: 177.3 kB / 15.95 MB, free: 216 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.315/1.315, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1991/0.1991, allocations: 22.34 MB / 313.3 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003345, allocations: 11.98 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3216, allocations: 55.98 MB / 437.9 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.001744/0.3234, allocations: 1.346 MB / 439.2 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001718/0.3236, allocations: 64.91 kB / 439.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.018e-05/0.3236, allocations: 2.562 kB / 439.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.227e-05/0.3237, allocations: 6.844 kB / 439.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.3238, allocations: 22.12 kB / 439.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.173e-05/0.3239, allocations: 13.61 kB / 439.3 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.74e-05/0.3239, allocations: 56.86 kB / 439.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.3241, allocations: 20.27 kB / 439.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.054e-05/0.3241, allocations: 28.22 kB / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.615e-05/0.3242, allocations: 23.59 kB / 439.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.3242, allocations: 3 kB / 439.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.647e-05/0.3242, allocations: 5.844 kB / 439.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.3242, allocations: 19.16 kB / 439.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.248e-05/0.3243, allocations: 42.14 kB / 439.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.314e-05/0.3243, allocations: 55.48 kB / 439.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.3244, allocations: 0 / 439.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3244, allocations: 0 / 439.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.3244, allocations: 0 / 439.6 MB, free: 37.8 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.0003315/0.3247, allocations: 360.1 kB / 439.9 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3247, allocations: 8.938 kB / 440 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.3248, allocations: 37.12 kB / 440 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.735e-05/0.3248, allocations: 13.59 kB / 440 MB, free: 37.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.658e-05/0.3249, allocations: 172.7 kB / 440.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.3249, allocations: 6.938 kB / 440.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.325, allocations: 9.5 kB / 440.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.3251, allocations: 91.97 kB / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3251, allocations: 0 / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3251, allocations: 0 / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.3252, allocations: 2.562 kB / 440.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.539e-05/0.3252, allocations: 48.56 kB / 440.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004866/0.3257, allocations: 453.8 kB / 440.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.3259, allocations: 67.2 kB / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.3259, allocations: 0 / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.326, allocations: 42.56 kB / 440.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.61e-07/0.326, allocations: 3.938 kB / 440.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001768/0.3261, allocations: 65.05 kB / 441 MB, free: 36.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.3262, allocations: 55.36 kB / 441 MB, free: 36.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.1e-05/0.3263, allocations: 109.7 kB / 441.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.3263, allocations: 29.7 kB / 441.1 MB, free: 36.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.3263, allocations: 108.2 kB / 441.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.3263, allocations: 26.41 kB / 441.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.3264, allocations: 0 / 441.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.454e-05/0.3264, allocations: 322.1 kB / 441.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.557e-05/0.3265, allocations: 12.62 kB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.419e-05/0.3265, allocations: 34.66 kB / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.48e-05/0.3265, allocations: 14.22 kB / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3266, allocations: 0 / 441.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001002/0.3267, allocations: 87.12 kB / 441.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.3267, allocations: 9.562 kB / 441.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3267, allocations: 2.625 kB / 441.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3267, allocations: 0 / 441.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.577e-05/0.3268, allocations: 27.58 kB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3268, allocations: 3.953 kB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.225e-05/0.3269, allocations: 6.719 kB / 441.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.3269, allocations: 2.875 kB / 441.8 MB, free: 35.77 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 7.199e-05/0.327, allocations: 118.7 kB / 441.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.327, allocations: 2.781 kB / 441.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.3271, allocations: 90.7 kB / 442 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3271, allocations: 3.938 kB / 442 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3271, allocations: 2.938 kB / 442 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3272, allocations: 7.938 kB / 442 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.3273, allocations: 189.5 kB / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3273, allocations: 0 / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.001e-05/0.3274, allocations: 11.86 kB / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3274, allocations: 2.594 kB / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3274, allocations: 0 / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3274, allocations: 4 kB / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3274, allocations: 0 / 442.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.3275, allocations: 163.2 kB / 442.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.368e-05/0.3276, allocations: 83.92 kB / 442.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.3276, allocations: 3.609 kB / 442.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.3277, allocations: 2.844 kB / 442.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.102e-05/0.3277, allocations: 7.875 kB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-06/0.3277, allocations: 6.906 kB / 442.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.899e-05/0.3277, allocations: 92.06 kB / 442.6 MB, free: 35.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3277, allocations: 0 / 442.6 MB, free: 35.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000226/0.328, allocations: 20.06 kB / 442.6 MB, free: 35.02 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.0002748/0.3282, allocations: 0.6904 MB / 443.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.3284, allocations: 53.41 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3284, allocations: 0 / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.448e-05/0.3284, allocations: 19.72 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.3286, allocations: 5.922 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005324/0.3292, allocations: 236.6 kB / 443.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001609/0.3293, allocations: 0.6934 MB / 444.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.115e-05/0.3294, allocations: 3.094 kB / 444.3 MB, free: 33.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.3294, allocations: 25.53 kB / 444.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3294, allocations: 4 kB / 444.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.3457, allocations: 1.271 MB / 445.6 MB, free: 33.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.3459, allocations: 178 kB / 445.7 MB, free: 33.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.508/1.854, allocations: 3.375 kB / 445.8 MB, free: 33.01 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: