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.001412/0.001412, allocations: 117.5 kB / 16.42 MB, free: 6.5 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.00159/0.00159, allocations: 182.5 kB / 17.35 MB, free: 5.727 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1567/0.1567, allocations: 22.33 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.89 kB / 437.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09763, allocations: 54.96 MB / 492.7 MB, free: 4.852 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.3637/0.4614, allocations: 25.3 MB / 0.5059 GB, free: 4.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002685/0.4641, allocations: 1.634 MB / 0.5075 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.4644, allocations: 20.34 kB / 0.5075 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.4647, allocations: 238.2 kB / 0.5077 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007877/0.4655, allocations: 0.6276 MB / 0.5083 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.4664, allocations: 430.2 kB / 0.5087 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002788/0.4692, allocations: 3.067 MB / 0.5117 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00266/0.4719, allocations: 2.283 MB / 0.5139 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001811/0.4737, allocations: 1.209 MB / 0.5151 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00201/0.4757, allocations: 1.506 MB / 0.5166 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005/0.4762, allocations: 355.7 kB / 0.5169 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006085/0.4768, allocations: 356.2 kB / 0.5173 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.4779, allocations: 1.014 MB / 0.5183 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001752/0.4796, allocations: 1.341 MB / 0.5196 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003725/0.4834, allocations: 3.852 MB / 0.5233 GB, free: 372 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.4834, allocations: 1.406 kB / 0.5233 GB, free: 372 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4834, allocations: 0 / 0.5233 GB, free: 372 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.629e-05/0.4835, allocations: 0 / 0.5233 GB, free: 372 kB / 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.007707/0.4912, allocations: 2.878 MB / 0.5262 GB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4912, allocations: 8.562 kB / 0.5262 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004968/0.4917, allocations: 216.2 kB / 0.5264 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.4936, allocations: 1.197 MB / 0.5275 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.4937, allocations: 119.9 kB / 0.5277 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003755/0.4941, allocations: 191.5 kB / 0.5278 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003982/0.4981, allocations: 2.329 MB / 0.5301 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.4981, allocations: 4 kB / 0.5301 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.4983, allocations: 65.56 kB / 0.5302 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.4984, allocations: 38.12 kB / 0.5302 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003734/0.5021, allocations: 2.213 MB / 0.5324 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/0.5184, allocations: 10.85 MB / 0.543 GB, free: 2.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007978/0.5264, allocations: 3.268 MB / 0.5462 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001802/0.5282, allocations: 1.253 MB / 0.5474 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001247/0.5284, allocations: 22 kB / 0.5474 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.5284, allocations: 51 kB / 0.5475 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009604/0.5294, allocations: 159.9 kB / 0.5476 GB, free: 15.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=166): time 6.052e-06/0.5294, allocations: 3.938 kB / 0.5476 GB, free: 15.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.01361/0.543, allocations: 6.874 MB / 0.5543 GB, free: 10.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.5431, allocations: 70.34 kB / 0.5544 GB, free: 10.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001375/0.5445, allocations: 0.8609 MB / 0.5552 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000262/0.5448, allocations: 57.3 kB / 0.5553 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/0.5452, allocations: 0.6279 MB / 0.5559 GB, free: 9.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008711/0.5461, allocations: 0.6735 MB / 0.5566 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008665/0.547, allocations: 331.5 kB / 0.5569 GB, free: 8.977 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.5471, allocations: 301.1 kB / 0.5572 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002044/0.5491, allocations: 1.222 MB / 0.5583 GB, free: 8.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00205/0.5512, allocations: 1.407 MB / 0.5597 GB, free: 7.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003962/0.5552, allocations: 2.721 MB / 0.5624 GB, free: 5.801 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.283e-06/0.5552, allocations: 3.938 kB / 0.5624 GB, free: 5.797 MB / 414.1 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.007925/0.5631, allocations: 3.996 MB / 0.5663 GB, free: 2.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.5632, allocations: 4 kB / 0.5663 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5632, allocations: 4 kB / 0.5663 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004146/0.5673, allocations: 1.182 MB / 0.5674 GB, free: 1.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5696, allocations: 475.4 kB / 0.5679 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02974/0.5994, allocations: 37.88 MB / 0.6049 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002469/0.6019, allocations: 91.91 kB / 0.605 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007828/0.6027, allocations: 68.2 kB / 0.605 GB, free: 7.227 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.001723/0.6044, allocations: 0.5255 MB / 0.6056 GB, free: 6.691 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000802/0.6053, allocations: 139.1 kB / 0.6057 GB, free: 6.555 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008167/0.6134, allocations: 3.54 MB / 0.6091 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/0.6135, allocations: 11.97 kB / 0.6092 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.6135, allocations: 0 / 0.6092 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005686/0.6141, allocations: 228.2 kB / 0.6094 GB, free: 2.684 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000479/0.6146, allocations: 83.97 kB / 0.6095 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.616, allocations: 83.91 kB / 0.6095 GB, free: 2.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004857/0.6165, allocations: 169.6 kB / 0.6097 GB, free: 2.355 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01282/0.6293, allocations: 5.002 MB / 0.6146 GB, free: 13.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006853/0.6362, allocations: 4.42 MB / 0.6189 GB, free: 8.871 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001945/0.6381, allocations: 1.448 MB / 0.6203 GB, free: 7.426 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009342/0.6391, allocations: 0.5966 MB / 0.6209 GB, free: 6.828 MB / 478.1 MB Notification: Performance of Backend: time 8.02e-07/0.6391, allocations: 0 / 0.6209 GB, free: 6.828 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007452/0.6466, allocations: 4.709 MB / 0.6255 GB, free: 1.82 MB / 478.1 MB Notification: Performance of SimCode: time 0.01029/0.6569, allocations: 7.547 MB / 0.6329 GB, free: 10.23 MB / 494.1 MB Notification: Performance of Templates: time 0.06225/0.7192, allocations: 39.34 MB / 0.6713 GB, free: 3.09 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)