Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.00102/0.00102, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001282/0.001282, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.658/1.658, allocations: 252 MB / 0.5102 GB, free: 4.824 MB / 414.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.0006269/0.000627, allocations: 15.98 kB / 0.6243 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5439/0.5446, allocations: 106.3 MB / 0.7281 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05393/0.5985, allocations: 57.8 MB / 0.7846 GB, free: 1.445 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01805/0.6166, allocations: 12.96 MB / 0.7972 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/0.6193, allocations: 51.69 kB / 0.7973 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.003167/0.6225, allocations: 0.7844 MB / 0.798 GB, free: 3.617 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.006946/0.6294, allocations: 1.852 MB / 0.7999 GB, free: 1.758 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.004438/0.6339, allocations: 1.148 MB / 0.801 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00755/0.6415, allocations: 4.657 MB / 0.8055 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/0.6437, allocations: 1.044 MB / 0.8065 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003777/0.6475, allocations: 1.318 MB / 0.8078 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002353/0.6499, allocations: 1.167 MB / 0.809 GB, free: 8.383 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002709/0.6502, allocations: 72 kB / 0.809 GB, free: 8.312 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003101/0.6533, allocations: 0.9628 MB / 0.81 GB, free: 7.348 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.6538, allocations: 386.5 kB / 0.8103 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006934/0.6545, allocations: 380.8 kB / 0.8107 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.6575, allocations: 2.287 MB / 0.8129 GB, free: 4.297 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.6576, allocations: 0 / 0.8129 GB, free: 4.297 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6576, allocations: 0 / 0.8129 GB, free: 4.297 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.684e-05/0.6576, allocations: 0 / 0.8129 GB, free: 4.297 MB / 0.6231 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.004258/0.6619, allocations: 2.037 MB / 0.8149 GB, free: 2.207 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.6619, allocations: 8.031 kB / 0.8149 GB, free: 2.199 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.6632, allocations: 349.5 kB / 0.8153 GB, free: 1.855 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/0.6655, allocations: 1.366 MB / 0.8166 GB, free: 448 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.6657, allocations: 157.5 kB / 0.8168 GB, free: 276 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.6659, allocations: 108 kB / 0.8169 GB, free: 168 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/0.6687, allocations: 1.473 MB / 0.8183 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.85e-05/0.6687, allocations: 7.938 kB / 0.8183 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.6688, allocations: 43.98 kB / 0.8183 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.634e-05/0.6689, allocations: 32 kB / 0.8184 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003066/0.6719, allocations: 1.429 MB / 0.8198 GB, free: 13.09 MB / 0.6387 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.008914/0.6809, allocations: 6.627 MB / 0.8262 GB, free: 6.016 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/0.6829, allocations: 1.224 MB / 0.8274 GB, free: 4.707 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.6842, allocations: 0.6086 MB / 0.828 GB, free: 4.098 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009024/0.6851, allocations: 1.149 MB / 0.8292 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.6851, allocations: 43.16 kB / 0.8292 GB, free: 2.637 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 2.634e-06/0.6851, allocations: 0 / 0.8292 GB, free: 2.637 MB / 0.6387 GB Notification: Performance of matching and sorting (n=77): time 0.004015/0.6892, allocations: 1.73 MB / 0.8309 GB, free: 0.9023 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.6893, allocations: 115.4 kB / 0.831 GB, free: 0.7656 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/0.6913, allocations: 1.373 MB / 0.8323 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.6914, allocations: 37.7 kB / 0.8324 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005814/0.692, allocations: 0.7124 MB / 0.8331 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.6923, allocations: 272.1 kB / 0.8333 GB, free: 14.35 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.535e-05/0.6923, allocations: 12 kB / 0.8333 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.6925, allocations: 342 kB / 0.8337 GB, free: 14 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.6937, allocations: 0.5289 MB / 0.8342 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.695, allocations: 0.7745 MB / 0.8349 GB, free: 12.6 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.6963, allocations: 0.5806 MB / 0.8355 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.6963, allocations: 8 kB / 0.8355 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003256/0.6996, allocations: 1.433 MB / 0.8369 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.6998, allocations: 228.8 kB / 0.8371 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.6998, allocations: 4 kB / 0.8371 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.6998, allocations: 12 kB / 0.8371 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.701, allocations: 303.5 kB / 0.8374 GB, free: 9.965 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/0.7011, allocations: 11.94 kB / 0.8374 GB, free: 9.953 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.7027, allocations: 226.9 kB / 0.8377 GB, free: 9.73 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.7028, allocations: 35.98 kB / 0.8377 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.7029, allocations: 0 / 0.8377 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002958/0.7058, allocations: 1.292 MB / 0.839 GB, free: 8.402 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.7059, allocations: 12 kB / 0.839 GB, free: 8.391 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.7059, allocations: 8 kB / 0.839 GB, free: 8.383 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.7071, allocations: 296.2 kB / 0.8393 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.7071, allocations: 12 kB / 0.8393 GB, free: 8.082 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.7085, allocations: 211 kB / 0.8395 GB, free: 7.875 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.634e-05/0.7086, allocations: 35.98 kB / 0.8395 GB, free: 7.84 MB / 0.6544 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 (reaToInt.y,intGreThr.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00088/0.7095, allocations: 472.7 kB / 0.84 GB, free: 7.367 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002747/0.7098, allocations: 150.2 kB / 0.8401 GB, free: 7.219 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.7131, allocations: 1.571 MB / 0.8416 GB, free: 5.617 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.7131, allocations: 8 kB / 0.8416 GB, free: 5.609 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.7131, allocations: 3.938 kB / 0.8416 GB, free: 5.605 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00246/0.7156, allocations: 1.203 MB / 0.8428 GB, free: 4.375 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006243/0.7218, allocations: 3.133 MB / 0.8459 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.7219, allocations: 4 kB / 0.8459 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009303/0.7228, allocations: 224.2 kB / 0.8461 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-05/0.7228, allocations: 11.95 kB / 0.8461 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.651e-05/0.7229, allocations: 23.98 kB / 0.8461 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.7229, allocations: 8 kB / 0.8461 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.7229, allocations: 7.938 kB / 0.8462 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004471/0.7274, allocations: 2.201 MB / 0.8483 GB, free: 14.57 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008949/0.7283, allocations: 386.9 kB / 0.8487 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.7286, allocations: 23.94 kB / 0.8487 GB, free: 14.15 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.7298, allocations: 165.1 kB / 0.8488 GB, free: 13.99 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.73, allocations: 92.28 kB / 0.8489 GB, free: 13.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.044e-05/0.7301, allocations: 43.95 kB / 0.849 GB, free: 13.86 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001508/0.7316, allocations: 0.9752 MB / 0.8499 GB, free: 12.89 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7316, allocations: 0 / 0.8499 GB, free: 12.89 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002177/0.7338, allocations: 0.8029 MB / 0.8507 GB, free: 12.08 MB / 0.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001128/0.7349, allocations: 429.5 kB / 0.8511 GB, free: 11.66 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004369/0.7393, allocations: 1.955 MB / 0.853 GB, free: 9.711 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.7393, allocations: 0 / 0.853 GB, free: 9.711 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.741, allocations: 0.6874 MB / 0.8537 GB, free: 9.023 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003569/0.7446, allocations: 0.6774 MB / 0.8544 GB, free: 8.355 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005315/0.7499, allocations: 3.246 MB / 0.8575 GB, free: 5.023 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.751, allocations: 1.277 MB / 0.8588 GB, free: 3.715 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.00201/0.7531, allocations: 383 kB / 0.8591 GB, free: 3.336 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.7535, allocations: 119.4 kB / 0.8593 GB, free: 3.219 MB / 0.67 GB Notification: Performance of SimCode: time 1.874e-06/0.7535, allocations: 0 / 0.8593 GB, free: 3.219 MB / 0.67 GB Notification: Performance of Templates: time 0.05031/0.8038, allocations: 27.75 MB / 0.8864 GB, free: 7.836 MB / 0.7012 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) Environment - environmentSimulation: