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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005425/0.005425, allocations: 101.7 kB / 15.73 MB, free: 6.445 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.001564/0.001564, allocations: 193 kB / 16.67 MB, free: 6.355 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.89 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2892, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.5704/0.8596, allocations: 62.74 MB / 1.303 GB, free: 6.891 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01978/0.8794, allocations: 13.67 MB / 1.316 GB, free: 13.06 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002412/0.8818, allocations: 60.66 kB / 1.316 GB, free: 13.04 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.002892/0.8848, allocations: 0.9432 MB / 1.317 GB, free: 12.48 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.007049/0.8919, allocations: 2.427 MB / 1.319 GB, free: 11.04 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.004556/0.8964, allocations: 1.6 MB / 1.321 GB, free: 10.15 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.006538/0.903, allocations: 4.312 MB / 1.325 GB, free: 8.051 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.9055, allocations: 1.407 MB / 1.327 GB, free: 7.383 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004266/0.9097, allocations: 1.78 MB / 1.328 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002621/0.9124, allocations: 1.289 MB / 1.33 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0007414/0.9131, allocations: 175.9 kB / 1.33 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003924/0.9171, allocations: 1.426 MB / 1.331 GB, free: 5.418 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0008371/0.9179, allocations: 0.505 MB / 1.332 GB, free: 5.125 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.00163/0.9196, allocations: 1.013 MB / 1.333 GB, free: 4.488 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.00498/0.9245, allocations: 3.187 MB / 1.336 GB, free: 3.293 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.9246, allocations: 4 kB / 1.336 GB, free: 3.289 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9246, allocations: 0 / 1.336 GB, free: 3.289 MB / 1.045 GB Notification: Performance of Transformations before backend: time 2.934e-05/0.9246, allocations: 0 / 1.336 GB, free: 3.289 MB / 1.045 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.004764/0.9294, allocations: 2.398 MB / 1.338 GB, free: 1.781 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.9294, allocations: 9.625 kB / 1.338 GB, free: 1.781 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002331/0.9297, allocations: 164.8 kB / 1.338 GB, free: 1.672 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003212/0.9329, allocations: 0.5435 MB / 1.339 GB, free: 1.543 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/0.936, allocations: 1.505 MB / 1.34 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.9362, allocations: 164 kB / 1.34 GB, free: 0.543 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001808/0.9364, allocations: 105.5 kB / 1.34 GB, free: 0.5078 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003712/0.9401, allocations: 1.559 MB / 1.342 GB, free: 15.81 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.9402, allocations: 1.125 kB / 1.342 GB, free: 15.81 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.9403, allocations: 48.66 kB / 1.342 GB, free: 15.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.327e-05/0.9404, allocations: 33.23 kB / 1.342 GB, free: 15.77 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00448/0.9449, allocations: 1.564 MB / 1.344 GB, free: 15.27 MB / 1.061 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.009398/0.9543, allocations: 6.935 MB / 1.35 GB, free: 9.766 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.9571, allocations: 1.286 MB / 1.352 GB, free: 8.879 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/0.959, allocations: 0.6672 MB / 1.352 GB, free: 8.543 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000971/0.96, allocations: 1.145 MB / 1.353 GB, free: 7.188 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.9601, allocations: 48.34 kB / 1.353 GB, free: 7.137 MB / 1.061 GB Notification: Performance of pre-optimization done (n=77): time 2.575e-06/0.9601, allocations: 0 / 1.353 GB, free: 7.137 MB / 1.061 GB Notification: Performance of matching and sorting (n=77): time 0.006018/0.9661, allocations: 1.906 MB / 1.355 GB, free: 6.184 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/0.9662, allocations: 110.8 kB / 1.355 GB, free: 6.055 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/0.9682, allocations: 1.407 MB / 1.357 GB, free: 5.289 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.9683, allocations: 43.08 kB / 1.357 GB, free: 5.246 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000619/0.9689, allocations: 0.7218 MB / 1.358 GB, free: 4.605 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.9692, allocations: 277.6 kB / 1.358 GB, free: 4.363 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003421/0.9695, allocations: 180.8 kB / 1.358 GB, free: 4.258 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.9697, allocations: 345.8 kB / 1.358 GB, free: 3.922 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.9715, allocations: 0.6035 MB / 1.359 GB, free: 3.609 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/0.9736, allocations: 0.8315 MB / 1.36 GB, free: 3.023 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.9773, allocations: 1.315 MB / 1.361 GB, free: 2.242 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.9774, allocations: 4.812 kB / 1.361 GB, free: 2.238 MB / 1.061 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004476/0.9818, allocations: 1.564 MB / 1.363 GB, free: 1.441 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.9819, allocations: 7.531 kB / 1.363 GB, free: 1.441 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.9819, allocations: 4.594 kB / 1.363 GB, free: 1.441 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.9819, allocations: 9.25 kB / 1.363 GB, free: 1.441 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.9835, allocations: 310.4 kB / 1.363 GB, free: 1.348 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.9835, allocations: 8.719 kB / 1.363 GB, free: 1.348 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001505/0.985, allocations: 201.7 kB / 1.363 GB, free: 1.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.9851, allocations: 39.36 kB / 1.363 GB, free: 1.219 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002332/0.9875, allocations: 0.9093 MB / 1.364 GB, free: 0.6914 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002031/0.9895, allocations: 0.8227 MB / 1.365 GB, free: 116 kB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003702/0.9932, allocations: 1.312 MB / 1.366 GB, free: 15.33 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.027e-06/0.9932, allocations: 2.438 kB / 1.366 GB, free: 15.33 MB / 1.076 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.004327/0.9976, allocations: 1.554 MB / 1.368 GB, free: 14.54 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.9976, allocations: 10.64 kB / 1.368 GB, free: 14.54 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.9976, allocations: 5.125 kB / 1.368 GB, free: 14.54 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.9976, allocations: 8.25 kB / 1.368 GB, free: 14.54 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.9992, allocations: 309.5 kB / 1.368 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.9992, allocations: 10.31 kB / 1.368 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/1.001, allocations: 174.6 kB / 1.368 GB, free: 14.35 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.954e-05/1.001, allocations: 44.36 kB / 1.368 GB, free: 14.34 MB / 1.076 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.0003512/1.001, allocations: 235 kB / 1.368 GB, free: 14.11 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003049/1.001, allocations: 163.6 kB / 1.368 GB, free: 14.02 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004692/1.006, allocations: 1.687 MB / 1.37 GB, free: 13.03 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.989e-05/1.006, allocations: 15.67 kB / 1.37 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.006, allocations: 0 / 1.37 GB, free: 13.02 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003839/1.01, allocations: 1.309 MB / 1.371 GB, free: 12.29 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007116/1.017, allocations: 3.397 MB / 1.375 GB, free: 9.949 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/1.017, allocations: 12.66 kB / 1.375 GB, free: 9.941 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/1.018, allocations: 229.5 kB / 1.375 GB, free: 9.867 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/1.019, allocations: 8.094 kB / 1.375 GB, free: 9.867 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.357e-05/1.019, allocations: 29.64 kB / 1.375 GB, free: 9.848 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/1.019, allocations: 9.281 kB / 1.375 GB, free: 9.848 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/1.019, allocations: 13.31 kB / 1.375 GB, free: 9.84 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006098/1.025, allocations: 2.406 MB / 1.377 GB, free: 8.414 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000667/1.025, allocations: 403 kB / 1.378 GB, free: 8.078 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/1.026, allocations: 21.77 kB / 1.378 GB, free: 8.066 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/1.027, allocations: 135.8 kB / 1.378 GB, free: 8.004 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/1.027, allocations: 88.19 kB / 1.378 GB, free: 7.949 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.027, allocations: 47.2 kB / 1.378 GB, free: 7.93 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001504/1.029, allocations: 1.078 MB / 1.379 GB, free: 7.344 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.8e-07/1.029, allocations: 0 / 1.379 GB, free: 7.344 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.001972/1.031, allocations: 0.8213 MB / 1.38 GB, free: 7.176 MB / 1.076 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.007271/1.038, allocations: 3.325 MB / 1.383 GB, free: 5.051 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.006217/1.044, allocations: 2.134 MB / 1.385 GB, free: 3.141 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.044, allocations: 4.125 kB / 1.385 GB, free: 3.137 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.00226/1.047, allocations: 0.7496 MB / 1.386 GB, free: 2.387 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003821/1.051, allocations: 0.83 MB / 1.387 GB, free: 1.57 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02438/1.075, allocations: 13.22 MB / 1.4 GB, free: 3.906 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009678/1.076, allocations: 1.277 MB / 1.401 GB, free: 2.602 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001608/1.078, allocations: 420.2 kB / 1.401 GB, free: 2.184 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.079, allocations: 0.6203 MB / 1.402 GB, free: 1.562 MB / 1.092 GB Notification: Performance of SimCode: time 6.92e-07/1.079, allocations: 4 kB / 1.402 GB, free: 1.559 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09083/1.169, allocations: 47.56 MB / 1.448 GB, free: 2.516 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.85, allocations: 21.91 kB / 1.448 GB, free: 2.5 MB / 1.139 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv --start-time 0 --stop-time 14400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches