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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.007958/0.007958, allocations: 98.38 kB / 15.73 MB, free: 6.012 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.002008/0.002008, allocations: 193.6 kB / 16.67 MB, free: 5.949 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.566/2.566, allocations: 469.4 MB / 0.7422 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.89 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2703, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.5991/0.8694, allocations: 62.64 MB / 1.281 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01826/0.8878, allocations: 13.67 MB / 1.294 GB, free: 9.945 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002579/0.8904, allocations: 63.94 kB / 1.294 GB, free: 9.922 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002827/0.8932, allocations: 0.9712 MB / 1.295 GB, free: 9.352 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.007354/0.9006, allocations: 2.503 MB / 1.298 GB, free: 7.863 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004791/0.9054, allocations: 1.647 MB / 1.299 GB, free: 6.961 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006324/0.9118, allocations: 4.296 MB / 1.304 GB, free: 4.875 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002256/0.914, allocations: 1.418 MB / 1.305 GB, free: 4.211 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004101/0.9182, allocations: 1.674 MB / 1.307 GB, free: 3.422 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.9208, allocations: 1.292 MB / 1.308 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000612/0.9214, allocations: 174.8 kB / 1.308 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00412/0.9256, allocations: 1.43 MB / 1.309 GB, free: 2.305 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000802/0.9264, allocations: 0.504 MB / 1.31 GB, free: 2.012 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001628/0.928, allocations: 1.007 MB / 1.311 GB, free: 1.379 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.006997/0.935, allocations: 3.183 MB / 1.314 GB, free: 188 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.9351, allocations: 3.938 kB / 1.314 GB, free: 184 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9351, allocations: 0 / 1.314 GB, free: 184 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.681e-05/0.9352, allocations: 5 kB / 1.314 GB, free: 180 kB / 1.014 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.005769/0.9409, allocations: 2.406 MB / 1.316 GB, free: 14.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.941, allocations: 14.3 kB / 1.316 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002436/0.9413, allocations: 164.8 kB / 1.316 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001547/0.9428, allocations: 328.2 kB / 1.317 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002814/0.9456, allocations: 1.482 MB / 1.318 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.9458, allocations: 162.2 kB / 1.318 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.946, allocations: 107.5 kB / 1.318 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002983/0.949, allocations: 1.445 MB / 1.32 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/0.9491, allocations: 5.188 kB / 1.32 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.9492, allocations: 43.62 kB / 1.32 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/0.9492, allocations: 30.14 kB / 1.32 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003257/0.9525, allocations: 1.344 MB / 1.321 GB, free: 12.25 MB / 1.029 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.008988/0.9615, allocations: 6.621 MB / 1.328 GB, free: 7.332 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.9638, allocations: 1.183 MB / 1.329 GB, free: 6.617 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001351/0.9651, allocations: 0.563 MB / 1.329 GB, free: 6.414 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008261/0.966, allocations: 1.148 MB / 1.331 GB, free: 5.082 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.966, allocations: 44.95 kB / 1.331 GB, free: 5.035 MB / 1.029 GB Notification: Performance of pre-optimization done (n=77): time 2.515e-06/0.966, allocations: 4 kB / 1.331 GB, free: 5.031 MB / 1.029 GB Notification: Performance of matching and sorting (n=77): time 0.004392/0.9704, allocations: 1.595 MB / 1.332 GB, free: 4.461 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.9705, allocations: 111 kB / 1.332 GB, free: 4.336 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002306/0.9728, allocations: 1.407 MB / 1.334 GB, free: 3.781 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.973, allocations: 43.95 kB / 1.334 GB, free: 3.738 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006297/0.9736, allocations: 0.7275 MB / 1.334 GB, free: 3.156 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.9739, allocations: 273.9 kB / 1.335 GB, free: 2.941 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003449/0.9743, allocations: 187 kB / 1.335 GB, free: 2.848 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.9744, allocations: 340.1 kB / 1.335 GB, free: 2.527 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.9757, allocations: 0.4926 MB / 1.336 GB, free: 2.359 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.9771, allocations: 0.7222 MB / 1.336 GB, free: 1.926 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/0.9797, allocations: 1.129 MB / 1.337 GB, free: 1.367 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.9797, allocations: 1.281 kB / 1.337 GB, free: 1.367 MB / 1.029 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003412/0.9832, allocations: 1.357 MB / 1.339 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.9832, allocations: 9.297 kB / 1.339 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.9832, allocations: 4.562 kB / 1.339 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.9832, allocations: 9.219 kB / 1.339 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.9844, allocations: 278.3 kB / 1.339 GB, free: 0.8164 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/0.9845, allocations: 16.56 kB / 1.339 GB, free: 0.8125 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.986, allocations: 157 kB / 1.339 GB, free: 0.7461 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.9861, allocations: 37.98 kB / 1.339 GB, free: 0.7422 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001858/0.988, allocations: 0.7963 MB / 1.34 GB, free: 276 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001494/0.9895, allocations: 0.7287 MB / 1.341 GB, free: 15.72 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002581/0.9921, allocations: 1.122 MB / 1.342 GB, free: 15.02 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.382e-06/0.9921, allocations: 2.781 kB / 1.342 GB, free: 15.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003413/0.9955, allocations: 1.351 MB / 1.343 GB, free: 14.32 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.9955, allocations: 9.094 kB / 1.343 GB, free: 14.32 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.9955, allocations: 4.688 kB / 1.343 GB, free: 14.32 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.9956, allocations: 8.25 kB / 1.343 GB, free: 14.32 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.9968, allocations: 275.5 kB / 1.343 GB, free: 14.24 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.346e-05/0.9968, allocations: 12.75 kB / 1.343 GB, free: 14.23 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.9984, allocations: 145.7 kB / 1.344 GB, free: 14.15 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.9985, allocations: 43.39 kB / 1.344 GB, free: 14.13 MB / 1.045 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.0003968/0.9989, allocations: 229.9 kB / 1.344 GB, free: 13.91 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006025/0.9995, allocations: 159.6 kB / 1.344 GB, free: 13.83 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/1.003, allocations: 1.476 MB / 1.345 GB, free: 12.93 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.025e-05/1.003, allocations: 7.344 kB / 1.345 GB, free: 12.93 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/1.003, allocations: 4 kB / 1.345 GB, free: 12.93 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002585/1.006, allocations: 1.115 MB / 1.347 GB, free: 12.27 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006794/1.013, allocations: 3.097 MB / 1.35 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/1.013, allocations: 3.938 kB / 1.35 GB, free: 10.11 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009917/1.014, allocations: 186.7 kB / 1.35 GB, free: 10.05 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.454e-05/1.014, allocations: 11.47 kB / 1.35 GB, free: 10.05 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.147e-05/1.014, allocations: 26.73 kB / 1.35 GB, free: 10.04 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-05/1.014, allocations: 10.72 kB / 1.35 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.014, allocations: 8.812 kB / 1.35 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004862/1.019, allocations: 2.076 MB / 1.352 GB, free: 8.75 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.02, allocations: 387.7 kB / 1.352 GB, free: 8.426 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004998/1.02, allocations: 26.06 kB / 1.352 GB, free: 8.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/1.022, allocations: 102 kB / 1.352 GB, free: 8.359 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/1.022, allocations: 75.28 kB / 1.352 GB, free: 8.316 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/1.022, allocations: 56.12 kB / 1.352 GB, free: 8.289 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001948/1.024, allocations: 1.086 MB / 1.354 GB, free: 7.695 MB / 1.045 GB Notification: Performance of sort global known variables: time 3.3e-07/1.024, allocations: 0 / 1.354 GB, free: 7.695 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.002949/1.027, allocations: 0.8062 MB / 1.354 GB, free: 7.527 MB / 1.045 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.005922/1.033, allocations: 2.985 MB / 1.357 GB, free: 5.559 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.004622/1.038, allocations: 1.819 MB / 1.359 GB, free: 4.684 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/1.038, allocations: 1.375 kB / 1.359 GB, free: 4.684 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001577/1.039, allocations: 0.6392 MB / 1.36 GB, free: 4.371 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004644/1.044, allocations: 0.8239 MB / 1.36 GB, free: 3.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/1.067, allocations: 12.51 MB / 1.373 GB, free: 10.75 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009861/1.068, allocations: 1.281 MB / 1.374 GB, free: 9.438 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001856/1.07, allocations: 412.1 kB / 1.374 GB, free: 9.027 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009689/1.071, allocations: 0.6164 MB / 1.375 GB, free: 8.41 MB / 1.061 GB Notification: Performance of SimCode: time 1.313e-06/1.071, allocations: 0 / 1.375 GB, free: 8.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08034/1.151, allocations: 46.92 MB / 1.421 GB, free: 9.992 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.11/11.26, allocations: 9.484 kB / 1.421 GB, free: 9.984 MB / 1.107 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 50 --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