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.001289/0.001289, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001305/0.001305, allocations: 190.2 kB / 16.25 MB, free: 6.637 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.297/1.297, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1951/0.1951, allocations: 22.37 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.89 kB / 380.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2527, allocations: 54.93 MB / 435.2 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_001): time 0.002458/0.2552, allocations: 1.737 MB / 437 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001905/0.2555, allocations: 60.48 kB / 437 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.861e-05/0.2555, allocations: 2.875 kB / 437 MB, free: 38.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.198e-05/0.2556, allocations: 7.266 kB / 437.1 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.2557, allocations: 17.98 kB / 437.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.564e-05/0.2558, allocations: 13.88 kB / 437.1 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.926e-05/0.2559, allocations: 87.83 kB / 437.2 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.2561, allocations: 39.83 kB / 437.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.843e-05/0.2561, allocations: 32.59 kB / 437.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.301e-05/0.2562, allocations: 37.73 kB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.2562, allocations: 5.438 kB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.748e-05/0.2562, allocations: 7.594 kB / 437.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.888e-05/0.2563, allocations: 11.33 kB / 437.3 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.2563, allocations: 44 kB / 437.3 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.2564, allocations: 79.58 kB / 437.4 MB, free: 38.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2564, allocations: 0 / 437.4 MB, free: 38.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2564, allocations: 3.422 kB / 437.4 MB, free: 38.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.2564, allocations: 0 / 437.4 MB, free: 38.18 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.0003837/0.2568, allocations: 364.3 kB / 437.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.2569, allocations: 16.12 kB / 437.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.2569, allocations: 14.81 kB / 437.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.476e-05/0.257, allocations: 175 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.257, allocations: 7.656 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.257, allocations: 14.38 kB / 438 MB, free: 37.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.2572, allocations: 92 kB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2572, allocations: 0 / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.2572, allocations: 0 / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2572, allocations: 2.844 kB / 438.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.152e-05/0.2573, allocations: 49.53 kB / 438.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004254/0.2577, allocations: 453.4 kB / 438.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.395e-05/0.2578, allocations: 57.83 kB / 438.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.266e-05/0.2579, allocations: 27.36 kB / 438.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.2579, allocations: 0 / 438.7 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.061e-05/0.2579, allocations: 30.56 kB / 438.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.2579, allocations: 0 / 438.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001537/0.2581, allocations: 80.44 kB / 438.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.924e-05/0.2581, allocations: 59.34 kB / 438.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.845e-05/0.2582, allocations: 105.8 kB / 438.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.662e-06/0.2582, allocations: 25.7 kB / 439 MB, free: 36.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.2582, allocations: 112.5 kB / 439.1 MB, free: 36.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.087e-05/0.2582, allocations: 14.69 kB / 439.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.2583, allocations: 28.62 kB / 439.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.554e-05/0.2583, allocations: 310.8 kB / 439.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.547e-05/0.2583, allocations: 17.66 kB / 439.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.134e-05/0.2584, allocations: 37.44 kB / 439.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.728e-05/0.2584, allocations: 62.86 kB / 439.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2584, allocations: 0 / 439.5 MB, free: 36.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.659e-05/0.2585, allocations: 87.48 kB / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.2586, allocations: 7.531 kB / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2586, allocations: 0 / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.2586, allocations: 2.531 kB / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.536e-05/0.2587, allocations: 17.77 kB / 439.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.2587, allocations: 7.938 kB / 439.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.138e-05/0.2587, allocations: 7.062 kB / 439.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.2588, allocations: 2.875 kB / 439.7 MB, free: 36.12 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 4.715e-05/0.2588, allocations: 128.3 kB / 439.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.2588, allocations: 10.78 kB / 439.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.259, allocations: 75.08 kB / 439.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.259, allocations: 6.594 kB / 439.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.259, allocations: 3.938 kB / 439.9 MB, free: 35.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.259, allocations: 0 / 439.9 MB, free: 35.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001255/0.2591, allocations: 186.4 kB / 440.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2591, allocations: 3.375 kB / 440.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.2592, allocations: 15.44 kB / 440.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2592, allocations: 0 / 440.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.2592, allocations: 4 kB / 440.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2592, allocations: 2.656 kB / 440.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2592, allocations: 3.938 kB / 440.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.214e-05/0.2593, allocations: 166.5 kB / 440.3 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.874e-05/0.2593, allocations: 84.03 kB / 440.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.2594, allocations: 0 / 440.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.898e-05/0.2594, allocations: 0 / 440.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.2594, allocations: 10.27 kB / 440.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.2595, allocations: 11.12 kB / 440.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.17e-05/0.2595, allocations: 78.28 kB / 440.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2595, allocations: 0 / 440.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000225/0.2597, allocations: 25.22 kB / 440.5 MB, free: 35.36 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 8.116e-05/0.2598, allocations: 101.2 kB / 440.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.2599, allocations: 47.89 kB / 440.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2599, allocations: 3.938 kB / 440.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.526e-05/0.26, allocations: 20.92 kB / 440.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.2602, allocations: 10.11 kB / 440.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.2606, allocations: 201.8 kB / 440.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.2607, allocations: 0.6918 MB / 441.5 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.295e-05/0.2608, allocations: 8.391 kB / 441.5 MB, free: 34.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.2608, allocations: 10.25 kB / 441.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2608, allocations: 0 / 441.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of Templates: time 0.002286/0.2631, allocations: 488.9 kB / 442 MB, free: 34.29 MB / 350.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)