Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001023/0.001028, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.006063/0.006063, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.513/1.513, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.808/2.808, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003732, allocations: 8 kB / 0.8728 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6868/0.6872, allocations: 153.8 MB / 1.023 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.07196/0.7592, allocations: 61.11 MB / 1.083 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02148/0.7807, allocations: 13.55 MB / 1.096 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002719/0.7835, allocations: 55.62 kB / 1.096 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.7868, allocations: 0.8082 MB / 1.097 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007393/0.7942, allocations: 2.224 MB / 1.099 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004701/0.7989, allocations: 1.46 MB / 1.1 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008303/0.8072, allocations: 5.48 MB / 1.106 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002854/0.8101, allocations: 1.182 MB / 1.107 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004354/0.8145, allocations: 1.377 MB / 1.108 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003236/0.8178, allocations: 1.237 MB / 1.109 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005175/0.8184, allocations: 72 kB / 1.11 GB, free: 7.086 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.8222, allocations: 1.302 MB / 1.111 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005877/0.8228, allocations: 406.4 kB / 1.111 GB, free: 5.383 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001475/0.8243, allocations: 0.9148 MB / 1.112 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004865/0.8292, allocations: 3.018 MB / 1.115 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.8292, allocations: 0 / 1.115 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.485e-06/0.8292, allocations: 0 / 1.115 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.707e-05/0.8293, allocations: 0 / 1.115 GB, free: 1.43 MB / 0.8575 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.004795/0.8341, allocations: 2.022 MB / 1.117 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.8342, allocations: 12.03 kB / 1.117 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00356/0.8377, allocations: 0.5996 MB / 1.118 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003059/0.8408, allocations: 1.452 MB / 1.119 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/0.841, allocations: 157.4 kB / 1.119 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.8413, allocations: 108 kB / 1.119 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003996/0.8453, allocations: 1.625 MB / 1.121 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.8454, allocations: 4 kB / 1.121 GB, free: 11.24 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.8455, allocations: 44 kB / 1.121 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.769e-05/0.8456, allocations: 39.98 kB / 1.121 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004891/0.8505, allocations: 1.682 MB / 1.123 GB, free: 9.477 MB / 0.8731 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.01109/0.8616, allocations: 6.955 MB / 1.129 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00305/0.8647, allocations: 1.336 MB / 1.131 GB, free: 0.6562 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/0.8668, allocations: 0.7289 MB / 1.131 GB, free: 15.92 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/0.8679, allocations: 1.145 MB / 1.133 GB, free: 14.52 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.053e-05/0.8679, allocations: 51.22 kB / 1.133 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=77): time 3.927e-06/0.868, allocations: 0 / 1.133 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of matching and sorting (n=77): time 0.006641/0.8746, allocations: 2.077 MB / 1.135 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.8747, allocations: 119.5 kB / 1.135 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/0.877, allocations: 1.389 MB / 1.136 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.8771, allocations: 45.7 kB / 1.136 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.8779, allocations: 0.7124 MB / 1.137 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003357/0.8782, allocations: 268.1 kB / 1.137 GB, free: 9.797 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.8784, allocations: 77.67 kB / 1.137 GB, free: 9.715 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.8786, allocations: 341.9 kB / 1.137 GB, free: 9.375 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002062/0.8806, allocations: 0.6499 MB / 1.138 GB, free: 8.727 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002213/0.8829, allocations: 0.883 MB / 1.139 GB, free: 7.746 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004177/0.887, allocations: 1.441 MB / 1.14 GB, free: 6.242 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.8871, allocations: 4 kB / 1.14 GB, free: 6.238 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0051/0.8922, allocations: 1.667 MB / 1.142 GB, free: 4.562 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002077/0.8924, allocations: 232.8 kB / 1.142 GB, free: 4.266 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.8924, allocations: 8 kB / 1.142 GB, free: 4.258 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.8925, allocations: 15.94 kB / 1.142 GB, free: 4.242 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.8942, allocations: 335.5 kB / 1.143 GB, free: 3.914 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.077e-05/0.8942, allocations: 15.92 kB / 1.143 GB, free: 3.898 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.8961, allocations: 258.9 kB / 1.143 GB, free: 3.645 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.8962, allocations: 39.98 kB / 1.143 GB, free: 3.605 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-06/0.8963, allocations: 4 kB / 1.143 GB, free: 3.602 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004649/0.9009, allocations: 1.507 MB / 1.144 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.901, allocations: 8 kB / 1.144 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.901, allocations: 8 kB / 1.144 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.9026, allocations: 340 kB / 1.145 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.9026, allocations: 12 kB / 1.145 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/0.9046, allocations: 255 kB / 1.145 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.9048, allocations: 39.98 kB / 1.145 GB, free: 1.445 MB / 0.8887 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.000952/0.9057, allocations: 464.7 kB / 1.145 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003454/0.9061, allocations: 154.1 kB / 1.146 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/0.911, allocations: 1.806 MB / 1.147 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.9111, allocations: 8 kB / 1.147 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.9111, allocations: 4 kB / 1.147 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004067/0.9152, allocations: 1.429 MB / 1.149 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007931/0.9231, allocations: 3.505 MB / 1.152 GB, free: 9.891 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.9232, allocations: 4 kB / 1.152 GB, free: 9.887 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.9246, allocations: 272.1 kB / 1.152 GB, free: 9.621 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.601e-05/0.9246, allocations: 12 kB / 1.152 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.55e-05/0.9247, allocations: 19.98 kB / 1.152 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-05/0.9247, allocations: 11.94 kB / 1.152 GB, free: 9.578 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.9247, allocations: 4 kB / 1.152 GB, free: 9.574 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007036/0.9317, allocations: 2.591 MB / 1.155 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.9329, allocations: 418.6 kB / 1.155 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002624/0.9331, allocations: 20 kB / 1.155 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/0.9349, allocations: 210.3 kB / 1.156 GB, free: 6.254 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.9351, allocations: 88.33 kB / 1.156 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.9352, allocations: 39.97 kB / 1.156 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001716/0.937, allocations: 1.068 MB / 1.157 GB, free: 5.066 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/0.937, allocations: 0 / 1.157 GB, free: 5.066 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002302/0.9393, allocations: 0.7995 MB / 1.158 GB, free: 4.266 MB / 0.9044 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.001062/0.9403, allocations: 469.1 kB / 1.158 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006865/0.9472, allocations: 2.306 MB / 1.16 GB, free: 1.512 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/0.9473, allocations: 0 / 1.16 GB, free: 1.512 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.9497, allocations: 0.8006 MB / 1.161 GB, free: 0.7109 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005637/0.9554, allocations: 0.8292 MB / 1.162 GB, free: 15.89 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006274/0.9617, allocations: 3.511 MB / 1.165 GB, free: 12.28 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.9627, allocations: 1.282 MB / 1.167 GB, free: 10.97 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002141/0.9649, allocations: 412.3 kB / 1.167 GB, free: 10.56 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000529/0.9654, allocations: 135.4 kB / 1.167 GB, free: 10.43 MB / 0.92 GB Notification: Performance of SimCode: time 3.016e-06/0.9654, allocations: 4 kB / 1.167 GB, free: 10.43 MB / 0.92 GB Notification: Performance of Templates: time 0.06905/1.034, allocations: 33.82 MB / 1.2 GB, free: 9 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches