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.001188/0.001188, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.446/1.446, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2769/0.2769, allocations: 22.35 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 63.91 kB / 380.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3443, allocations: 54.94 MB / 435.9 MB, free: 39.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.003321/0.3476, allocations: 1.682 MB / 437.6 MB, free: 38.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002328/0.3479, allocations: 59.55 kB / 437.6 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.469e-05/0.348, allocations: 7.094 kB / 437.6 MB, free: 38.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.63e-05/0.348, allocations: 11.11 kB / 437.6 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.3482, allocations: 22 kB / 437.7 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.968e-05/0.3483, allocations: 21.52 kB / 437.7 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.3484, allocations: 74.83 kB / 437.8 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3485, allocations: 36.48 kB / 437.8 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.469e-05/0.3486, allocations: 31.81 kB / 437.8 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/0.3487, allocations: 34.5 kB / 437.9 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.3487, allocations: 8.562 kB / 437.9 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.904e-05/0.3487, allocations: 5.156 kB / 437.9 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/0.3488, allocations: 17.78 kB / 437.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.3488, allocations: 37.45 kB / 437.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.3489, allocations: 85.23 kB / 438 MB, free: 38.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3489, allocations: 0 / 438 MB, free: 38.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3489, allocations: 0 / 438 MB, free: 38.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3489, allocations: 4 kB / 438 MB, free: 38.38 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.000427/0.3494, allocations: 371 kB / 438.4 MB, free: 38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3494, allocations: 9.438 kB / 438.4 MB, free: 38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.3495, allocations: 40.28 kB / 438.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.3495, allocations: 10.67 kB / 438.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.433e-05/0.3496, allocations: 175.1 kB / 438.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3496, allocations: 7.625 kB / 438.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.3496, allocations: 12.22 kB / 438.6 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.3498, allocations: 95.39 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.3498, allocations: 0 / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3499, allocations: 6.469 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3499, allocations: 2.531 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.791e-05/0.35, allocations: 54.5 kB / 438.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.3505, allocations: 448.8 kB / 439.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.442e-05/0.3506, allocations: 61.47 kB / 439.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.896e-05/0.3507, allocations: 21.27 kB / 439.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.3507, allocations: 0 / 439.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.3507, allocations: 33.31 kB / 439.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.3507, allocations: 0 / 439.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001953/0.3509, allocations: 76.75 kB / 439.4 MB, free: 37.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/0.351, allocations: 66.16 kB / 439.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.195e-05/0.351, allocations: 109.1 kB / 439.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.3511, allocations: 25.7 kB / 439.6 MB, free: 36.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.3511, allocations: 108.2 kB / 439.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.3511, allocations: 21.64 kB / 439.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.3512, allocations: 18.88 kB / 439.7 MB, free: 36.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.939e-05/0.3513, allocations: 316.8 kB / 440.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.98e-05/0.3513, allocations: 11.59 kB / 440.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-05/0.3513, allocations: 40.16 kB / 440.1 MB, free: 36.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.426e-05/0.3514, allocations: 57.25 kB / 440.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3514, allocations: 3.344 kB / 440.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000114/0.3516, allocations: 81.22 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3516, allocations: 9.656 kB / 440.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3516, allocations: 4.062 kB / 440.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3516, allocations: 3.094 kB / 440.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.3517, allocations: 21.91 kB / 440.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3518, allocations: 3.938 kB / 440.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.629e-05/0.3518, allocations: 6.906 kB / 440.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.3518, allocations: 3.156 kB / 440.3 MB, free: 36.27 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 7.879e-05/0.3519, allocations: 121.4 kB / 440.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.3519, allocations: 6.781 kB / 440.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.3521, allocations: 85.66 kB / 440.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.3521, allocations: 3.938 kB / 440.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3521, allocations: 0.5 kB / 440.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3521, allocations: 2.812 kB / 440.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.3523, allocations: 178.8 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3523, allocations: 3.062 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.02e-05/0.3524, allocations: 19.83 kB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3524, allocations: 2.812 kB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.3524, allocations: 4 kB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3524, allocations: 4.125 kB / 440.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3524, allocations: 4 kB / 440.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.3525, allocations: 165.1 kB / 440.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.3526, allocations: 80.48 kB / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.3526, allocations: 3.906 kB / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.3527, allocations: 3.938 kB / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/0.3527, allocations: 0 / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.3527, allocations: 6.812 kB / 441 MB, free: 35.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.721e-05/0.3527, allocations: 88.45 kB / 441.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3528, allocations: 3.938 kB / 441.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.353, allocations: 25.5 kB / 441.1 MB, free: 35.52 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.0003629/0.3534, allocations: 0.6902 MB / 441.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.3535, allocations: 47.86 kB / 441.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3535, allocations: 4.125 kB / 441.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.765e-05/0.3535, allocations: 23.53 kB / 441.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.3539, allocations: 10.94 kB / 441.9 MB, free: 34.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.3543, allocations: 205.7 kB / 442.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3545, allocations: 0.6933 MB / 442.8 MB, free: 33.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.816e-05/0.3545, allocations: 10.97 kB / 442.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.3546, allocations: 18.59 kB / 442.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3546, allocations: 0 / 442.8 MB, free: 33.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.3738, allocations: 1.491 MB / 444.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.414/7.788, allocations: 11.39 kB / 444.3 MB, free: 33.54 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_component_models_HeatPump_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)