Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_latest_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_latest_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.001241/0.001241, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001429/0.001429, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.708/2.708, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003124, allocations: 8.719 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2596, allocations: 159.6 MB / 1.058 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05436/0.314, allocations: 57.74 MB / 1.114 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01589/0.3299, allocations: 12.77 MB / 1.127 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.3315, allocations: 55.62 kB / 1.127 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.3333, allocations: 0.6989 MB / 1.128 GB, free: 13.95 MB / 0.8887 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00474/0.3381, allocations: 1.856 MB / 1.129 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.3416, allocations: 1.213 MB / 1.131 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005455/0.3471, allocations: 4.7 MB / 1.135 GB, free: 6.164 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001627/0.3487, allocations: 1.062 MB / 1.136 GB, free: 5.07 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002426/0.3512, allocations: 1.334 MB / 1.138 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.3527, allocations: 1.159 MB / 1.139 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.3529, allocations: 79.94 kB / 1.139 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002264/0.3552, allocations: 0.955 MB / 1.14 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004121/0.3556, allocations: 390.5 kB / 1.14 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004564/0.3561, allocations: 384.8 kB / 1.14 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.3585, allocations: 2.311 MB / 1.143 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3585, allocations: 0 / 1.143 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3585, allocations: 0 / 1.143 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.414e-05/0.3586, allocations: 0 / 1.143 GB, free: 14.45 MB / 0.9044 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.003677/0.3622, allocations: 2.041 MB / 1.145 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3623, allocations: 8.031 kB / 1.145 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.3635, allocations: 353.4 kB / 1.145 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.3657, allocations: 1.391 MB / 1.146 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.3658, allocations: 161.5 kB / 1.147 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.366, allocations: 111.9 kB / 1.147 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.3687, allocations: 1.478 MB / 1.148 GB, free: 8.707 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.3687, allocations: 4 kB / 1.148 GB, free: 8.703 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.3688, allocations: 47.98 kB / 1.148 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.905e-05/0.3689, allocations: 36 kB / 1.148 GB, free: 8.621 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003012/0.3719, allocations: 1.429 MB / 1.15 GB, free: 7.188 MB / 0.9044 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.007142/0.3791, allocations: 6.674 MB / 1.156 GB, free: 72 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.3811, allocations: 1.213 MB / 1.157 GB, free: 14.77 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.3824, allocations: 0.6001 MB / 1.158 GB, free: 14.17 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007584/0.3832, allocations: 1.152 MB / 1.159 GB, free: 12.76 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.3833, allocations: 51.17 kB / 1.159 GB, free: 12.7 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 3.607e-06/0.3833, allocations: 0 / 1.159 GB, free: 12.7 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.003885/0.3872, allocations: 1.734 MB / 1.161 GB, free: 10.96 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.3873, allocations: 111.5 kB / 1.161 GB, free: 10.82 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.3889, allocations: 1.377 MB / 1.162 GB, free: 9.438 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.389, allocations: 41.7 kB / 1.162 GB, free: 9.391 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005457/0.3896, allocations: 0.7125 MB / 1.163 GB, free: 8.668 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.3898, allocations: 264.1 kB / 1.163 GB, free: 8.406 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/0.3899, allocations: 16 kB / 1.163 GB, free: 8.391 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.39, allocations: 345.9 kB / 1.163 GB, free: 8.047 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.3912, allocations: 0.5328 MB / 1.164 GB, free: 7.512 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.3926, allocations: 0.7698 MB / 1.165 GB, free: 6.652 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.3938, allocations: 0.5807 MB / 1.165 GB, free: 6.074 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3938, allocations: 0 / 1.165 GB, free: 6.074 MB / 0.92 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002919/0.3968, allocations: 1.436 MB / 1.167 GB, free: 4.625 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.3969, allocations: 236.8 kB / 1.167 GB, free: 4.328 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3969, allocations: 12 kB / 1.167 GB, free: 4.316 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.397, allocations: 8 kB / 1.167 GB, free: 4.309 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.3982, allocations: 299.6 kB / 1.167 GB, free: 4.016 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.3982, allocations: 11.94 kB / 1.167 GB, free: 4.004 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.3994, allocations: 226.8 kB / 1.167 GB, free: 3.781 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.267e-05/0.3995, allocations: 35.98 kB / 1.168 GB, free: 3.746 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-06/0.3995, allocations: 4 kB / 1.168 GB, free: 3.742 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00276/0.4022, allocations: 1.284 MB / 1.169 GB, free: 2.457 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4023, allocations: 4 kB / 1.169 GB, free: 2.453 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.4023, allocations: 8.562 kB / 1.169 GB, free: 2.445 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.4034, allocations: 299.6 kB / 1.169 GB, free: 2.152 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.4034, allocations: 11.94 kB / 1.169 GB, free: 2.141 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.4046, allocations: 211.1 kB / 1.169 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.033e-05/0.4047, allocations: 43.98 kB / 1.169 GB, free: 1.891 MB / 0.92 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 (reaToInt.y,intGreThr.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007226/0.4054, allocations: 456.8 kB / 1.17 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.4056, allocations: 150.2 kB / 1.17 GB, free: 1.285 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.4087, allocations: 1.575 MB / 1.171 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.4088, allocations: 8 kB / 1.171 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.4088, allocations: 4 kB / 1.171 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002417/0.4112, allocations: 1.207 MB / 1.173 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005194/0.4164, allocations: 3.161 MB / 1.176 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.4164, allocations: 4.562 kB / 1.176 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009366/0.4174, allocations: 215.7 kB / 1.176 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.134e-05/0.4174, allocations: 8 kB / 1.176 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.748e-05/0.4175, allocations: 31.98 kB / 1.176 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.658e-06/0.4175, allocations: 11.94 kB / 1.176 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4175, allocations: 7.938 kB / 1.176 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004089/0.4216, allocations: 2.205 MB / 1.178 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/0.4222, allocations: 402.7 kB / 1.179 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.4224, allocations: 20 kB / 1.179 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.4236, allocations: 163.8 kB / 1.179 GB, free: 8 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.4238, allocations: 80.41 kB / 1.179 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.933e-05/0.4239, allocations: 51.89 kB / 1.179 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001299/0.4252, allocations: 0.9793 MB / 1.18 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4252, allocations: 0 / 1.18 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001858/0.427, allocations: 0.8029 MB / 1.181 GB, free: 6.09 MB / 0.9356 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007387/0.4278, allocations: 443.2 kB / 1.181 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.004049/0.4319, allocations: 1.951 MB / 1.183 GB, free: 3.715 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.4319, allocations: 4 kB / 1.183 GB, free: 3.711 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.4334, allocations: 0.6835 MB / 1.184 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002929/0.4363, allocations: 0.6808 MB / 1.184 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/0.4409, allocations: 3.25 MB / 1.187 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009607/0.4419, allocations: 1.277 MB / 1.189 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001648/0.4436, allocations: 402.9 kB / 1.189 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003799/0.4439, allocations: 123.3 kB / 1.189 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of SimCode: time 6.11e-07/0.444, allocations: 0 / 1.189 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of Templates: time 0.04354/0.4875, allocations: 27.95 MB / 1.216 GB, free: 1.594 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches