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.007172/0.007172, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001468/0.001468, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.51/2.51, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 71.89 kB / 1.054 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7708/0.7722, 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.06419/0.8365, allocations: 62.65 MB / 1.269 GB, free: 14.76 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01953/0.856, allocations: 13.66 MB / 1.282 GB, free: 1.066 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.8587, allocations: 59.69 kB / 1.282 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003249/0.862, allocations: 0.9706 MB / 1.283 GB, free: 32 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007349/0.8694, allocations: 2.503 MB / 1.286 GB, free: 13.52 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004583/0.874, allocations: 1.644 MB / 1.287 GB, free: 11.88 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.006179/0.8802, allocations: 4.301 MB / 1.291 GB, free: 7.578 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002986/0.8832, allocations: 1.417 MB / 1.293 GB, free: 6.125 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004243/0.8875, allocations: 1.68 MB / 1.295 GB, free: 4.445 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.8898, allocations: 1.292 MB / 1.296 GB, free: 3.148 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000554/0.8904, allocations: 176 kB / 1.296 GB, free: 2.977 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003364/0.8938, allocations: 1.431 MB / 1.297 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007285/0.8945, allocations: 0.5062 MB / 1.298 GB, free: 1.035 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.8963, allocations: 1.003 MB / 1.299 GB, free: 28 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005143/0.9014, allocations: 3.168 MB / 1.302 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.9015, allocations: 0 / 1.302 GB, free: 12.85 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9015, allocations: 0 / 1.302 GB, free: 12.85 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.682e-05/0.9015, allocations: 0 / 1.302 GB, free: 12.85 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.005307/0.9069, allocations: 2.337 MB / 1.304 GB, free: 10.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.9069, allocations: 8.031 kB / 1.304 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001504/0.9084, allocations: 322.4 kB / 1.304 GB, free: 10.13 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002665/0.9111, allocations: 1.479 MB / 1.306 GB, free: 8.602 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.9113, allocations: 153.5 kB / 1.306 GB, free: 8.438 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.9115, allocations: 108 kB / 1.306 GB, free: 8.332 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/0.9142, allocations: 1.443 MB / 1.308 GB, free: 6.801 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.9143, allocations: 7.938 kB / 1.308 GB, free: 6.793 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/0.9144, allocations: 44 kB / 1.308 GB, free: 6.75 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-05/0.9145, allocations: 32 kB / 1.308 GB, free: 6.719 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00295/0.9174, allocations: 1.339 MB / 1.309 GB, free: 5.379 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.007967/0.9254, allocations: 6.624 MB / 1.315 GB, free: 14.31 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.9275, allocations: 1.178 MB / 1.317 GB, free: 13.05 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.9287, allocations: 0.5621 MB / 1.317 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008397/0.9296, allocations: 1.145 MB / 1.318 GB, free: 11.08 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.9296, allocations: 47.2 kB / 1.318 GB, free: 11.02 MB / 1.045 GB Notification: Performance of pre-optimization done (n=77): time 2.665e-06/0.9296, allocations: 0 / 1.318 GB, free: 11.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=77): time 0.003918/0.9336, allocations: 1.585 MB / 1.32 GB, free: 9.434 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.9336, allocations: 115.5 kB / 1.32 GB, free: 9.293 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/0.9355, allocations: 1.408 MB / 1.321 GB, free: 7.875 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.9356, allocations: 41.8 kB / 1.321 GB, free: 7.828 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/0.9361, allocations: 0.7163 MB / 1.322 GB, free: 7.102 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002453/0.9364, allocations: 264.1 kB / 1.322 GB, free: 6.84 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.9367, allocations: 178.5 kB / 1.323 GB, free: 6.66 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.9368, allocations: 341.9 kB / 1.323 GB, free: 6.32 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.938, allocations: 0.5004 MB / 1.323 GB, free: 5.816 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.9394, allocations: 0.7191 MB / 1.324 GB, free: 5.008 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.9418, allocations: 1.133 MB / 1.325 GB, free: 3.812 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.9418, allocations: 0 / 1.325 GB, free: 3.812 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003065/0.9449, allocations: 1.35 MB / 1.326 GB, free: 2.453 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.9449, allocations: 5.875 kB / 1.326 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.9449, allocations: 8 kB / 1.326 GB, free: 2.441 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.945, allocations: 11.98 kB / 1.326 GB, free: 2.43 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.9462, allocations: 272.2 kB / 1.327 GB, free: 2.164 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.9462, allocations: 11.94 kB / 1.327 GB, free: 2.152 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.9474, allocations: 158.9 kB / 1.327 GB, free: 1.996 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.269e-05/0.9475, allocations: 39.98 kB / 1.327 GB, free: 1.957 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001708/0.9492, allocations: 0.7946 MB / 1.328 GB, free: 1.156 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001336/0.9505, allocations: 0.723 MB / 1.328 GB, free: 352 kB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002364/0.9529, allocations: 1.117 MB / 1.33 GB, free: 15.16 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.209e-06/0.9529, allocations: 4 kB / 1.33 GB, free: 15.16 MB / 1.061 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003004/0.9559, allocations: 1.351 MB / 1.331 GB, free: 13.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.956, allocations: 12 kB / 1.331 GB, free: 13.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.956, allocations: 4 kB / 1.331 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.956, allocations: 8 kB / 1.331 GB, free: 13.77 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.9571, allocations: 271.6 kB / 1.331 GB, free: 13.51 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.9571, allocations: 15.88 kB / 1.331 GB, free: 13.49 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.9582, allocations: 135.2 kB / 1.331 GB, free: 13.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-05/0.9583, allocations: 43.92 kB / 1.331 GB, free: 13.32 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.0003249/0.9586, allocations: 236 kB / 1.332 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.9589, allocations: 150.1 kB / 1.332 GB, free: 12.93 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/0.9621, allocations: 1.482 MB / 1.333 GB, free: 11.41 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.9622, allocations: 8 kB / 1.333 GB, free: 11.41 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.9622, allocations: 3.984 kB / 1.333 GB, free: 11.4 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002363/0.9645, allocations: 1.113 MB / 1.334 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005467/0.97, allocations: 3.094 MB / 1.337 GB, free: 7.043 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.97, allocations: 4 kB / 1.337 GB, free: 7.039 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009403/0.971, allocations: 196.2 kB / 1.337 GB, free: 6.848 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/0.971, allocations: 8 kB / 1.337 GB, free: 6.84 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.829e-05/0.9711, allocations: 23.98 kB / 1.337 GB, free: 6.816 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.9711, allocations: 11.94 kB / 1.337 GB, free: 6.805 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.361e-06/0.9711, allocations: 7.938 kB / 1.337 GB, free: 6.797 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.9753, allocations: 2.068 MB / 1.339 GB, free: 4.656 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006382/0.976, allocations: 386.8 kB / 1.34 GB, free: 4.258 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002026/0.9762, allocations: 20 kB / 1.34 GB, free: 4.238 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.9773, allocations: 99.86 kB / 1.34 GB, free: 4.141 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.9775, allocations: 84.34 kB / 1.34 GB, free: 4.059 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.663e-05/0.9776, allocations: 55.83 kB / 1.34 GB, free: 4.004 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001477/0.9791, allocations: 1.076 MB / 1.341 GB, free: 2.934 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9791, allocations: 0 / 1.341 GB, free: 2.934 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001997/0.9811, allocations: 0.7916 MB / 1.342 GB, free: 2.141 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.0009027/0.982, allocations: 474.7 kB / 1.342 GB, free: 1.676 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004274/0.9863, allocations: 1.814 MB / 1.344 GB, free: 15.87 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.9863, allocations: 0 / 1.344 GB, free: 15.87 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.9878, allocations: 0.6444 MB / 1.345 GB, free: 15.22 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003422/0.9913, allocations: 0.8137 MB / 1.346 GB, free: 14.42 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.9956, allocations: 2.77 MB / 1.348 GB, free: 11.56 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008983/0.9965, allocations: 1.277 MB / 1.35 GB, free: 10.25 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.001563/0.9981, allocations: 415.2 kB / 1.35 GB, free: 9.844 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.9985, allocations: 131.4 kB / 1.35 GB, free: 9.719 MB / 1.076 GB Notification: Performance of SimCode: time 7.21e-07/0.9985, allocations: 0 / 1.35 GB, free: 9.719 MB / 1.076 GB Notification: Performance of Templates: time 0.05538/1.054, allocations: 33.68 MB / 1.383 GB, free: 8.418 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