Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 105.6 kB / 15.99 MB, free: 5.895 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.001278/0.001278, allocations: 190.1 kB / 16.91 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.1 MB / 222.8 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.695/1.695, allocations: 292.3 MB / 0.5492 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 69.36 kB / 0.6716 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2352, allocations: 114.5 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06/0.2953, allocations: 62.1 MB / 0.8441 GB, free: 15.6 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0191/0.3144, allocations: 13.49 MB / 0.8573 GB, free: 2.074 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003052/0.3175, allocations: 55.69 kB / 0.8574 GB, free: 2.02 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.3209, allocations: 0.8355 MB / 0.8582 GB, free: 1.18 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.007367/0.3283, allocations: 2.193 MB / 0.8603 GB, free: 14.97 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004773/0.3331, allocations: 1.513 MB / 0.8618 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.00659/0.3397, allocations: 4.266 MB / 0.866 GB, free: 9.199 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002435/0.3421, allocations: 1.406 MB / 0.8673 GB, free: 7.75 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004559/0.3467, allocations: 1.671 MB / 0.869 GB, free: 6.082 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002504/0.3493, allocations: 1.33 MB / 0.8703 GB, free: 4.746 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.3498, allocations: 176 kB / 0.8704 GB, free: 4.574 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00362/0.3534, allocations: 1.439 MB / 0.8719 GB, free: 3.133 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0007048/0.3541, allocations: 0.5101 MB / 0.8723 GB, free: 2.621 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.3558, allocations: 1.003 MB / 0.8733 GB, free: 1.613 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.00399/0.3598, allocations: 2.46 MB / 0.8757 GB, free: 15.15 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.3599, allocations: 4 kB / 0.8757 GB, free: 15.14 MB / 0.7012 GB Notification: Performance of FrontEnd: time 3.156e-06/0.3599, allocations: 0 / 0.8757 GB, free: 15.14 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 6.239e-05/0.36, allocations: 0 / 0.8757 GB, free: 15.14 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.00547/0.3655, allocations: 2.333 MB / 0.878 GB, free: 12.76 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3655, allocations: 12.03 kB / 0.878 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001488/0.367, allocations: 318.4 kB / 0.8783 GB, free: 12.43 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002619/0.3696, allocations: 1.428 MB / 0.8797 GB, free: 10.95 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.3698, allocations: 157.5 kB / 0.8799 GB, free: 10.79 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.3701, allocations: 108 kB / 0.88 GB, free: 10.68 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003027/0.3731, allocations: 1.441 MB / 0.8814 GB, free: 9.148 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.3732, allocations: 4 kB / 0.8814 GB, free: 9.145 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.3733, allocations: 48 kB / 0.8814 GB, free: 9.098 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.784e-05/0.3733, allocations: 31.94 kB / 0.8815 GB, free: 9.066 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/0.3765, allocations: 1.343 MB / 0.8828 GB, free: 7.723 MB / 0.7012 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.008902/0.3854, allocations: 6.612 MB / 0.8892 GB, free: 0.6719 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.3877, allocations: 1.175 MB / 0.8904 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001315/0.389, allocations: 0.5571 MB / 0.8909 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008761/0.3899, allocations: 1.145 MB / 0.892 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/0.39, allocations: 51.81 kB / 0.8921 GB, free: 13.4 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=77): time 2.856e-06/0.39, allocations: 0 / 0.8921 GB, free: 13.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=77): time 0.004325/0.3944, allocations: 1.585 MB / 0.8936 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.3945, allocations: 111.5 kB / 0.8937 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002034/0.3965, allocations: 1.388 MB / 0.8951 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002253/0.3967, allocations: 45.7 kB / 0.8951 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005664/0.3973, allocations: 0.7085 MB / 0.8958 GB, free: 9.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/0.3977, allocations: 264.2 kB / 0.8961 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.398, allocations: 178.5 kB / 0.8963 GB, free: 9.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3981, allocations: 341.9 kB / 0.8966 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.3994, allocations: 0.4888 MB / 0.8971 GB, free: 8.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.4008, allocations: 0.723 MB / 0.8978 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.4034, allocations: 1.137 MB / 0.8989 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4034, allocations: 0 / 0.8989 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003522/0.407, allocations: 1.355 MB / 0.9002 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.407, allocations: 4 kB / 0.9002 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.407, allocations: 8 kB / 0.9002 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.4071, allocations: 8 kB / 0.9002 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.4083, allocations: 271.7 kB / 0.9005 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.4084, allocations: 8 kB / 0.9005 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.4099, allocations: 198.8 kB / 0.9007 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.4101, allocations: 43.92 kB / 0.9007 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001766/0.4118, allocations: 0.7953 MB / 0.9015 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001419/0.4133, allocations: 0.7152 MB / 0.9022 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002384/0.4157, allocations: 1.129 MB / 0.9033 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.833e-06/0.4157, allocations: 4 kB / 0.9033 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003309/0.419, allocations: 1.343 MB / 0.9046 GB, free: 172 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.419, allocations: 4 kB / 0.9046 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.4191, allocations: 8 kB / 0.9046 GB, free: 160 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.4191, allocations: 8.562 kB / 0.9046 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.4203, allocations: 267.6 kB / 0.9049 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.4203, allocations: 19.92 kB / 0.9049 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.4219, allocations: 175.2 kB / 0.9051 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.422, allocations: 43.92 kB / 0.9051 GB, free: 15.65 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (intGreThr.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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 0.0003641/0.4224, allocations: 232.1 kB / 0.9053 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003694/0.4228, allocations: 146.2 kB / 0.9055 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.4261, allocations: 1.481 MB / 0.9069 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.4261, allocations: 8 kB / 0.9069 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4261, allocations: 0 / 0.9069 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002452/0.4286, allocations: 1.113 MB / 0.908 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.4347, allocations: 3.082 MB / 0.911 GB, free: 9.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/0.4348, allocations: 8 kB / 0.911 GB, free: 9.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009604/0.4357, allocations: 192.3 kB / 0.9112 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.335e-05/0.4358, allocations: 8 kB / 0.9112 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.423e-05/0.4358, allocations: 23.98 kB / 0.9112 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.4358, allocations: 8 kB / 0.9113 GB, free: 9.176 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.4359, allocations: 11.88 kB / 0.9113 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00461/0.4405, allocations: 2.068 MB / 0.9133 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009194/0.4414, allocations: 378.8 kB / 0.9136 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004081/0.4419, allocations: 23.94 kB / 0.9137 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.4433, allocations: 139.8 kB / 0.9138 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.4435, allocations: 84.34 kB / 0.9139 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.4436, allocations: 47.91 kB / 0.9139 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00169/0.4453, allocations: 1.064 MB / 0.915 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4453, allocations: 0 / 0.915 GB, free: 5.273 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002459/0.4478, allocations: 0.7915 MB / 0.9157 GB, free: 4.48 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001127/0.4489, allocations: 470.1 kB / 0.9162 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00486/0.4538, allocations: 1.873 MB / 0.918 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/0.4539, allocations: 4 kB / 0.918 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.4554, allocations: 0.6171 MB / 0.9186 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004429/0.4599, allocations: 0.8342 MB / 0.9194 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.393/0.8529, allocations: 3.342 MB / 0.9227 GB, free: 133.2 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000947/0.8539, allocations: 1.27 MB / 0.9239 GB, free: 132.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008358/0.8548, allocations: 137.2 kB / 0.9241 GB, free: 132.5 MB / 0.7325 GB Notification: Performance of SimCode: time 1.142e-06/0.8548, allocations: 0 / 0.9241 GB, free: 132.5 MB / 0.7325 GB Notification: Performance of Templates: time 0.05226/0.907, allocations: 28.46 MB / 0.9519 GB, free: 122.8 MB / 0.7325 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)