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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 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.001128/0.001128, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1854/0.1854, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 67.88 kB / 380.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2322, allocations: 54.94 MB / 435.9 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002288/0.2345, allocations: 1.683 MB / 437.6 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001866/0.2347, allocations: 62.58 kB / 437.6 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.086e-05/0.2347, allocations: 2.594 kB / 437.6 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.2348, allocations: 11.16 kB / 437.6 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.2349, allocations: 17.84 kB / 437.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.652e-05/0.235, allocations: 14.19 kB / 437.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.403e-05/0.2351, allocations: 89 kB / 437.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.2352, allocations: 35.62 kB / 437.8 MB, free: 38.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.33e-05/0.2353, allocations: 30.08 kB / 437.8 MB, free: 38.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.274e-05/0.2353, allocations: 34.41 kB / 437.9 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.2354, allocations: 5.656 kB / 437.9 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.785e-05/0.2354, allocations: 11.78 kB / 437.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.846e-05/0.2354, allocations: 14.09 kB / 437.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.775e-05/0.2355, allocations: 38.33 kB / 437.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.193e-05/0.2356, allocations: 83.83 kB / 438 MB, free: 38.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2356, allocations: 0 / 438 MB, free: 38.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2356, allocations: 0 / 438 MB, free: 38.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.2356, allocations: 0 / 438 MB, free: 38.33 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.00034/0.2359, allocations: 368.6 kB / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.236, allocations: 12.16 kB / 438.4 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.893e-05/0.236, allocations: 45.25 kB / 438.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.667e-05/0.236, allocations: 10.16 kB / 438.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.886e-05/0.2361, allocations: 178.1 kB / 438.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.2361, allocations: 7.188 kB / 438.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.2362, allocations: 10.09 kB / 438.6 MB, free: 37.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.2363, allocations: 89.59 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.2363, allocations: 0 / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.2364, allocations: 6.562 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.2364, allocations: 2.5 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.809e-05/0.2365, allocations: 54.92 kB / 438.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.2369, allocations: 453.5 kB / 439.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.237, allocations: 55.7 kB / 439.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.2371, allocations: 27.17 kB / 439.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.2371, allocations: 0 / 439.3 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.78e-05/0.2371, allocations: 37 kB / 439.3 MB, free: 37.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 7.62e-07/0.2371, allocations: 0 / 439.3 MB, free: 37.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001625/0.2373, allocations: 75.52 kB / 439.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.065e-05/0.2373, allocations: 55.34 kB / 439.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.371e-05/0.2374, allocations: 109.5 kB / 439.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.345e-06/0.2374, allocations: 28.33 kB / 439.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.2374, allocations: 109.8 kB / 439.7 MB, free: 36.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.2375, allocations: 18.23 kB / 439.7 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.2375, allocations: 23.06 kB / 439.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.177e-05/0.2375, allocations: 316.9 kB / 440.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.778e-05/0.2376, allocations: 13.03 kB / 440.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.558e-05/0.2376, allocations: 34.2 kB / 440.1 MB, free: 36.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.47e-05/0.2377, allocations: 63.28 kB / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2377, allocations: 0 / 440.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001006/0.2378, allocations: 83.02 kB / 440.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.2378, allocations: 6.594 kB / 440.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2378, allocations: 0 / 440.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.2378, allocations: 2.812 kB / 440.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.924e-05/0.238, allocations: 21.2 kB / 440.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.238, allocations: 0 / 440.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.681e-05/0.238, allocations: 6.844 kB / 440.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.238, allocations: 6.719 kB / 440.3 MB, free: 36.22 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 5.103e-05/0.2381, allocations: 132.3 kB / 440.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.2381, allocations: 6.469 kB / 440.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.2382, allocations: 85.06 kB / 440.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.2382, allocations: 3.938 kB / 440.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.2382, allocations: 192 / 440.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.2382, allocations: 0 / 440.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.2384, allocations: 189.6 kB / 440.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2384, allocations: 0 / 440.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.554e-05/0.2385, allocations: 20.23 kB / 440.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2385, allocations: 0 / 440.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.2385, allocations: 0 / 440.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2385, allocations: 3.938 kB / 440.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2385, allocations: 2.531 kB / 440.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.457e-05/0.2386, allocations: 170 kB / 440.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.719e-05/0.2386, allocations: 83.23 kB / 441 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.2386, allocations: 0 / 441 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.801e-05/0.2387, allocations: 3.938 kB / 441 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.2387, allocations: 7.875 kB / 441 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.2387, allocations: 0 / 441 MB, free: 35.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.362e-05/0.2387, allocations: 84.38 kB / 441.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2388, allocations: 0 / 441.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.239, allocations: 26.09 kB / 441.1 MB, free: 35.47 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.0002299/0.2392, allocations: 0.693 MB / 441.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.2393, allocations: 46.72 kB / 441.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2394, allocations: 2.906 kB / 441.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.721e-05/0.2394, allocations: 22.8 kB / 441.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.2397, allocations: 17.53 kB / 441.9 MB, free: 34.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004534/0.2401, allocations: 218.1 kB / 442.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.2402, allocations: 0.6895 MB / 442.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.99e-05/0.2403, allocations: 7.688 kB / 442.8 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.031e-05/0.2403, allocations: 23.17 kB / 442.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2403, allocations: 0 / 442.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.2558, allocations: 1.469 MB / 444.3 MB, free: 33.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.538, allocations: 13.41 kB / 444.3 MB, free: 33.49 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)