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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.005089/0.005089, allocations: 99.41 kB / 15.73 MB, free: 5.996 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.001319/0.001319, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.535/2.535, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 55.91 kB / 1.054 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8627/0.8639, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06442/0.9284, allocations: 62.64 MB / 1.269 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01962/0.9481, allocations: 13.66 MB / 1.282 GB, free: 1.074 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00349/0.9516, allocations: 59.69 kB / 1.282 GB, free: 1.016 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003371/0.955, allocations: 0.951 MB / 1.283 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007712/0.9628, allocations: 2.397 MB / 1.286 GB, free: 13.65 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004862/0.9677, allocations: 1.626 MB / 1.287 GB, free: 12.04 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006674/0.9744, allocations: 4.287 MB / 1.291 GB, free: 7.742 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002708/0.9771, allocations: 1.421 MB / 1.293 GB, free: 6.285 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/0.9814, allocations: 1.67 MB / 1.294 GB, free: 4.613 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002518/0.984, allocations: 1.292 MB / 1.296 GB, free: 3.316 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0006136/0.9846, allocations: 180 kB / 1.296 GB, free: 3.141 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.9885, allocations: 1.431 MB / 1.297 GB, free: 1.707 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0009376/0.9894, allocations: 0.5062 MB / 1.298 GB, free: 1.199 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002044/0.9915, allocations: 1.003 MB / 1.299 GB, free: 196 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005635/0.9971, allocations: 3.172 MB / 1.302 GB, free: 13.01 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.9972, allocations: 0 / 1.302 GB, free: 13.01 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.304e-06/0.9972, allocations: 0 / 1.302 GB, free: 13.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.53e-05/0.9972, allocations: 0 / 1.302 GB, free: 13.01 MB / 1.029 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.004966/1.002, allocations: 2.329 MB / 1.304 GB, free: 10.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/1.002, allocations: 15.91 kB / 1.304 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/1.004, allocations: 322.4 kB / 1.304 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/1.006, allocations: 1.479 MB / 1.306 GB, free: 8.762 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/1.007, allocations: 157.5 kB / 1.306 GB, free: 8.594 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/1.007, allocations: 108 kB / 1.306 GB, free: 8.488 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002933/1.01, allocations: 1.441 MB / 1.307 GB, free: 6.957 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/1.01, allocations: 3.938 kB / 1.307 GB, free: 6.953 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/1.01, allocations: 44 kB / 1.307 GB, free: 6.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.804e-05/1.01, allocations: 35.98 kB / 1.308 GB, free: 6.875 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/1.013, allocations: 1.339 MB / 1.309 GB, free: 5.535 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.009302/1.023, allocations: 6.624 MB / 1.315 GB, free: 14.46 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/1.025, allocations: 1.164 MB / 1.316 GB, free: 13.22 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/1.026, allocations: 0.5677 MB / 1.317 GB, free: 12.65 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001081/1.027, allocations: 1.149 MB / 1.318 GB, free: 11.24 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.338e-05/1.028, allocations: 47.16 kB / 1.318 GB, free: 11.19 MB / 1.045 GB Notification: Performance of pre-optimization done (n=77): time 3.006e-06/1.028, allocations: 0 / 1.318 GB, free: 11.19 MB / 1.045 GB Notification: Performance of matching and sorting (n=77): time 0.004638/1.032, allocations: 1.581 MB / 1.32 GB, free: 9.602 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/1.032, allocations: 115.5 kB / 1.32 GB, free: 9.461 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/1.035, allocations: 1.412 MB / 1.321 GB, free: 8.039 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001371/1.035, allocations: 41.7 kB / 1.321 GB, free: 7.992 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/1.036, allocations: 0.7125 MB / 1.322 GB, free: 7.27 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002683/1.036, allocations: 272.1 kB / 1.322 GB, free: 7 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/1.036, allocations: 178.5 kB / 1.322 GB, free: 6.82 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.036, allocations: 338 kB / 1.323 GB, free: 6.484 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/1.038, allocations: 0.4888 MB / 1.323 GB, free: 5.992 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/1.039, allocations: 0.7269 MB / 1.324 GB, free: 5.176 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/1.042, allocations: 1.133 MB / 1.325 GB, free: 3.98 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.042, allocations: 0 / 1.325 GB, free: 3.98 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003422/1.045, allocations: 1.35 MB / 1.326 GB, free: 2.621 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/1.045, allocations: 8 kB / 1.326 GB, free: 2.613 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/1.045, allocations: 4 kB / 1.326 GB, free: 2.609 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/1.045, allocations: 16.55 kB / 1.326 GB, free: 2.594 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/1.046, allocations: 271.6 kB / 1.327 GB, free: 2.328 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/1.046, allocations: 15.88 kB / 1.327 GB, free: 2.312 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/1.048, allocations: 158.9 kB / 1.327 GB, free: 2.156 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.159e-05/1.048, allocations: 39.98 kB / 1.327 GB, free: 2.117 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001747/1.05, allocations: 0.8024 MB / 1.328 GB, free: 1.309 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001451/1.051, allocations: 0.7152 MB / 1.328 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002557/1.054, allocations: 1.125 MB / 1.329 GB, free: 15.31 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.427e-06/1.054, allocations: 0 / 1.329 GB, free: 15.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003395/1.057, allocations: 1.351 MB / 1.331 GB, free: 13.95 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/1.057, allocations: 10.03 kB / 1.331 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/1.057, allocations: 4 kB / 1.331 GB, free: 13.94 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/1.057, allocations: 8 kB / 1.331 GB, free: 13.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/1.058, allocations: 271.7 kB / 1.331 GB, free: 13.67 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/1.058, allocations: 11.94 kB / 1.331 GB, free: 13.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/1.06, allocations: 147.2 kB / 1.331 GB, free: 13.51 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.204e-05/1.06, allocations: 39.88 kB / 1.331 GB, free: 13.47 MB / 1.061 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.0003141/1.06, allocations: 241.5 kB / 1.331 GB, free: 13.23 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/1.06, allocations: 150.1 kB / 1.332 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/1.064, allocations: 1.478 MB / 1.333 GB, free: 11.57 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/1.064, allocations: 8 kB / 1.333 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.064, allocations: 0 / 1.333 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002585/1.066, allocations: 1.109 MB / 1.334 GB, free: 10.42 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006037/1.072, allocations: 3.09 MB / 1.337 GB, free: 7.211 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.072, allocations: 4 kB / 1.337 GB, free: 7.207 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009499/1.073, allocations: 196.3 kB / 1.337 GB, free: 7.016 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.053e-05/1.073, allocations: 8 kB / 1.337 GB, free: 7.008 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.2e-05/1.073, allocations: 19.98 kB / 1.337 GB, free: 6.988 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/1.073, allocations: 11.98 kB / 1.337 GB, free: 6.977 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.073, allocations: 11.88 kB / 1.337 GB, free: 6.965 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004542/1.078, allocations: 2.068 MB / 1.339 GB, free: 4.824 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007916/1.079, allocations: 382.7 kB / 1.34 GB, free: 4.43 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002127/1.079, allocations: 27.98 kB / 1.34 GB, free: 4.402 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/1.08, allocations: 99.8 kB / 1.34 GB, free: 4.305 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/1.08, allocations: 84.41 kB / 1.34 GB, free: 4.223 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-05/1.08, allocations: 51.91 kB / 1.34 GB, free: 4.172 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001479/1.082, allocations: 1.076 MB / 1.341 GB, free: 3.102 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.9e-07/1.082, allocations: 3.938 kB / 1.341 GB, free: 3.098 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001988/1.084, allocations: 0.7994 MB / 1.342 GB, free: 2.297 MB / 1.061 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.001013/1.085, allocations: 478.8 kB / 1.342 GB, free: 1.828 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004773/1.09, allocations: 1.814 MB / 1.344 GB, free: 20 kB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/1.09, allocations: 0 / 1.344 GB, free: 20 kB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00168/1.091, allocations: 0.6444 MB / 1.345 GB, free: 15.37 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004051/1.096, allocations: 0.8125 MB / 1.345 GB, free: 14.57 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004825/1.1, allocations: 2.766 MB / 1.348 GB, free: 11.72 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009695/1.101, allocations: 1.277 MB / 1.349 GB, free: 10.41 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001841/1.103, allocations: 404.2 kB / 1.35 GB, free: 10.01 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004094/1.104, allocations: 135.3 kB / 1.35 GB, free: 9.883 MB / 1.076 GB Notification: Performance of SimCode: time 1.263e-06/1.104, allocations: 0 / 1.35 GB, free: 9.883 MB / 1.076 GB Notification: Performance of Templates: time 0.05366/1.157, allocations: 34.27 MB / 1.383 GB, free: 8 MB / 1.107 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