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: translateModel(AES.Coursework.ThermSys_component_models.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatPump_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 104.6 kB / 16.41 MB, free: 6.508 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.001626/0.001626, allocations: 187 kB / 17.34 MB, free: 5.742 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09309/0.09309, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.91 kB / 437.7 MB, free: 11.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09418, allocations: 54.96 MB / 492.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002902/0.09711, allocations: 1.679 MB / 494.4 MB, free: 3.141 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002592/0.0974, allocations: 59.8 kB / 494.4 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.562e-05/0.09749, allocations: 8 kB / 494.4 MB, free: 3.074 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.093e-05/0.09756, allocations: 7.875 kB / 494.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.09773, allocations: 23.78 kB / 494.4 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.2e-05/0.0978, allocations: 15.98 kB / 494.5 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.09791, allocations: 75.72 kB / 494.5 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.09808, allocations: 36.2 kB / 494.6 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.103e-05/0.09814, allocations: 31.86 kB / 494.6 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.09825, allocations: 39.84 kB / 494.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.09828, allocations: 8 kB / 494.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.737e-05/0.09831, allocations: 4 kB / 494.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.09834, allocations: 19.92 kB / 494.7 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.618e-05/0.09839, allocations: 31.81 kB / 494.7 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001327/0.09853, allocations: 87.62 kB / 494.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.09854, allocations: 4 kB / 494.8 MB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.09855, allocations: 0 / 494.8 MB, free: 2.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.09857, allocations: 8 kB / 494.8 MB, free: 2.684 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.0004981/0.09907, allocations: 367.5 kB / 495.2 MB, free: 2.273 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.09912, allocations: 8.031 kB / 495.2 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.09917, allocations: 8.844 kB / 495.2 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.0993, allocations: 172.3 kB / 495.3 MB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.09932, allocations: 8.562 kB / 495.4 MB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.09934, allocations: 4.375 kB / 495.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.09952, allocations: 93.92 kB / 495.5 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.09954, allocations: 4 kB / 495.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.09956, allocations: 4 kB / 495.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.09957, allocations: 7.984 kB / 495.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.872e-05/0.09968, allocations: 47.97 kB / 495.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006177/0.1003, allocations: 449.7 kB / 496 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.1004, allocations: 58.56 kB / 496 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.924e-05/0.1005, allocations: 24.95 kB / 496 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.1005, allocations: 8 kB / 496 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1005, allocations: 34.5 kB / 496.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.1005, allocations: 0 / 496.1 MB, free: 1.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002066/0.1007, allocations: 69.69 kB / 496.1 MB, free: 1.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.1008, allocations: 59.28 kB / 496.2 MB, free: 1.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.279e-05/0.1009, allocations: 113.8 kB / 496.3 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.1009, allocations: 29.7 kB / 496.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.566e-05/0.101, allocations: 108 kB / 496.4 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.101, allocations: 19.66 kB / 496.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.101, allocations: 25.7 kB / 496.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1011, allocations: 318.8 kB / 496.8 MB, free: 456 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.116e-05/0.1012, allocations: 15.98 kB / 496.8 MB, free: 440 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.281e-05/0.1012, allocations: 34.52 kB / 496.9 MB, free: 396 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.436e-05/0.1013, allocations: 58.55 kB / 496.9 MB, free: 328 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1013, allocations: 0 / 496.9 MB, free: 328 kB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001355/0.1015, allocations: 89.52 kB / 497 MB, free: 232 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.1015, allocations: 4 kB / 497 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1015, allocations: 4 kB / 497 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1015, allocations: 0 / 497 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1016, allocations: 23.92 kB / 497 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.1016, allocations: 8 kB / 497 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.148e-05/0.1017, allocations: 3.938 kB / 497 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1017, allocations: 8 kB / 497 MB, free: 180 kB / 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 8.45e-05/0.1018, allocations: 118.6 kB / 497.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.1018, allocations: 7.906 kB / 497.2 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001741/0.102, allocations: 77.98 kB / 497.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.102, allocations: 0 / 497.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.102, allocations: 7.938 kB / 497.3 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.102, allocations: 4 kB / 497.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.1022, allocations: 181.6 kB / 497.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1022, allocations: 0 / 497.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/0.1023, allocations: 12.5 kB / 497.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1023, allocations: 0 / 497.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.1023, allocations: 3.984 kB / 497.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.1024, allocations: 4 kB / 497.5 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1024, allocations: 7.938 kB / 497.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.1025, allocations: 175.4 kB / 497.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.644e-05/0.1026, allocations: 81.05 kB / 497.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.1026, allocations: 4 kB / 497.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.174e-05/0.1026, allocations: 0 / 497.7 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.014e-05/0.1027, allocations: 11.86 kB / 497.7 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.1027, allocations: 4 kB / 497.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.496e-05/0.1027, allocations: 83.28 kB / 497.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1027, allocations: 0 / 497.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.103, allocations: 20.09 kB / 497.8 MB, free: 15.29 MB / 382.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.0001077/0.1031, allocations: 99.25 kB / 497.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.1032, allocations: 43.86 kB / 498 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1032, allocations: 4 kB / 498 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.1033, allocations: 19.98 kB / 498 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.1036, allocations: 4 kB / 498 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004115/0.104, allocations: 204.1 kB / 498.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.1042, allocations: 0.6925 MB / 498.9 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.1043, allocations: 11.44 kB / 498.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1043, allocations: 0 / 498.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of Templates: time 0.002103/0.1064, allocations: 0.8488 MB / 499.8 MB, free: 13.3 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_001.pipe 2>&1)