Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.331/1.331, allocations: 251.5 MB / 267.4 MB, free: 11.08 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 186.4 kB / 326.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205 MB / 0.5766 GB, free: 21.04 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008052/0.0008051, allocations: 89.47 kB / 0.6804 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.000333, allocations: 8.906 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2134, allocations: 105.4 MB / 0.8967 GB, free: 68.24 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.05108/0.2645, allocations: 74.41 MB / 0.9694 GB, free: 9.57 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01968/0.2843, allocations: 15.07 MB / 0.9841 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002927/0.2873, allocations: 59.62 kB / 0.9842 GB, free: 10.4 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.2899, allocations: 0.6682 MB / 0.9848 GB, free: 9.73 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.007483/0.2974, allocations: 2.357 MB / 0.9871 GB, free: 7.363 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.003863/0.3013, allocations: 1.245 MB / 0.9883 GB, free: 6.129 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.008312/0.3096, allocations: 5.526 MB / 0.9937 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001923/0.3115, allocations: 1.128 MB / 0.9948 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002929/0.3145, allocations: 1.349 MB / 0.9962 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.3163, allocations: 1.143 MB / 0.9973 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.3165, allocations: 60 kB / 0.9973 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002803/0.3193, allocations: 1.236 MB / 0.9985 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0003223/0.3196, allocations: 286.6 kB / 0.9988 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0009839/0.3206, allocations: 0.7771 MB / 0.9996 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.002851/0.3235, allocations: 2.147 MB / 1.002 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3235, allocations: 0 / 1.002 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3235, allocations: 0 / 1.002 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.053e-05/0.3235, allocations: 0 / 1.002 GB, free: 8.414 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003443/0.327, allocations: 1.785 MB / 1.003 GB, free: 6.562 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.327, allocations: 8.031 kB / 1.003 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008118/0.3279, allocations: 246.7 kB / 1.004 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.3303, allocations: 1.482 MB / 1.005 GB, free: 4.777 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.3304, allocations: 81.94 kB / 1.005 GB, free: 4.695 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.3305, allocations: 104 kB / 1.005 GB, free: 4.594 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.3325, allocations: 1.112 MB / 1.006 GB, free: 3.449 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.3325, allocations: 3.938 kB / 1.006 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.712e-05/0.3326, allocations: 36 kB / 1.006 GB, free: 3.41 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.678e-05/0.3326, allocations: 28 kB / 1.006 GB, free: 3.383 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.3345, allocations: 0.9329 MB / 1.007 GB, free: 2.445 MB / 0.6511 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006222/0.3407, allocations: 4.907 MB / 1.012 GB, free: 13.25 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3422, allocations: 0.657 MB / 1.013 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006877/0.3429, allocations: 366.3 kB / 1.013 GB, free: 12.22 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006417/0.3435, allocations: 0.8316 MB / 1.014 GB, free: 11.21 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.3436, allocations: 35.12 kB / 1.014 GB, free: 11.16 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=61): time 3.166e-06/0.3436, allocations: 4 kB / 1.014 GB, free: 11.16 MB / 0.6667 GB Notification: Performance of matching and sorting (n=61): time 0.007148/0.3507, allocations: 1.896 MB / 1.016 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.3508, allocations: 59.97 kB / 1.016 GB, free: 9.16 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/0.3527, allocations: 1.206 MB / 1.017 GB, free: 7.938 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.3528, allocations: 41.7 kB / 1.017 GB, free: 7.891 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005061/0.3533, allocations: 0.6065 MB / 1.018 GB, free: 7.277 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002104/0.3535, allocations: 216.9 kB / 1.018 GB, free: 7.062 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.3536, allocations: 65.69 kB / 1.018 GB, free: 6.992 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3538, allocations: 326 kB / 1.018 GB, free: 6.668 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006404/0.3544, allocations: 305.8 kB / 1.019 GB, free: 6.371 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008224/0.3552, allocations: 0.5162 MB / 1.019 GB, free: 5.773 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3567, allocations: 0.7558 MB / 1.02 GB, free: 4.973 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3568, allocations: 4 kB / 1.02 GB, free: 4.969 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004818/0.3616, allocations: 1.414 MB / 1.021 GB, free: 3.543 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.3618, allocations: 194 kB / 1.021 GB, free: 3.301 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3618, allocations: 7.984 kB / 1.021 GB, free: 3.293 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005958/0.3624, allocations: 140.8 kB / 1.022 GB, free: 3.152 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/0.363, allocations: 171.7 kB / 1.022 GB, free: 2.984 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008666/0.3639, allocations: 0.7162 MB / 1.022 GB, free: 2.242 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.3654, allocations: 171.8 kB / 1.023 GB, free: 2.074 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.816e-05/0.3655, allocations: 35.98 kB / 1.023 GB, free: 2.039 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.3655, allocations: 7.938 kB / 1.023 GB, free: 2.031 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004529/0.37, allocations: 1.253 MB / 1.024 GB, free: 0.7734 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3701, allocations: 0 / 1.024 GB, free: 0.7734 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005647/0.3707, allocations: 148.8 kB / 1.024 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006342/0.3713, allocations: 163.8 kB / 1.024 GB, free: 476 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009059/0.3722, allocations: 0.7239 MB / 1.025 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.3737, allocations: 163.2 kB / 1.025 GB, free: 15.55 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.3738, allocations: 31.98 kB / 1.025 GB, free: 15.52 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0008252/0.3746, allocations: 414.4 kB / 1.025 GB, free: 15.11 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.375, allocations: 138.3 kB / 1.026 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/0.3795, allocations: 1.404 MB / 1.027 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.67e-05/0.3796, allocations: 8 kB / 1.027 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3796, allocations: 0 / 1.027 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004089/0.3837, allocations: 1.232 MB / 1.028 GB, free: 12.28 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006878/0.3906, allocations: 2.739 MB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.3906, allocations: 8 kB / 1.031 GB, free: 9.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.3911, allocations: 123.8 kB / 1.031 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004853/0.3916, allocations: 144.9 kB / 1.031 GB, free: 9.156 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.595e-05/0.3916, allocations: 16 kB / 1.031 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004715/0.3964, allocations: 2.478 MB / 1.033 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.3964, allocations: 7.938 kB / 1.033 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005456/0.4018, allocations: 1.855 MB / 1.035 GB, free: 4.574 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008435/0.4027, allocations: 303.2 kB / 1.036 GB, free: 4.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.4029, allocations: 23.92 kB / 1.036 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008515/0.4038, allocations: 95.88 kB / 1.036 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.4039, allocations: 56.25 kB / 1.036 GB, free: 4.086 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.857e-05/0.404, allocations: 31.97 kB / 1.036 GB, free: 4.055 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001251/0.4052, allocations: 0.866 MB / 1.037 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4052, allocations: 0 / 1.037 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001882/0.4071, allocations: 0.7096 MB / 1.037 GB, free: 2.477 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009188/0.4081, allocations: 438.8 kB / 1.038 GB, free: 2.047 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002671/0.4107, allocations: 1.172 MB / 1.039 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.4108, allocations: 4.188 kB / 1.039 GB, free: 0.875 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.4123, allocations: 0.5953 MB / 1.039 GB, free: 276 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004385/0.4167, allocations: 0.7996 MB / 1.04 GB, free: 15.48 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.421, allocations: 2.794 MB / 1.043 GB, free: 12.61 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007034/0.4217, allocations: 1.169 MB / 1.044 GB, free: 11.42 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003987/0.4221, allocations: 115.4 kB / 1.044 GB, free: 11.3 MB / 0.698 GB Notification: Performance of SimCode: time 9.42e-07/0.4221, allocations: 4 kB / 1.044 GB, free: 11.3 MB / 0.698 GB Notification: Performance of Templates: time 0.4117/0.8339, allocations: 30.7 MB / 1.074 GB, free: 142.4 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)