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.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001121/0.001121, allocations: 194.6 kB / 16.14 MB, free: 6.648 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.172/1.172, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1755/0.1755, allocations: 22.34 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 59.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2036, allocations: 54.95 MB / 435.1 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002186/0.2058, allocations: 1.738 MB / 436.9 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001614/0.2059, allocations: 66.83 kB / 437 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.078e-05/0.206, allocations: 0 / 437 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.541e-05/0.2061, allocations: 10.41 kB / 437 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.2062, allocations: 14.25 kB / 437 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.027e-05/0.2062, allocations: 8 kB / 437 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.908e-05/0.2063, allocations: 83.47 kB / 437.1 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.955e-05/0.2064, allocations: 29.89 kB / 437.1 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.795e-05/0.2064, allocations: 30.41 kB / 437.1 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.317e-05/0.2065, allocations: 33.39 kB / 437.2 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.2065, allocations: 5.969 kB / 437.2 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.526e-05/0.2065, allocations: 3.938 kB / 437.2 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.2066, allocations: 17.83 kB / 437.2 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.2066, allocations: 32.48 kB / 437.2 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.638e-05/0.2067, allocations: 83.78 kB / 437.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.2067, allocations: 0 / 437.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2067, allocations: 0 / 437.3 MB, free: 38.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.2067, allocations: 3.938 kB / 437.3 MB, free: 38.29 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.0002883/0.207, allocations: 370.8 kB / 437.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.207, allocations: 16.03 kB / 437.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.581e-05/0.2071, allocations: 44.94 kB / 437.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.393e-05/0.2071, allocations: 8 kB / 437.7 MB, free: 37.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.834e-05/0.2072, allocations: 178.5 kB / 437.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.2072, allocations: 13.69 kB / 437.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.2072, allocations: 5.156 kB / 437.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.2073, allocations: 91.53 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.2073, allocations: 0 / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.2074, allocations: 4 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2074, allocations: 2.75 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.049e-05/0.2075, allocations: 54.64 kB / 438.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003989/0.2079, allocations: 453.2 kB / 438.5 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.092e-05/0.2079, allocations: 53.78 kB / 438.6 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.133e-05/0.208, allocations: 20.8 kB / 438.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.208, allocations: 6.5 kB / 438.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.306e-05/0.208, allocations: 30.56 kB / 438.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.208, allocations: 4 kB / 438.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001507/0.2082, allocations: 76.52 kB / 438.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.808e-05/0.2082, allocations: 55.34 kB / 438.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.648e-05/0.2083, allocations: 113.6 kB / 438.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.252e-06/0.2083, allocations: 25.7 kB / 438.9 MB, free: 36.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.2083, allocations: 108.6 kB / 439 MB, free: 36.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.051e-05/0.2083, allocations: 17.36 kB / 439 MB, free: 36.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.2084, allocations: 23.09 kB / 439 MB, free: 36.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.585e-05/0.2084, allocations: 320.6 kB / 439.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.736e-05/0.2084, allocations: 15.42 kB / 439.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.111e-05/0.2085, allocations: 31.61 kB / 439.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.623e-05/0.2085, allocations: 53.83 kB / 439.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2085, allocations: 2.656 kB / 439.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.317e-05/0.2086, allocations: 86.28 kB / 439.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.2087, allocations: 5.406 kB / 439.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2087, allocations: 5.766 kB / 439.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.2087, allocations: 3.984 kB / 439.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.14e-05/0.2088, allocations: 17.03 kB / 439.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2088, allocations: 10.62 kB / 439.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.869e-05/0.2088, allocations: 6.859 kB / 439.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.2088, allocations: 0 / 439.6 MB, free: 36.18 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.424e-05/0.2089, allocations: 129.4 kB / 439.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.2089, allocations: 6.719 kB / 439.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.209, allocations: 80.14 kB / 439.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.209, allocations: 3.938 kB / 439.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2091, allocations: 6.812 kB / 439.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.2091, allocations: 0 / 439.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.2092, allocations: 187.6 kB / 440 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2092, allocations: 0 / 440 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.755e-05/0.2092, allocations: 11.38 kB / 440 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2093, allocations: 7.422 kB / 440 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.2093, allocations: 0 / 440 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2093, allocations: 6.688 kB / 440 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2093, allocations: 0 / 440 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.841e-05/0.2094, allocations: 172.3 kB / 440.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.501e-05/0.2094, allocations: 77.11 kB / 440.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.2094, allocations: 2.75 kB / 440.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.724e-05/0.2095, allocations: 7.219 kB / 440.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.2095, allocations: 6.844 kB / 440.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.2095, allocations: 0 / 440.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.273e-05/0.2095, allocations: 96.22 kB / 440.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2095, allocations: 0 / 440.4 MB, free: 35.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.2097, allocations: 25.47 kB / 440.4 MB, free: 35.41 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.0002028/0.21, allocations: 0.6857 MB / 441.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.223e-05/0.2101, allocations: 49.38 kB / 441.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2101, allocations: 0 / 441.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.366e-05/0.2101, allocations: 17.59 kB / 441.1 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.2103, allocations: 8.469 kB / 441.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003907/0.2107, allocations: 253.3 kB / 441.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.364e-05/0.2108, allocations: 0.6971 MB / 442.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.727e-05/0.2109, allocations: 2.719 kB / 442.1 MB, free: 33.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.2109, allocations: 27.86 kB / 442.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2109, allocations: 0 / 442.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5183/0.7293, allocations: 1.352 MB / 443.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001196/0.7294, allocations: 197.5 kB / 443.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.442/3.171, allocations: 0 / 443.7 MB, free: 33.29 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)