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.001171/0.001171, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001159/0.001158, allocations: 190.4 kB / 16.25 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.179/1.179, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1638/0.1638, allocations: 22.35 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.91 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2014, allocations: 54.94 MB / 435.3 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.001971/0.2034, allocations: 1.736 MB / 437.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001468/0.2036, allocations: 61.11 kB / 437.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.548e-05/0.2037, allocations: 0 / 437.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.222e-05/0.2037, allocations: 7.312 kB / 437.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.2038, allocations: 22 kB / 437.2 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.894e-05/0.2039, allocations: 18.2 kB / 437.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.2039, allocations: 75.25 kB / 437.3 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.204, allocations: 31.45 kB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.2041, allocations: 34.36 kB / 437.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.29e-05/0.2041, allocations: 38.11 kB / 437.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.2042, allocations: 5.656 kB / 437.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.391e-05/0.2042, allocations: 8.406 kB / 437.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.2042, allocations: 14.55 kB / 437.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.859e-05/0.2042, allocations: 36.56 kB / 437.4 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.696e-05/0.2043, allocations: 81.73 kB / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.2043, allocations: 0 / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2043, allocations: 0 / 437.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.2043, allocations: 0 / 437.5 MB, free: 38.14 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.0002815/0.2046, allocations: 378.3 kB / 437.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.2047, allocations: 15.47 kB / 437.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.2047, allocations: 40.84 kB / 437.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.2047, allocations: 7.906 kB / 437.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.832e-05/0.2048, allocations: 182.3 kB / 438.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.2048, allocations: 7.531 kB / 438.1 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.2048, allocations: 10.12 kB / 438.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.2049, allocations: 96.53 kB / 438.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.205, allocations: 0 / 438.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.205, allocations: 7.938 kB / 438.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.205, allocations: 2.969 kB / 438.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.933e-05/0.2051, allocations: 54.88 kB / 438.3 MB, free: 37.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.2055, allocations: 445.5 kB / 438.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.611e-05/0.2055, allocations: 57.69 kB / 438.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.95e-05/0.2056, allocations: 22.92 kB / 438.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.2056, allocations: 0 / 438.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.197e-05/0.2056, allocations: 33.19 kB / 438.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.01e-07/0.2056, allocations: 0 / 438.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001456/0.2058, allocations: 81.36 kB / 438.9 MB, free: 36.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.105e-05/0.2058, allocations: 58 kB / 439 MB, free: 36.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.083e-05/0.2058, allocations: 107 kB / 439.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.002e-06/0.2059, allocations: 28.67 kB / 439.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.614e-05/0.2059, allocations: 110.6 kB / 439.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.989e-06/0.2059, allocations: 18.72 kB / 439.2 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.2059, allocations: 22.94 kB / 439.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 2.943e-05/0.206, allocations: 310.8 kB / 439.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.389e-05/0.206, allocations: 17.2 kB / 439.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.916e-05/0.206, allocations: 44.86 kB / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.316e-05/0.2061, allocations: 52.47 kB / 439.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2061, allocations: 2.969 kB / 439.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 8.982e-05/0.2062, allocations: 81.83 kB / 439.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/0.2062, allocations: 5.25 kB / 439.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2062, allocations: 0 / 439.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.2062, allocations: 2.688 kB / 439.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.2063, allocations: 28.42 kB / 439.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.2063, allocations: 2.531 kB / 439.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.776e-05/0.2064, allocations: 6.469 kB / 439.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.2064, allocations: 7.312 kB / 439.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.185e-05/0.2064, allocations: 121.7 kB / 439.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.17e-05/0.2064, allocations: 3.906 kB / 439.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.2066, allocations: 84.47 kB / 440 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2066, allocations: 7.938 kB / 440 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2066, allocations: 0.5 kB / 440 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2066, allocations: 2.781 kB / 440 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.2067, allocations: 183.9 kB / 440.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2067, allocations: 4 kB / 440.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-05/0.2068, allocations: 13.34 kB / 440.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.2068, allocations: 192 / 440.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.2068, allocations: 4 kB / 440.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2068, allocations: 7.875 kB / 440.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2068, allocations: 3.422 kB / 440.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.422e-05/0.2069, allocations: 166 kB / 440.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.541e-05/0.2069, allocations: 77.11 kB / 440.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.2069, allocations: 6.469 kB / 440.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.656e-05/0.207, allocations: 3.938 kB / 440.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.218e-05/0.207, allocations: 9.969 kB / 440.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.207, allocations: 0 / 440.5 MB, free: 35.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.892e-05/0.207, allocations: 80.91 kB / 440.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2071, allocations: 0 / 440.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.2073, allocations: 30.47 kB / 440.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.0001932/0.2075, allocations: 0.6959 MB / 441.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.315e-05/0.2076, allocations: 48.05 kB / 441.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2076, allocations: 0 / 441.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.27e-05/0.2076, allocations: 22.59 kB / 441.4 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.0002294/0.2078, allocations: 17.2 kB / 441.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003747/0.2082, allocations: 244.6 kB / 441.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.409e-05/0.2083, allocations: 0.692 MB / 442.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.736e-05/0.2084, allocations: 5.844 kB / 442.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.269e-05/0.2084, allocations: 18.06 kB / 442.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2084, allocations: 0 / 442.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.64/0.8484, allocations: 1.414 MB / 443.7 MB, free: 33.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001147/0.8485, allocations: 196.7 kB / 443.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.424/2.272, allocations: 2 kB / 443.9 MB, free: 33.12 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)