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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.567/2.567, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 172.9 kB / 491.2 MB, free: 1.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.5 MB / 0.7868 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001023, allocations: 95.45 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.592e-05/1.595e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3313, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.374/1.705, allocations: 448.4 MB / 1.65 GB, free: 15.33 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/1.705, allocations: 95.97 kB / 1.65 GB, free: 15.28 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 1.923/3.629, allocations: 0.525 GB / 2.175 GB, free: 23.04 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.783e-06/3.629, allocations: 0 / 2.175 GB, free: 23.04 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000248/3.629, allocations: 43.92 kB / 2.175 GB, free: 22.99 MB / 1.151 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.00563/3.635, allocations: 1.906 MB / 2.177 GB, free: 21.04 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/3.635, allocations: 12.03 kB / 2.177 GB, free: 21.02 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001809/3.637, allocations: 321.5 kB / 2.178 GB, free: 20.71 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/3.641, allocations: 1.664 MB / 2.179 GB, free: 18.99 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/3.641, allocations: 121.4 kB / 2.179 GB, free: 18.86 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003102/3.641, allocations: 64 kB / 2.179 GB, free: 18.79 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002042/3.644, allocations: 0.9843 MB / 2.18 GB, free: 17.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/3.646, allocations: 1.138 MB / 2.181 GB, free: 16.58 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/3.646, allocations: 3.938 kB / 2.181 GB, free: 16.58 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/3.646, allocations: 4 kB / 2.181 GB, free: 16.57 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.232e-05/3.646, allocations: 45.98 kB / 2.181 GB, free: 16.53 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.00891/3.655, allocations: 6.723 MB / 2.188 GB, free: 9.309 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/3.656, allocations: 0.5841 MB / 2.189 GB, free: 8.719 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004574/3.656, allocations: 374.5 kB / 2.189 GB, free: 8.352 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000496/3.657, allocations: 0.8277 MB / 2.19 GB, free: 7.336 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/3.657, allocations: 47.06 kB / 2.19 GB, free: 7.281 MB / 1.151 GB Notification: Performance of pre-optimization done (n=63): time 3.296e-06/3.657, allocations: 0 / 2.19 GB, free: 7.281 MB / 1.151 GB Notification: Performance of matching and sorting (n=63): time 0.001644/3.658, allocations: 0.8097 MB / 2.191 GB, free: 6.465 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/3.658, allocations: 115.4 kB / 2.191 GB, free: 6.328 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/3.66, allocations: 1.149 MB / 2.192 GB, free: 5.172 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001125/3.66, allocations: 29.7 kB / 2.192 GB, free: 5.137 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/3.661, allocations: 0.7541 MB / 2.193 GB, free: 4.375 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/3.661, allocations: 212.9 kB / 2.193 GB, free: 4.164 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/3.661, allocations: 0 / 2.193 GB, free: 4.164 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.062e-05/3.661, allocations: 337.9 kB / 2.193 GB, free: 3.828 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004628/3.662, allocations: 350.5 kB / 2.193 GB, free: 3.488 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005862/3.662, allocations: 0.5871 MB / 2.194 GB, free: 2.793 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008351/3.663, allocations: 420.2 kB / 2.194 GB, free: 2.383 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/3.663, allocations: 4 kB / 2.194 GB, free: 2.379 MB / 1.151 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001849/3.665, allocations: 1.022 MB / 2.195 GB, free: 1.352 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.809/4.474, allocations: 1.876 MB / 2.197 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.783e-05/4.474, allocations: 4.5 kB / 2.197 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.341e-05/4.474, allocations: 13.73 kB / 2.197 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/4.476, allocations: 265.1 kB / 2.198 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.796e-05/4.476, allocations: 15.53 kB / 2.198 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/4.478, allocations: 200.7 kB / 2.198 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/4.478, allocations: 40.52 kB / 2.198 GB, free: 248.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/4.478, allocations: 4.125 kB / 2.198 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002012/4.48, allocations: 0.8477 MB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/4.48, allocations: 7.125 kB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/4.48, allocations: 9.375 kB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/4.481, allocations: 266.9 kB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/4.481, allocations: 16.36 kB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/4.483, allocations: 170 kB / 2.199 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/4.483, allocations: 39.06 kB / 2.199 GB, free: 248.4 MB / 1.151 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 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * 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.0002838/4.483, allocations: 129 kB / 2.199 GB, free: 248.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/4.483, allocations: 145 kB / 2.199 GB, free: 248.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/4.485, allocations: 0.9499 MB / 2.2 GB, free: 248.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/4.485, allocations: 6.906 kB / 2.2 GB, free: 248.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/4.485, allocations: 1.312 kB / 2.2 GB, free: 248.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001504/4.487, allocations: 0.8174 MB / 2.201 GB, free: 248 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00473/4.492, allocations: 2.453 MB / 2.203 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/4.492, allocations: 7.031 kB / 2.203 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/4.493, allocations: 205.8 kB / 2.204 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-05/4.493, allocations: 5.891 kB / 2.204 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.514e-05/4.493, allocations: 10.03 kB / 2.204 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/4.493, allocations: 8.172 kB / 2.204 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/4.493, allocations: 4.281 kB / 2.204 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/4.496, allocations: 1.703 MB / 2.205 GB, free: 247.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007818/4.497, allocations: 384.3 kB / 2.206 GB, free: 247 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001973/4.497, allocations: 9.547 kB / 2.206 GB, free: 246.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/4.498, allocations: 118 kB / 2.206 GB, free: 246.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/4.498, allocations: 73.36 kB / 2.206 GB, free: 246.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/4.498, allocations: 37.7 kB / 2.206 GB, free: 246.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001527/4.5, allocations: 0.8671 MB / 2.207 GB, free: 246.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/4.5, allocations: 0 / 2.207 GB, free: 246.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002834/4.503, allocations: 0.8358 MB / 2.208 GB, free: 246.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 63 * 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.001593/4.504, allocations: 0.777 MB / 2.208 GB, free: 246.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002412/4.507, allocations: 1.377 MB / 2.21 GB, free: 246.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/4.507, allocations: 1.062 kB / 2.21 GB, free: 246.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000749/4.507, allocations: 460.4 kB / 2.21 GB, free: 246.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/4.51, allocations: 0.5763 MB / 2.211 GB, free: 246.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004132/4.514, allocations: 2.007 MB / 2.213 GB, free: 246 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/4.516, allocations: 1.31 MB / 2.214 GB, free: 245.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00271/4.518, allocations: 0.5006 MB / 2.214 GB, free: 245.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/4.519, allocations: 91.19 kB / 2.215 GB, free: 245.3 MB / 1.151 GB Notification: Performance of SimCode: time 9.02e-07/4.519, allocations: 3.281 kB / 2.215 GB, free: 245.3 MB / 1.151 GB Notification: Performance of Templates: time 0.05772/4.576, allocations: 28.36 MB / 2.242 GB, free: 244.8 MB / 1.151 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","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches