Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001351/0.001351, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001555/0.001555, allocations: 194.1 kB / 16.14 MB, free: 6.656 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.635/1.635, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.782/2.782, allocations: 472.6 MB / 0.7447 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 64.39 kB / 0.9113 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3223, allocations: 159.9 MB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05579/0.3781, allocations: 62.25 MB / 1.128 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01757/0.3957, allocations: 13.73 MB / 1.142 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.398, allocations: 55.69 kB / 1.142 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.4011, allocations: 0.8004 MB / 1.143 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006413/0.4076, allocations: 2.212 MB / 1.145 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004559/0.4121, allocations: 1.475 MB / 1.146 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.006499/0.4187, allocations: 5.468 MB / 1.151 GB, free: 4.723 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002182/0.4209, allocations: 1.206 MB / 1.153 GB, free: 3.48 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003057/0.4239, allocations: 1.416 MB / 1.154 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002193/0.4261, allocations: 1.287 MB / 1.155 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005128/0.4267, allocations: 92 kB / 1.155 GB, free: 0.6758 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003509/0.4302, allocations: 1.317 MB / 1.157 GB, free: 15.36 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0007815/0.431, allocations: 442.3 kB / 1.157 GB, free: 14.92 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001847/0.4328, allocations: 0.921 MB / 1.158 GB, free: 14 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00499/0.4378, allocations: 3.073 MB / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4379, allocations: 0 / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4379, allocations: 0 / 1.161 GB, free: 10.91 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.705e-05/0.438, allocations: 3.938 kB / 1.161 GB, free: 10.91 MB / 0.92 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.005312/0.4433, allocations: 2.341 MB / 1.163 GB, free: 8.508 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.4433, allocations: 11.97 kB / 1.163 GB, free: 8.496 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001516/0.4449, allocations: 322.4 kB / 1.164 GB, free: 8.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002316/0.4472, allocations: 1.451 MB / 1.165 GB, free: 6.676 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.4474, allocations: 157.5 kB / 1.165 GB, free: 6.508 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.4476, allocations: 108 kB / 1.165 GB, free: 6.402 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.4504, allocations: 1.441 MB / 1.167 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.4504, allocations: 0 / 1.167 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.4506, allocations: 48 kB / 1.167 GB, free: 4.824 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.929e-05/0.4506, allocations: 31.98 kB / 1.167 GB, free: 4.793 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003075/0.4537, allocations: 1.339 MB / 1.168 GB, free: 3.457 MB / 0.92 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.007952/0.4617, allocations: 6.635 MB / 1.175 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.4638, allocations: 1.166 MB / 1.176 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.465, allocations: 0.5576 MB / 1.176 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007907/0.4658, allocations: 1.149 MB / 1.177 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.4659, allocations: 51.22 kB / 1.177 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 2.615e-06/0.4659, allocations: 0 / 1.177 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004011/0.4699, allocations: 1.589 MB / 1.179 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.556e-05/0.47, allocations: 111.5 kB / 1.179 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001813/0.4718, allocations: 1.393 MB / 1.18 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.906e-05/0.4719, allocations: 41.7 kB / 1.18 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000556/0.4725, allocations: 0.7124 MB / 1.181 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/0.4727, allocations: 264.2 kB / 1.181 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.473, allocations: 182.4 kB / 1.182 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4732, allocations: 341.9 kB / 1.182 GB, free: 4.414 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.4744, allocations: 0.4927 MB / 1.182 GB, free: 3.918 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.4759, allocations: 0.7191 MB / 1.183 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002527/0.4784, allocations: 1.133 MB / 1.184 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.4784, allocations: 0 / 1.184 GB, free: 1.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003224/0.4816, allocations: 1.351 MB / 1.185 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.4817, allocations: 7.938 kB / 1.186 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.4817, allocations: 8 kB / 1.186 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4817, allocations: 8 kB / 1.186 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.483, allocations: 275.8 kB / 1.186 GB, free: 268 kB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.483, allocations: 11.98 kB / 1.186 GB, free: 256 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.4843, allocations: 198.8 kB / 1.186 GB, free: 56 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.705e-05/0.4844, allocations: 35.98 kB / 1.186 GB, free: 20 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00172/0.4861, allocations: 0.7963 MB / 1.187 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001379/0.4875, allocations: 0.7198 MB / 1.187 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002487/0.49, allocations: 1.129 MB / 1.189 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.406e-06/0.49, allocations: 3.938 kB / 1.189 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003196/0.4932, allocations: 1.343 MB / 1.19 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.4933, allocations: 8.562 kB / 1.19 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.4933, allocations: 4 kB / 1.19 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.4933, allocations: 16 kB / 1.19 GB, free: 11.83 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.4945, allocations: 267.6 kB / 1.19 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.4945, allocations: 12 kB / 1.19 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.4959, allocations: 179.2 kB / 1.19 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.863e-05/0.496, allocations: 39.92 kB / 1.19 GB, free: 11.34 MB / 0.9512 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.0003176/0.4963, allocations: 236 kB / 1.191 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003076/0.4966, allocations: 154.1 kB / 1.191 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003366/0.5, allocations: 1.478 MB / 1.192 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.5, allocations: 8 kB / 1.192 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5001, allocations: 0 / 1.192 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002456/0.5025, allocations: 1.117 MB / 1.193 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/0.5084, allocations: 3.09 MB / 1.196 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.5084, allocations: 4 kB / 1.196 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009495/0.5094, allocations: 196.2 kB / 1.197 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.231e-05/0.5094, allocations: 8 kB / 1.197 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.066e-05/0.5095, allocations: 23.98 kB / 1.197 GB, free: 4.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.415e-06/0.5095, allocations: 8 kB / 1.197 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.5095, allocations: 11.88 kB / 1.197 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00425/0.5138, allocations: 2.06 MB / 1.199 GB, free: 2.699 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006432/0.5144, allocations: 386.7 kB / 1.199 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.5147, allocations: 20 kB / 1.199 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.5159, allocations: 143.7 kB / 1.199 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.5161, allocations: 84.33 kB / 1.199 GB, free: 2.059 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.135e-05/0.5162, allocations: 43.91 kB / 1.199 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001458/0.5177, allocations: 1.068 MB / 1.2 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5177, allocations: 0 / 1.2 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001863/0.5196, allocations: 0.7916 MB / 1.201 GB, free: 164 kB / 0.9512 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.0009094/0.5205, allocations: 454.8 kB / 1.201 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.004367/0.5249, allocations: 1.81 MB / 1.203 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.5249, allocations: 0 / 1.203 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.5265, allocations: 0.6444 MB / 1.204 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/0.5301, allocations: 0.7828 MB / 1.205 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/0.5347, allocations: 3.319 MB / 1.208 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008398/0.5355, allocations: 1.273 MB / 1.209 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001729/0.5373, allocations: 408.1 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003963/0.5377, allocations: 127.4 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of SimCode: time 4.71e-07/0.5377, allocations: 0 / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of Templates: time 0.0513/0.589, allocations: 31.65 MB / 1.241 GB, free: 7.949 MB / 0.9981 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1)