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.001127/0.001127, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.612/2.612, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 67.89 kB / 0.8692 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6599/0.662, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.0592/0.7212, allocations: 62.64 MB / 1.078 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01881/0.7401, allocations: 13.66 MB / 1.092 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00266/0.7428, allocations: 67.62 kB / 1.092 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002743/0.7456, allocations: 0.9511 MB / 1.093 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006652/0.7523, allocations: 2.379 MB / 1.095 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004357/0.7566, allocations: 1.635 MB / 1.097 GB, free: 0.9688 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005703/0.7624, allocations: 4.277 MB / 1.101 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002219/0.7646, allocations: 1.408 MB / 1.102 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004083/0.7687, allocations: 1.635 MB / 1.104 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/0.771, allocations: 1.288 MB / 1.105 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003925/0.7714, allocations: 176 kB / 1.105 GB, free: 8.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.7746, allocations: 1.427 MB / 1.107 GB, free: 6.707 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004989/0.7751, allocations: 0.5062 MB / 1.107 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.00136/0.7765, allocations: 1.007 MB / 1.108 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004648/0.7811, allocations: 3.139 MB / 1.111 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.7812, allocations: 0 / 1.111 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7812, allocations: 0 / 1.111 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.634e-05/0.7812, allocations: 0 / 1.111 GB, free: 2.039 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.004954/0.7862, allocations: 2.333 MB / 1.113 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.7862, allocations: 15.97 kB / 1.113 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.7877, allocations: 318.4 kB / 1.114 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/0.79, allocations: 1.412 MB / 1.115 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.7902, allocations: 157.5 kB / 1.115 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.7904, allocations: 104 kB / 1.115 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002771/0.7932, allocations: 1.441 MB / 1.117 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.7932, allocations: 11.92 kB / 1.117 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.7933, allocations: 48 kB / 1.117 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.075e-05/0.7934, allocations: 28 kB / 1.117 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003142/0.7965, allocations: 1.335 MB / 1.118 GB, free: 10.63 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.007921/0.8045, allocations: 6.67 MB / 1.125 GB, free: 3.52 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002178/0.8067, allocations: 1.167 MB / 1.126 GB, free: 2.27 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.808, allocations: 0.557 MB / 1.126 GB, free: 1.707 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007978/0.8088, allocations: 1.145 MB / 1.128 GB, free: 312 kB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.8088, allocations: 55.16 kB / 1.128 GB, free: 248 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=77): time 2.585e-06/0.8089, allocations: 0 / 1.128 GB, free: 248 kB / 0.8731 GB Notification: Performance of matching and sorting (n=77): time 0.004351/0.8132, allocations: 1.589 MB / 1.129 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.8133, allocations: 111.5 kB / 1.129 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.8151, allocations: 1.408 MB / 1.131 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.8152, allocations: 45.7 kB / 1.131 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005484/0.8158, allocations: 0.7202 MB / 1.131 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.816, allocations: 268.1 kB / 1.132 GB, free: 12.05 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.8163, allocations: 174.5 kB / 1.132 GB, free: 11.87 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.8164, allocations: 334 kB / 1.132 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.8178, allocations: 0.4965 MB / 1.133 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.8192, allocations: 0.7234 MB / 1.133 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.8218, allocations: 1.133 MB / 1.134 GB, free: 9.027 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.8218, allocations: 4 kB / 1.134 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00331/0.8251, allocations: 1.355 MB / 1.136 GB, free: 7.656 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.8252, allocations: 8 kB / 1.136 GB, free: 7.648 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.8252, allocations: 4 kB / 1.136 GB, free: 7.645 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.8252, allocations: 8 kB / 1.136 GB, free: 7.637 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.8264, allocations: 271.8 kB / 1.136 GB, free: 7.371 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.8265, allocations: 11.94 kB / 1.136 GB, free: 7.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.8277, allocations: 154.9 kB / 1.136 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.8278, allocations: 43.98 kB / 1.136 GB, free: 7.164 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001739/0.8295, allocations: 0.7985 MB / 1.137 GB, free: 6.363 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001415/0.8309, allocations: 0.719 MB / 1.138 GB, free: 5.551 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00258/0.8335, allocations: 1.121 MB / 1.139 GB, free: 4.371 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.889e-06/0.8335, allocations: 3.984 kB / 1.139 GB, free: 4.367 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003291/0.8368, allocations: 1.346 MB / 1.14 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.8369, allocations: 8 kB / 1.14 GB, free: 3 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.8369, allocations: 4 kB / 1.14 GB, free: 2.996 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.8369, allocations: 8.562 kB / 1.14 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.8381, allocations: 271.6 kB / 1.14 GB, free: 2.723 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.8381, allocations: 11.94 kB / 1.14 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.8394, allocations: 151.2 kB / 1.141 GB, free: 2.562 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-05/0.8395, allocations: 43.92 kB / 1.141 GB, free: 2.52 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.000303/0.8398, allocations: 232 kB / 1.141 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.8402, allocations: 154.1 kB / 1.141 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0034/0.8436, allocations: 1.478 MB / 1.142 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.8436, allocations: 8 kB / 1.142 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.8436, allocations: 0 / 1.142 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002552/0.8462, allocations: 1.109 MB / 1.143 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005852/0.8521, allocations: 3.098 MB / 1.146 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.8521, allocations: 4 kB / 1.147 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009818/0.8531, allocations: 200.2 kB / 1.147 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.8531, allocations: 8 kB / 1.147 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.983e-05/0.8532, allocations: 16 kB / 1.147 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.094e-05/0.8532, allocations: 15.92 kB / 1.147 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.8532, allocations: 11.94 kB / 1.147 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004417/0.8576, allocations: 2.06 MB / 1.149 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006572/0.8583, allocations: 386.9 kB / 1.149 GB, free: 9.477 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.8585, allocations: 19.98 kB / 1.149 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.8597, allocations: 95.86 kB / 1.149 GB, free: 9.363 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.8599, allocations: 88.34 kB / 1.149 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.86, allocations: 43.91 kB / 1.149 GB, free: 9.23 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001492/0.8615, allocations: 1.079 MB / 1.15 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8615, allocations: 0 / 1.15 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001986/0.8635, allocations: 0.8032 MB / 1.151 GB, free: 7.352 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.0008821/0.8644, allocations: 476.2 kB / 1.152 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004665/0.8691, allocations: 1.873 MB / 1.153 GB, free: 5.02 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.8691, allocations: 3.859 kB / 1.153 GB, free: 5.016 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.8707, allocations: 0.6405 MB / 1.154 GB, free: 4.379 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003837/0.8745, allocations: 0.8341 MB / 1.155 GB, free: 3.574 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004176/0.8787, allocations: 2.809 MB / 1.158 GB, free: 0.6758 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008002/0.8795, allocations: 1.273 MB / 1.159 GB, free: 15.37 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00171/0.8812, allocations: 408.2 kB / 1.159 GB, free: 14.96 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003736/0.8816, allocations: 127.4 kB / 1.159 GB, free: 14.84 MB / 0.92 GB Notification: Performance of SimCode: time 2.054e-06/0.8816, allocations: 4 kB / 1.159 GB, free: 14.83 MB / 0.92 GB Notification: Performance of Templates: time 0.05633/0.938, allocations: 33.51 MB / 1.192 GB, free: 13.74 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=480 -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