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.001117/0.001117, allocations: 106.1 kB / 16.27 MB, free: 5.973 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.001228/0.001228, allocations: 194.2 kB / 17.2 MB, free: 5.598 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09683/0.09683, allocations: 22.33 MB / 313.4 MB, free: 8.969 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001334, allocations: 62.95 kB / 381.5 MB, free: 41.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08689, allocations: 54.96 MB / 436.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.003198/0.09013, allocations: 1.671 MB / 438.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002576/0.09042, allocations: 67.72 kB / 438.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.514e-05/0.0905, allocations: 4 kB / 438.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.182e-05/0.09059, allocations: 15.8 kB / 438.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.09077, allocations: 19.84 kB / 438.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.711e-05/0.09083, allocations: 15.98 kB / 438.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.09095, allocations: 79.66 kB / 438.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.09111, allocations: 36.2 kB / 438.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.576e-05/0.09116, allocations: 31.88 kB / 438.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.09127, allocations: 31.84 kB / 438.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.0913, allocations: 12 kB / 438.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.861e-05/0.09133, allocations: 11.94 kB / 438.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.329e-05/0.09136, allocations: 15.92 kB / 438.4 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.09141, allocations: 31.88 kB / 438.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.09153, allocations: 87.91 kB / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09154, allocations: 0 / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09155, allocations: 0 / 438.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.09156, allocations: 0 / 438.5 MB, free: 10.91 MB / 318.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.0005086/0.09208, allocations: 367.6 kB / 438.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.09213, allocations: 16.02 kB / 438.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.834e-05/0.09217, allocations: 8.844 kB / 438.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.09231, allocations: 176.2 kB / 439.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.09233, allocations: 8.562 kB / 439.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.09236, allocations: 8.375 kB / 439.1 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.09254, allocations: 93.97 kB / 439.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09255, allocations: 0 / 439.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.09257, allocations: 4 kB / 439.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.09258, allocations: 0 / 439.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.62e-05/0.09269, allocations: 43.98 kB / 439.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006241/0.09332, allocations: 457.7 kB / 439.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001068/0.09344, allocations: 62.61 kB / 439.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.898e-05/0.0935, allocations: 16.86 kB / 439.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.09352, allocations: 8 kB / 439.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.09355, allocations: 30.56 kB / 439.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.09356, allocations: 0 / 439.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001959/0.09376, allocations: 77.59 kB / 439.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.0938, allocations: 55.34 kB / 439.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.934e-05/0.09391, allocations: 105.8 kB / 440 MB, free: 9.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.09393, allocations: 29.64 kB / 440.1 MB, free: 9.152 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.094, allocations: 112 kB / 440.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.09402, allocations: 23.8 kB / 440.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.09406, allocations: 17.72 kB / 440.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.09418, allocations: 318.8 kB / 440.5 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.603e-05/0.09422, allocations: 15.98 kB / 440.6 MB, free: 8.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.412e-05/0.09427, allocations: 30.56 kB / 440.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.09447, allocations: 58.52 kB / 440.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.09448, allocations: 0 / 440.6 MB, free: 8.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001289/0.09462, allocations: 85.7 kB / 440.7 MB, free: 8.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.09464, allocations: 11.94 kB / 440.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.09465, allocations: 4.438 kB / 440.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.09467, allocations: 0 / 440.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.09479, allocations: 23.98 kB / 440.8 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.09481, allocations: 3.938 kB / 440.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.973e-05/0.09485, allocations: 8 kB / 440.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.09487, allocations: 8 kB / 440.8 MB, free: 8.402 MB / 318.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.902e-05/0.09497, allocations: 122.5 kB / 440.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.09501, allocations: 7.906 kB / 440.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/0.09518, allocations: 78.11 kB / 441 MB, free: 8.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.0952, allocations: 4 kB / 441 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.09521, allocations: 3.938 kB / 441 MB, free: 8.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.09522, allocations: 3.984 kB / 441 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.09543, allocations: 185.6 kB / 441.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.09544, allocations: 0 / 441.2 MB, free: 7.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.47e-05/0.09552, allocations: 19.98 kB / 441.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.09553, allocations: 0 / 441.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-06/0.09555, allocations: 0 / 441.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.09556, allocations: 4 kB / 441.2 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.09556, allocations: 7.875 kB / 441.2 MB, free: 7.914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.09572, allocations: 163.4 kB / 441.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.09577, allocations: 77.11 kB / 441.4 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.09579, allocations: 8 kB / 441.5 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.782e-05/0.09585, allocations: 4 kB / 441.5 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.642e-05/0.09588, allocations: 7.922 kB / 441.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.0959, allocations: 4 kB / 441.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.32e-05/0.09594, allocations: 83.28 kB / 441.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.09595, allocations: 0 / 441.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002412/0.0962, allocations: 19.84 kB / 441.6 MB, free: 7.52 MB / 318.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.0001026/0.0963, allocations: 99.23 kB / 441.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.09645, allocations: 55.92 kB / 441.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.09646, allocations: 0 / 441.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.14e-05/0.09649, allocations: 19.94 kB / 441.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.0968, allocations: 8 kB / 441.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004012/0.09721, allocations: 188.4 kB / 441.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.0975, allocations: 0.6924 MB / 442.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.09754, allocations: 15.38 kB / 442.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09755, allocations: 0 / 442.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of Templates: time 0.00223/0.09978, allocations: 0.8253 MB / 443.5 MB, free: 5.551 MB / 318.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)