Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_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.006941/0.00694, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001598/0.001598, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.177/2.177, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.91 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7541/0.7553, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06292/0.8183, allocations: 62.63 MB / 1.149 GB, free: 8.57 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02109/0.8394, allocations: 13.66 MB / 1.162 GB, free: 14.73 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002979/0.8425, allocations: 61.31 kB / 1.162 GB, free: 14.71 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003572/0.8461, allocations: 0.9702 MB / 1.163 GB, free: 14.14 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.8566, allocations: 2.508 MB / 1.166 GB, free: 12.65 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005308/0.862, allocations: 1.632 MB / 1.167 GB, free: 11.75 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007613/0.8696, allocations: 4.302 MB / 1.172 GB, free: 9.66 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00307/0.8727, allocations: 1.414 MB / 1.173 GB, free: 8.973 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004974/0.8777, allocations: 1.673 MB / 1.175 GB, free: 8.188 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003223/0.8809, allocations: 1.292 MB / 1.176 GB, free: 7.457 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0007895/0.8817, allocations: 175.6 kB / 1.176 GB, free: 7.457 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004792/0.8865, allocations: 1.428 MB / 1.177 GB, free: 6.707 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0009879/0.8875, allocations: 0.5082 MB / 1.178 GB, free: 6.312 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002507/0.8901, allocations: 1.003 MB / 1.179 GB, free: 5.621 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006737/0.8968, allocations: 3.167 MB / 1.182 GB, free: 3.465 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.8968, allocations: 5.469 kB / 1.182 GB, free: 3.461 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8968, allocations: 0 / 1.182 GB, free: 3.461 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.571e-05/0.897, allocations: 0 / 1.182 GB, free: 3.461 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.006035/0.903, allocations: 2.336 MB / 1.184 GB, free: 1.758 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.903, allocations: 10.09 kB / 1.184 GB, free: 1.758 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001592/0.9046, allocations: 318.9 kB / 1.185 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002911/0.9076, allocations: 1.486 MB / 1.186 GB, free: 476 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.9078, allocations: 156.5 kB / 1.186 GB, free: 364 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/0.908, allocations: 107.6 kB / 1.186 GB, free: 328 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003012/0.911, allocations: 1.435 MB / 1.188 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/0.9111, allocations: 6.219 kB / 1.188 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.9112, allocations: 47.11 kB / 1.188 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.053e-05/0.9113, allocations: 36.92 kB / 1.188 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00314/0.9144, allocations: 1.337 MB / 1.189 GB, free: 14.65 MB / 0.9356 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.008945/0.9234, allocations: 6.631 MB / 1.196 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/0.9257, allocations: 1.169 MB / 1.197 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.927, allocations: 0.5611 MB / 1.197 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009355/0.928, allocations: 1.148 MB / 1.198 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.928, allocations: 48.53 kB / 1.198 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 3.667e-06/0.928, allocations: 0 / 1.198 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004318/0.9324, allocations: 1.588 MB / 1.2 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.9324, allocations: 119.2 kB / 1.2 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.9349, allocations: 1.404 MB / 1.202 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.9351, allocations: 43.17 kB / 1.202 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006715/0.9357, allocations: 0.7128 MB / 1.202 GB, free: 3.863 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003279/0.9361, allocations: 268.9 kB / 1.203 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003753/0.9365, allocations: 177.9 kB / 1.203 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.9366, allocations: 337.4 kB / 1.203 GB, free: 3.195 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.9379, allocations: 0.4911 MB / 1.203 GB, free: 2.938 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.9395, allocations: 0.7304 MB / 1.204 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.9422, allocations: 1.132 MB / 1.205 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.9423, allocations: 1.312 kB / 1.205 GB, free: 1.68 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00384/0.9461, allocations: 1.348 MB / 1.207 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.9461, allocations: 7.094 kB / 1.207 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.9462, allocations: 4.719 kB / 1.207 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.043e-05/0.9462, allocations: 13.14 kB / 1.207 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.9474, allocations: 271 kB / 1.207 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.143e-05/0.9475, allocations: 12.67 kB / 1.207 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.9492, allocations: 151.5 kB / 1.207 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.9493, allocations: 39.23 kB / 1.207 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00211/0.9515, allocations: 0.7954 MB / 1.208 GB, free: 336 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001498/0.953, allocations: 0.7248 MB / 1.209 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002506/0.9555, allocations: 1.122 MB / 1.21 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.674e-06/0.9555, allocations: 2.438 kB / 1.21 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003614/0.9591, allocations: 1.342 MB / 1.211 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.9592, allocations: 6.875 kB / 1.211 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.9592, allocations: 4.562 kB / 1.211 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.9592, allocations: 10.28 kB / 1.211 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.9604, allocations: 269.8 kB / 1.211 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.511e-05/0.9604, allocations: 15.94 kB / 1.211 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.9619, allocations: 155.1 kB / 1.211 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.817e-05/0.962, allocations: 35.98 kB / 1.211 GB, free: 14.09 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.0003674/0.9624, allocations: 240 kB / 1.212 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005563/0.9629, allocations: 146.2 kB / 1.212 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003195/0.9661, allocations: 1.474 MB / 1.213 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.9662, allocations: 19.92 kB / 1.213 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.9662, allocations: 0 / 1.213 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002392/0.9686, allocations: 1.101 MB / 1.214 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006015/0.9746, allocations: 3.09 MB / 1.217 GB, free: 7.828 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.9746, allocations: 11.94 kB / 1.217 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009419/0.9756, allocations: 191.7 kB / 1.218 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.9756, allocations: 8 kB / 1.218 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.87e-05/0.9757, allocations: 27.92 kB / 1.218 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.9757, allocations: 4.156 kB / 1.218 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.9757, allocations: 15.94 kB / 1.218 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/0.9802, allocations: 2.06 MB / 1.22 GB, free: 5.438 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009008/0.9811, allocations: 382.7 kB / 1.22 GB, free: 5.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004202/0.9816, allocations: 31.92 kB / 1.22 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.9829, allocations: 99.92 kB / 1.22 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.9831, allocations: 84.34 kB / 1.22 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.9832, allocations: 47.95 kB / 1.22 GB, free: 4.781 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001672/0.9849, allocations: 1.079 MB / 1.221 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9849, allocations: 0 / 1.221 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002609/0.9875, allocations: 0.7916 MB / 1.222 GB, free: 2.914 MB / 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.001165/0.9887, allocations: 472.8 kB / 1.223 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004389/0.9931, allocations: 1.814 MB / 1.224 GB, free: 0.6445 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/0.9931, allocations: 7.859 kB / 1.224 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.9947, allocations: 0.6405 MB / 1.225 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003973/0.9987, allocations: 0.8191 MB / 1.226 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004917/1.004, allocations: 2.766 MB / 1.228 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009457/1.005, allocations: 1.277 MB / 1.23 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001714/1.006, allocations: 400.2 kB / 1.23 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/1.007, allocations: 127.4 kB / 1.23 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of SimCode: time 6.61e-07/1.007, allocations: 4 kB / 1.23 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of Templates: time 0.05106/1.058, allocations: 33.69 MB / 1.263 GB, free: 9.219 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches