Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.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.Validation.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") translateModel(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum1.QLoa_flow|heaPum.QLoa_flow|heaPum1.P|heaPum.P|capErr.y|heaPum1.COP|heaPum.COP|heaPum1.dp1|heaPum.dp2",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001213, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001535/0.001536, allocations: 177.3 kB / 15.94 MB, free: 228 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.324/1.324, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.557/2.557, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004177/0.000418, allocations: 12 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5791/0.5796, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.09095/0.6706, allocations: 96.6 MB / 1.115 GB, free: 292 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02499/0.6956, allocations: 17.97 MB / 1.133 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003344/0.699, allocations: 99.31 kB / 1.133 GB, free: 14.19 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00468/0.7037, allocations: 1.427 MB / 1.134 GB, free: 12.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.7145, allocations: 3.703 MB / 1.138 GB, free: 9.043 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.007498/0.722, allocations: 2.708 MB / 1.14 GB, free: 6.383 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008929/0.7309, allocations: 4.763 MB / 1.145 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003754/0.7347, allocations: 2.009 MB / 1.147 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/0.7396, allocations: 2.176 MB / 1.149 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003414/0.743, allocations: 1.548 MB / 1.151 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0006721/0.7437, allocations: 124 kB / 1.151 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004006/0.7477, allocations: 1.225 MB / 1.152 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007876/0.7485, allocations: 0.6266 MB / 1.153 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.7496, allocations: 0.6757 MB / 1.153 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004839/0.7545, allocations: 3.863 MB / 1.157 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.7545, allocations: 0 / 1.157 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7545, allocations: 0 / 1.157 GB, free: 5.301 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.264e-05/0.7546, allocations: 0 / 1.157 GB, free: 5.301 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: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 0.006253/0.7609, allocations: 3.209 MB / 1.16 GB, free: 2.02 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.7609, allocations: 11.98 kB / 1.16 GB, free: 2.008 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/0.7638, allocations: 0.644 MB / 1.161 GB, free: 1.359 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004947/0.7688, allocations: 2.548 MB / 1.163 GB, free: 14.74 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.7691, allocations: 302.7 kB / 1.164 GB, free: 14.42 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.7695, allocations: 203.9 kB / 1.164 GB, free: 14.22 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004433/0.7739, allocations: 2.473 MB / 1.166 GB, free: 11.62 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.531e-05/0.774, allocations: 11.94 kB / 1.166 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002182/0.7742, allocations: 91.98 kB / 1.166 GB, free: 11.52 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.427e-05/0.7743, allocations: 56 kB / 1.166 GB, free: 11.47 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004454/0.7787, allocations: 2.079 MB / 1.168 GB, free: 9.387 MB / 0.92 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.01394/0.7927, allocations: 10.96 MB / 1.179 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002665/0.7954, allocations: 1.197 MB / 1.18 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009842/0.7964, allocations: 1.331 MB / 1.182 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002/0.7984, allocations: 0.9782 MB / 1.183 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=115): time 2.725e-06/0.7984, allocations: 0 / 1.183 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of matching and sorting (n=115): time 0.005232/0.8037, allocations: 2.18 MB / 1.185 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/0.8039, allocations: 487.6 kB / 1.185 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/0.8073, allocations: 2.525 MB / 1.188 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002215/0.8075, allocations: 57.7 kB / 1.188 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.8086, allocations: 1.315 MB / 1.189 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003936/0.809, allocations: 406.2 kB / 1.189 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.942e-05/0.8091, allocations: 32 kB / 1.189 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.8093, allocations: 369.9 kB / 1.19 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.8109, allocations: 0.687 MB / 1.19 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/0.8128, allocations: 1.219 MB / 1.192 GB, free: 448 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.8146, allocations: 0.8161 MB / 1.192 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.8146, allocations: 4 kB / 1.192 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.004496/0.8191, allocations: 2.1 MB / 1.194 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.001302/0.8204, allocations: 4.331 MB / 1.199 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.8204, allocations: 12 kB / 1.199 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.918e-05/0.8205, allocations: 16 kB / 1.199 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.8223, allocations: 423.4 kB / 1.199 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.8223, allocations: 27.92 kB / 1.199 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/0.8249, allocations: 341.2 kB / 1.199 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.8251, allocations: 71.97 kB / 1.199 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.8251, allocations: 4 kB / 1.199 GB, free: 7.98 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003913/0.829, allocations: 1.836 MB / 1.201 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.829, allocations: 8 kB / 1.201 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.8291, allocations: 23.94 kB / 1.201 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.8308, allocations: 419.8 kB / 1.202 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.463e-05/0.8308, allocations: 27.92 kB / 1.202 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002334/0.8332, allocations: 298.2 kB / 1.202 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.8333, allocations: 71.97 kB / 1.202 GB, free: 5.305 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reaToInt.y,$PRE.uMod.T_start,uMod.T_start,$PRE.uMod.count,uMod.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 1 * 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.001258/0.8346, allocations: 0.688 MB / 1.203 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005599/0.8352, allocations: 288.5 kB / 1.203 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.8392, allocations: 1.95 MB / 1.205 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.8393, allocations: 23.95 kB / 1.205 GB, free: 2.336 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.8393, allocations: 0 / 1.205 GB, free: 2.336 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003041/0.8423, allocations: 1.509 MB / 1.206 GB, free: 0.7773 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/0.851, allocations: 4.769 MB / 1.211 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.8511, allocations: 8.031 kB / 1.211 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.8524, allocations: 283.6 kB / 1.211 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.041e-05/0.8525, allocations: 12 kB / 1.211 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.8526, allocations: 31.98 kB / 1.211 GB, free: 11.54 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.62e-05/0.8526, allocations: 11.94 kB / 1.211 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.8526, allocations: 15.92 kB / 1.211 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/0.8584, allocations: 3.376 MB / 1.215 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/0.8597, allocations: 0.5908 MB / 1.215 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005739/0.8603, allocations: 43.92 kB / 1.215 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002038/0.8624, allocations: 174.1 kB / 1.216 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.8626, allocations: 120.7 kB / 1.216 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.8627, allocations: 59.95 kB / 1.216 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00267/0.8654, allocations: 1.755 MB / 1.217 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8654, allocations: 0 / 1.217 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003517/0.8689, allocations: 1.419 MB / 1.219 GB, free: 3.633 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U,heaPum1.vol1.dynBal.U,heaPum1.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,reaToInt.y,uMod.T_start,uMod.count) * Number of discrete states: 1 (uMod.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.001069/0.87, allocations: 0.6562 MB / 1.219 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.005672/0.8757, allocations: 2.785 MB / 1.222 GB, free: 180 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/0.8757, allocations: 4.438 kB / 1.222 GB, free: 176 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.8776, allocations: 0.8509 MB / 1.223 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005909/0.8835, allocations: 1.304 MB / 1.224 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008281/0.8918, allocations: 5.602 MB / 1.23 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.8934, allocations: 1.819 MB / 1.231 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003557/0.897, allocations: 0.6949 MB / 1.232 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006857/0.8977, allocations: 211.3 kB / 1.232 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of SimCode: time 7.21e-07/0.8977, allocations: 0 / 1.232 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of Templates: time 0.5392/1.437, allocations: 50.86 MB / 1.282 GB, free: 210.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches