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.005948/0.005948, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001368/0.001368, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2458/0.2458, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002255/0.002255, allocations: 65.42 kB / 436.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1349, allocations: 54.96 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002847/0.1378, allocations: 1.686 MB / 493.2 MB, free: 36 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003345/0.1381, allocations: 59.91 kB / 493.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.151e-05/0.1382, allocations: 0 / 493.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.869e-05/0.1383, allocations: 7.875 kB / 493.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.1385, allocations: 27.78 kB / 493.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.57e-05/0.1386, allocations: 19.97 kB / 493.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.1387, allocations: 79.55 kB / 493.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.1388, allocations: 32.22 kB / 493.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.201e-05/0.1389, allocations: 31.88 kB / 493.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.139, allocations: 39.83 kB / 493.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.139, allocations: 8 kB / 493.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.845e-05/0.1391, allocations: 8 kB / 493.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.1391, allocations: 11.98 kB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.925e-05/0.1392, allocations: 35.81 kB / 493.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.1393, allocations: 84.53 kB / 493.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1393, allocations: 3.938 kB / 493.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1393, allocations: 0 / 493.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1393, allocations: 0 / 493.7 MB, free: 15.59 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.0004439/0.1398, allocations: 375.6 kB / 494 MB, free: 15.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1398, allocations: 16.02 kB / 494 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.855e-05/0.1399, allocations: 42.69 kB / 494.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.212e-05/0.1399, allocations: 12.78 kB / 494.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.1401, allocations: 172.3 kB / 494.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1401, allocations: 8.562 kB / 494.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.1401, allocations: 8.375 kB / 494.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.1403, allocations: 93.73 kB / 494.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.1403, allocations: 0 / 494.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.1403, allocations: 0 / 494.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.1403, allocations: 11.98 kB / 494.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.823e-05/0.1404, allocations: 47.97 kB / 494.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006073/0.141, allocations: 449.6 kB / 494.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.1412, allocations: 54.56 kB / 494.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.41e-05/0.1412, allocations: 24.95 kB / 495 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.1412, allocations: 8 kB / 495 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.1413, allocations: 30.56 kB / 495 MB, free: 14.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.1413, allocations: 3.938 kB / 495 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002015/0.1415, allocations: 69.69 kB / 495.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.1415, allocations: 59.34 kB / 495.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.223e-05/0.1416, allocations: 109.8 kB / 495.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1416, allocations: 25.7 kB / 495.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.1417, allocations: 112.1 kB / 495.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.1418, allocations: 19.66 kB / 495.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.1418, allocations: 21.72 kB / 495.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1419, allocations: 318.8 kB / 495.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.477e-05/0.1419, allocations: 12 kB / 495.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.725e-05/0.142, allocations: 38.5 kB / 495.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.816e-05/0.1421, allocations: 54.58 kB / 495.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1421, allocations: 0 / 495.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001271/0.1422, allocations: 85.52 kB / 495.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.1423, allocations: 4 kB / 495.9 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.1423, allocations: 4 kB / 495.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1423, allocations: 3.938 kB / 495.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.1424, allocations: 23.88 kB / 495.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.1424, allocations: 8.547 kB / 495.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.151e-05/0.1425, allocations: 8.062 kB / 495.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.1425, allocations: 4 kB / 496 MB, free: 13.03 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 7.901e-05/0.1426, allocations: 122.5 kB / 496.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.1426, allocations: 8.094 kB / 496.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001546/0.1428, allocations: 81.97 kB / 496.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.1428, allocations: 11.88 kB / 496.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1428, allocations: 4 kB / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1428, allocations: 0 / 496.2 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.143, allocations: 185.6 kB / 496.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.143, allocations: 0 / 496.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.729e-05/0.1431, allocations: 12 kB / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1431, allocations: 0 / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.1431, allocations: 0 / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1431, allocations: 3.938 kB / 496.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1431, allocations: 4 kB / 496.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.1433, allocations: 167.5 kB / 496.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.1433, allocations: 81.02 kB / 496.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/0.1433, allocations: 8 kB / 496.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.622e-05/0.1434, allocations: 3.938 kB / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.1434, allocations: 0 / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1434, allocations: 8 kB / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.077e-05/0.1435, allocations: 83.27 kB / 496.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1435, allocations: 0 / 496.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.1437, allocations: 23.84 kB / 496.7 MB, free: 12.14 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.0004211/0.1441, allocations: 0.693 MB / 497.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.1443, allocations: 43.92 kB / 497.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1443, allocations: 0 / 497.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.261e-05/0.1443, allocations: 23.92 kB / 497.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.1447, allocations: 15.88 kB / 497.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005826/0.1453, allocations: 204.2 kB / 497.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1456, allocations: 0.6931 MB / 498.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.534e-05/0.1456, allocations: 0 / 498.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.369e-05/0.1457, allocations: 23.42 kB / 498.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1457, allocations: 3.938 kB / 498.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.1645, allocations: 1.536 MB / 500 MB, free: 8.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.306, allocations: 7.812 kB / 500 MB, free: 8.891 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)