Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002") translateModel(AES.Coursework.ThermSys_component_models.HeatPump_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 113 kB / 16.42 MB, free: 6.504 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.001567/0.001567, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.304/1.304, allocations: 222.9 MB / 241.1 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.09406/0.09406, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 71.88 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08935, allocations: 54.96 MB / 492.7 MB, free: 4.758 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatPump_case_002): time 0.3664/0.4557, allocations: 25.29 MB / 0.5058 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.4587, allocations: 1.642 MB / 0.5075 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.459, allocations: 23.44 kB / 0.5075 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.4594, allocations: 238.4 kB / 0.5077 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007835/0.4602, allocations: 0.6242 MB / 0.5083 GB, free: 4.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009281/0.4612, allocations: 429.6 kB / 0.5087 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.4636, allocations: 3.066 MB / 0.5117 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002518/0.4662, allocations: 2.279 MB / 0.5139 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.4676, allocations: 1.212 MB / 0.5151 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.4695, allocations: 1.502 MB / 0.5166 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004573/0.47, allocations: 358.4 kB / 0.5169 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005894/0.4706, allocations: 357.9 kB / 0.5173 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009436/0.4715, allocations: 1.015 MB / 0.5183 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001398/0.4729, allocations: 1.342 MB / 0.5196 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002929/0.4759, allocations: 3.845 MB / 0.5233 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4759, allocations: 0 / 0.5233 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4759, allocations: 1.344 kB / 0.5233 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.278e-05/0.4759, allocations: 0 / 0.5233 GB, free: 0.6055 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 405 * Number of variables: 405 Notification: Performance of Generate backend data structure: time 0.007033/0.483, allocations: 2.877 MB / 0.5261 GB, free: 14.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.483, allocations: 9.625 kB / 0.5262 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.4835, allocations: 215.8 kB / 0.5264 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.4854, allocations: 1.2 MB / 0.5275 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.15e-05/0.4855, allocations: 123.5 kB / 0.5276 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003619/0.4859, allocations: 187.6 kB / 0.5278 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004128/0.49, allocations: 2.336 MB / 0.5301 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.4901, allocations: 1.344 kB / 0.5301 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002105/0.4903, allocations: 64.38 kB / 0.5302 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-05/0.4903, allocations: 38.34 kB / 0.5302 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003732/0.4941, allocations: 2.21 MB / 0.5324 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.5096, allocations: 10.85 MB / 0.543 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00764/0.5173, allocations: 3.272 MB / 0.5462 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.519, allocations: 1.253 MB / 0.5474 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.5192, allocations: 23.91 kB / 0.5474 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.5192, allocations: 56.42 kB / 0.5475 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009387/0.5202, allocations: 153.7 kB / 0.5476 GB, free: 52 kB / 398.1 MB Notification: Performance of pre-optimization done (n=166): time 3.737e-06/0.5202, allocations: 0 / 0.5476 GB, free: 52 kB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.01338/0.5336, allocations: 6.879 MB / 0.5543 GB, free: 11.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.5336, allocations: 66.69 kB / 0.5544 GB, free: 11.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.5348, allocations: 0.8602 MB / 0.5552 GB, free: 10.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.535, allocations: 52.86 kB / 0.5553 GB, free: 10.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004055/0.5354, allocations: 0.6307 MB / 0.5559 GB, free: 9.969 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006249/0.536, allocations: 0.67 MB / 0.5565 GB, free: 9.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006005/0.5366, allocations: 330.3 kB / 0.5569 GB, free: 9.207 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.025e-05/0.5367, allocations: 304.6 kB / 0.5572 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001734/0.5385, allocations: 1.219 MB / 0.5583 GB, free: 8.277 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/0.5403, allocations: 1.409 MB / 0.5597 GB, free: 7.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003603/0.544, allocations: 2.72 MB / 0.5624 GB, free: 6.031 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.544, allocations: 0 / 0.5624 GB, free: 6.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.00768/0.5517, allocations: 3.998 MB / 0.5663 GB, free: 2.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.5517, allocations: 8 kB / 0.5663 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.5517, allocations: 4 kB / 0.5663 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00407/0.5558, allocations: 1.174 MB / 0.5674 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.5581, allocations: 479.4 kB / 0.5679 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02934/0.5875, allocations: 37.88 MB / 0.6049 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.5895, allocations: 96.16 kB / 0.605 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/0.5897, allocations: 63.97 kB / 0.605 GB, free: 7.363 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (196): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 23 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 22 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (4,7,62.5%), (4,7,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0009939/0.5907, allocations: 0.5214 MB / 0.6056 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.591, allocations: 135.2 kB / 0.6057 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007052/0.598, allocations: 3.548 MB / 0.6091 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.5981, allocations: 11.97 kB / 0.6092 GB, free: 3.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5981, allocations: 4 kB / 0.6092 GB, free: 3.059 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004306/0.5985, allocations: 224.2 kB / 0.6094 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.5988, allocations: 95.95 kB / 0.6095 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6, allocations: 71.91 kB / 0.6095 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003672/0.6003, allocations: 169.6 kB / 0.6097 GB, free: 2.492 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01252/0.6129, allocations: 5.001 MB / 0.6146 GB, free: 13.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006255/0.6191, allocations: 4.42 MB / 0.6189 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0019/0.621, allocations: 1.448 MB / 0.6203 GB, free: 7.566 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008277/0.6219, allocations: 0.5966 MB / 0.6209 GB, free: 6.969 MB / 478.1 MB Notification: Performance of Backend: time 5.41e-07/0.6219, allocations: 0 / 0.6209 GB, free: 6.969 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006644/0.6285, allocations: 4.708 MB / 0.6255 GB, free: 1.965 MB / 478.1 MB Notification: Performance of SimCode: time 0.009062/0.6376, allocations: 7.55 MB / 0.6329 GB, free: 10.38 MB / 494.1 MB Notification: Performance of Templates: time 0.05705/0.6947, allocations: 39.33 MB / 0.6713 GB, free: 3.242 MB / 0.5138 GB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatPump_case_002.pipe 2>&1)