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.006257/0.006257, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001125/0.001125, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.91 kB / 0.9508 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7909/0.7922, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06475/0.857, allocations: 62.62 MB / 1.149 GB, free: 8.602 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02179/0.8788, allocations: 13.65 MB / 1.162 GB, free: 14.77 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.8816, allocations: 65.09 kB / 1.162 GB, free: 14.74 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002853/0.8844, allocations: 0.975 MB / 1.163 GB, free: 14.17 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.007722/0.8922, allocations: 2.507 MB / 1.166 GB, free: 12.68 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005037/0.8972, allocations: 1.639 MB / 1.167 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007029/0.9043, allocations: 4.296 MB / 1.172 GB, free: 9.688 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002665/0.907, allocations: 1.414 MB / 1.173 GB, free: 8.996 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004537/0.9115, allocations: 1.682 MB / 1.175 GB, free: 8.199 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003285/0.9148, allocations: 1.282 MB / 1.176 GB, free: 7.469 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0008733/0.9157, allocations: 176.1 kB / 1.176 GB, free: 7.469 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004827/0.9205, allocations: 1.433 MB / 1.177 GB, free: 6.715 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0009899/0.9215, allocations: 0.5034 MB / 1.178 GB, free: 6.324 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.9238, allocations: 1.005 MB / 1.179 GB, free: 5.633 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.007288/0.9311, allocations: 3.179 MB / 1.182 GB, free: 3.465 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 1.832e-05/0.9311, allocations: 5.156 kB / 1.182 GB, free: 3.461 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9311, allocations: 3.938 kB / 1.182 GB, free: 3.457 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001102/0.9312, allocations: 0 / 1.182 GB, free: 3.457 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.007729/0.939, allocations: 2.401 MB / 1.184 GB, free: 1.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.939, allocations: 8.5 kB / 1.184 GB, free: 1.688 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.9411, allocations: 333.8 kB / 1.185 GB, free: 1.523 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003702/0.9448, allocations: 1.487 MB / 1.186 GB, free: 388 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002314/0.9451, allocations: 155.8 kB / 1.186 GB, free: 276 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/0.9453, allocations: 105 kB / 1.186 GB, free: 244 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003631/0.949, allocations: 1.439 MB / 1.188 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.949, allocations: 5.156 kB / 1.188 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001565/0.9492, allocations: 51.94 kB / 1.188 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.971e-05/0.9493, allocations: 28.12 kB / 1.188 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003519/0.9528, allocations: 1.337 MB / 1.189 GB, free: 14.57 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.009754/0.9625, allocations: 6.637 MB / 1.196 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.9649, allocations: 1.171 MB / 1.197 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.9663, allocations: 0.5646 MB / 1.197 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008299/0.9671, allocations: 1.144 MB / 1.199 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.9672, allocations: 47.78 kB / 1.199 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 3.317e-06/0.9672, allocations: 1.125 kB / 1.199 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.00463/0.9718, allocations: 1.595 MB / 1.2 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.534e-05/0.9719, allocations: 116.1 kB / 1.2 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00242/0.9744, allocations: 1.403 MB / 1.202 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001371/0.9745, allocations: 43.3 kB / 1.202 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007164/0.9752, allocations: 0.7252 MB / 1.202 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.000314/0.9756, allocations: 277.8 kB / 1.203 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000378/0.9759, allocations: 181.9 kB / 1.203 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.9761, allocations: 338.2 kB / 1.203 GB, free: 3.082 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.9775, allocations: 0.4986 MB / 1.204 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.9792, allocations: 0.7258 MB / 1.204 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.9821, allocations: 1.137 MB / 1.205 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.9821, allocations: 1.219 kB / 1.205 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003637/0.9858, allocations: 1.361 MB / 1.207 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.9858, allocations: 6.719 kB / 1.207 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.9858, allocations: 4.875 kB / 1.207 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.373e-05/0.9859, allocations: 9.469 kB / 1.207 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.9872, allocations: 274.7 kB / 1.207 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.64e-05/0.9872, allocations: 16.55 kB / 1.207 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.9888, allocations: 151.8 kB / 1.207 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.989, allocations: 39.02 kB / 1.207 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001923/0.9909, allocations: 0.796 MB / 1.208 GB, free: 196 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00147/0.9924, allocations: 0.721 MB / 1.209 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002641/0.995, allocations: 1.122 MB / 1.21 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.671e-06/0.995, allocations: 1.594 kB / 1.21 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003782/0.9988, allocations: 1.351 MB / 1.211 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.9989, allocations: 10.28 kB / 1.211 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.9989, allocations: 4.219 kB / 1.211 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.9989, allocations: 9.156 kB / 1.211 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/1, allocations: 270.5 kB / 1.211 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.075e-05/1, allocations: 17.91 kB / 1.211 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/1.002, allocations: 147.4 kB / 1.212 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/1.002, allocations: 35.98 kB / 1.212 GB, free: 13.98 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.0005087/1.003, allocations: 240 kB / 1.212 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006202/1.003, allocations: 155 kB / 1.212 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/1.007, allocations: 1.474 MB / 1.213 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/1.007, allocations: 15.94 kB / 1.213 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.007, allocations: 0 / 1.213 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002721/1.01, allocations: 1.105 MB / 1.215 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006865/1.017, allocations: 3.102 MB / 1.218 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/1.017, allocations: 4 kB / 1.218 GB, free: 7.699 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.018, allocations: 191.7 kB / 1.218 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.918e-05/1.018, allocations: 11.94 kB / 1.218 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.687e-05/1.018, allocations: 23.92 kB / 1.218 GB, free: 7.477 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.179e-05/1.018, allocations: 11.94 kB / 1.218 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.84e-06/1.018, allocations: 8.094 kB / 1.218 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004901/1.023, allocations: 2.084 MB / 1.22 GB, free: 5.297 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/1.024, allocations: 387.6 kB / 1.22 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005332/1.025, allocations: 19.94 kB / 1.22 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/1.026, allocations: 107.9 kB / 1.22 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/1.027, allocations: 84.34 kB / 1.22 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/1.027, allocations: 39.97 kB / 1.22 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001958/1.029, allocations: 1.079 MB / 1.222 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.41e-07/1.029, allocations: 0 / 1.222 GB, free: 3.574 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002928/1.032, allocations: 0.8032 MB / 1.222 GB, free: 2.77 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.001214/1.033, allocations: 473 kB / 1.223 GB, free: 2.305 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004692/1.038, allocations: 1.81 MB / 1.225 GB, free: 0.5 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.038, allocations: 7.984 kB / 1.225 GB, free: 0.4922 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001694/1.039, allocations: 0.6404 MB / 1.225 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004346/1.044, allocations: 0.8292 MB / 1.226 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004849/1.048, allocations: 2.806 MB / 1.229 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000935/1.049, allocations: 1.285 MB / 1.23 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001699/1.051, allocations: 400.2 kB / 1.23 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/1.052, allocations: 131.3 kB / 1.23 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of SimCode: time 7.52e-07/1.052, allocations: 0 / 1.23 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of Templates: time 0.05444/1.106, allocations: 33.69 MB / 1.263 GB, free: 9.016 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