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.007553/0.007553, allocations: 98.94 kB / 15.73 MB, free: 6.496 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.002071/0.002071, allocations: 191.9 kB / 16.67 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1927/0.1927, allocations: 22.37 MB / 312.9 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001827/0.001827, allocations: 62.91 kB / 436.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08697/0.08881, allocations: 54.96 MB / 491.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002026/0.09087, allocations: 1.693 MB / 493.2 MB, free: 20 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002001/0.09109, allocations: 51.81 kB / 493.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.005e-05/0.09115, allocations: 4 kB / 493.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.528e-05/0.0912, allocations: 11.86 kB / 493.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.09133, allocations: 23.78 kB / 493.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.141e-05/0.09139, allocations: 19.98 kB / 493.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.09151, allocations: 75.66 kB / 493.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.09164, allocations: 36.48 kB / 493.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.86e-05/0.09169, allocations: 27.92 kB / 493.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.474e-05/0.09179, allocations: 43.77 kB / 493.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.09182, allocations: 12 kB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.09184, allocations: 4 kB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.09187, allocations: 12 kB / 493.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.567e-05/0.09194, allocations: 43.8 kB / 493.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.09207, allocations: 83.62 kB / 493.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.09208, allocations: 0 / 493.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09209, allocations: 0 / 493.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.0921, allocations: 0 / 493.7 MB, free: 15.57 MB / 366.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.0004672/0.09257, allocations: 375.5 kB / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.09261, allocations: 15.97 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.09266, allocations: 46.67 kB / 494.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.0927, allocations: 8.891 kB / 494.1 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.09284, allocations: 168.3 kB / 494.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.09286, allocations: 8.562 kB / 494.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.09288, allocations: 8.375 kB / 494.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.09306, allocations: 94.84 kB / 494.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.09308, allocations: 0 / 494.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.0931, allocations: 4 kB / 494.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.09311, allocations: 3.938 kB / 494.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.09322, allocations: 55.97 kB / 494.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005855/0.09381, allocations: 449.7 kB / 494.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.09393, allocations: 50.56 kB / 494.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.974e-05/0.09398, allocations: 24.92 kB / 495 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.094, allocations: 0 / 495 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.09404, allocations: 34.56 kB / 495 MB, free: 14.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 2.705e-06/0.09405, allocations: 4 kB / 495 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001906/0.09424, allocations: 77.62 kB / 495.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.09429, allocations: 59.33 kB / 495.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.991e-05/0.09438, allocations: 102.1 kB / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.0944, allocations: 29.7 kB / 495.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.609e-05/0.09447, allocations: 112.1 kB / 495.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.0945, allocations: 23.78 kB / 495.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.09454, allocations: 25.72 kB / 495.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.09468, allocations: 314.8 kB / 495.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.019e-05/0.09472, allocations: 12 kB / 495.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.082e-05/0.09477, allocations: 42.75 kB / 495.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.111e-05/0.09486, allocations: 54.58 kB / 495.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.09487, allocations: 4 kB / 495.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001258/0.095, allocations: 77.62 kB / 495.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.09502, allocations: 4 kB / 495.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.09503, allocations: 0 / 495.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.09505, allocations: 7.984 kB / 495.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.09515, allocations: 19.88 kB / 496 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.09516, allocations: 0 / 496 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.445e-05/0.09521, allocations: 11.95 kB / 496 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.09523, allocations: 8 kB / 496 MB, free: 13.02 MB / 366.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 9.03e-05/0.09532, allocations: 130.5 kB / 496.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.09535, allocations: 3.953 kB / 496.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001461/0.0955, allocations: 81.98 kB / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.09552, allocations: 3.938 kB / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.09552, allocations: 0 / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.09553, allocations: 3.984 kB / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.09574, allocations: 181.7 kB / 496.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.09575, allocations: 0 / 496.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.65e-05/0.09582, allocations: 20.17 kB / 496.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.09583, allocations: 0 / 496.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.09584, allocations: 7.938 kB / 496.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.09585, allocations: 4.094 kB / 496.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09586, allocations: 0 / 496.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.09602, allocations: 163.5 kB / 496.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.09608, allocations: 89.05 kB / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.0961, allocations: 3.984 kB / 496.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.812e-05/0.09617, allocations: 7.938 kB / 496.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.907e-05/0.09619, allocations: 8 kB / 496.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.0962, allocations: 0 / 496.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5e-05/0.09625, allocations: 87.27 kB / 496.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09626, allocations: 0 / 496.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002299/0.09649, allocations: 23.89 kB / 496.8 MB, free: 12.12 MB / 366.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.0004362/0.09694, allocations: 0.693 MB / 497.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.09706, allocations: 39.92 kB / 497.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.09708, allocations: 4 kB / 497.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.325e-05/0.09711, allocations: 23.92 kB / 497.5 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.09739, allocations: 14.88 kB / 497.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000483/0.09788, allocations: 196 kB / 497.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.0982, allocations: 0.6964 MB / 498.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.541e-05/0.09824, allocations: 7.984 kB / 498.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.09829, allocations: 19.44 kB / 498.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.0983, allocations: 0 / 498.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.1192, allocations: 1.527 MB / 500 MB, free: 8.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/7.818, allocations: 3.75 kB / 500 MB, free: 8.887 MB / 366.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)