Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.005626/0.005626, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001228/0.001228, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.403/1.403, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.3 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7521/0.7543, allocations: 140.4 MB / 0.9496 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06141/0.8158, allocations: 62.24 MB / 1.01 GB, free: 3.695 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01884/0.8347, allocations: 13.71 MB / 1.024 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003186/0.8379, allocations: 55.69 kB / 1.024 GB, free: 5.895 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003109/0.841, allocations: 0.8004 MB / 1.025 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007184/0.8483, allocations: 2.205 MB / 1.027 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.8528, allocations: 1.482 MB / 1.028 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007068/0.8599, allocations: 5.475 MB / 1.034 GB, free: 11.92 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002512/0.8624, allocations: 1.208 MB / 1.035 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003571/0.866, allocations: 1.404 MB / 1.036 GB, free: 9.27 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002462/0.8685, allocations: 1.291 MB / 1.037 GB, free: 7.973 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.000597/0.8691, allocations: 88 kB / 1.037 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003459/0.8726, allocations: 1.318 MB / 1.039 GB, free: 6.566 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0007739/0.8734, allocations: 438.3 kB / 1.039 GB, free: 6.137 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001972/0.8754, allocations: 0.921 MB / 1.04 GB, free: 5.211 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003633/0.879, allocations: 2.425 MB / 1.042 GB, free: 2.781 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.8791, allocations: 0 / 1.042 GB, free: 2.781 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8791, allocations: 0 / 1.042 GB, free: 2.781 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.000109/0.8792, allocations: 0 / 1.042 GB, free: 2.781 MB / 0.795 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.006211/0.8854, allocations: 2.334 MB / 1.045 GB, free: 396 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.8855, allocations: 12.03 kB / 1.045 GB, free: 384 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001714/0.8872, allocations: 326.3 kB / 1.045 GB, free: 56 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003066/0.8903, allocations: 1.447 MB / 1.046 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.8906, allocations: 161.4 kB / 1.047 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002794/0.8908, allocations: 112 kB / 1.047 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.8942, allocations: 1.441 MB / 1.048 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.8943, allocations: 3.938 kB / 1.048 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/0.8945, allocations: 44 kB / 1.048 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.763e-05/0.8945, allocations: 28 kB / 1.048 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003313/0.8978, allocations: 1.346 MB / 1.049 GB, free: 11.32 MB / 0.8106 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.009566/0.9074, allocations: 6.62 MB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/0.9097, allocations: 1.159 MB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.911, allocations: 0.5649 MB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/0.9121, allocations: 1.152 MB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.9121, allocations: 39.22 kB / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=77): time 2.395e-06/0.9122, allocations: 0 / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=77): time 0.004378/0.9165, allocations: 1.589 MB / 1.06 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.9166, allocations: 115.4 kB / 1.06 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.9187, allocations: 1.389 MB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.9188, allocations: 45.7 kB / 1.062 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006132/0.9194, allocations: 0.7202 MB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.9197, allocations: 264.1 kB / 1.063 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003147/0.9201, allocations: 174.5 kB / 1.063 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.9202, allocations: 334 kB / 1.063 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.9215, allocations: 0.5004 MB / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.9228, allocations: 0.7191 MB / 1.064 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002381/0.9252, allocations: 1.125 MB / 1.066 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.9252, allocations: 4 kB / 1.066 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00332/0.9286, allocations: 1.354 MB / 1.067 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.9286, allocations: 8 kB / 1.067 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.9286, allocations: 4 kB / 1.067 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.678e-05/0.9286, allocations: 8 kB / 1.067 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.9298, allocations: 276 kB / 1.067 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.059e-05/0.9299, allocations: 15.92 kB / 1.067 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001511/0.9314, allocations: 191 kB / 1.067 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.881e-05/0.9315, allocations: 39.98 kB / 1.067 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001763/0.9333, allocations: 0.7946 MB / 1.068 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001357/0.9346, allocations: 0.7191 MB / 1.069 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00243/0.9371, allocations: 1.121 MB / 1.07 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.868e-06/0.9371, allocations: 0 / 1.07 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003338/0.9404, allocations: 1.343 MB / 1.071 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.9405, allocations: 12.09 kB / 1.071 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.9405, allocations: 7.938 kB / 1.071 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.9405, allocations: 12 kB / 1.071 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.9417, allocations: 263.6 kB / 1.072 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.9417, allocations: 19.88 kB / 1.072 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/0.9433, allocations: 179.2 kB / 1.072 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.209e-05/0.9434, allocations: 39.92 kB / 1.072 GB, free: 3.23 MB / 0.8262 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.0003422/0.9437, allocations: 240 kB / 1.072 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003319/0.9441, allocations: 150.1 kB / 1.072 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.9473, allocations: 1.474 MB / 1.074 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.9474, allocations: 11.94 kB / 1.074 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.9474, allocations: 4 kB / 1.074 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002331/0.9497, allocations: 1.109 MB / 1.075 GB, free: 184 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005797/0.9555, allocations: 3.094 MB / 1.078 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.9556, allocations: 4.062 kB / 1.078 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009499/0.9565, allocations: 195.7 kB / 1.078 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.9566, allocations: 4 kB / 1.078 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.759e-05/0.9566, allocations: 27.92 kB / 1.078 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.9567, allocations: 11.94 kB / 1.078 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.9567, allocations: 4 kB / 1.078 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.9609, allocations: 2.072 MB / 1.08 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007748/0.9617, allocations: 378.8 kB / 1.08 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.962, allocations: 27.83 kB / 1.08 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.9633, allocations: 139.8 kB / 1.081 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.9635, allocations: 76.34 kB / 1.081 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.425e-05/0.9636, allocations: 43.97 kB / 1.081 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001497/0.9651, allocations: 1.068 MB / 1.082 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9651, allocations: 11.88 kB / 1.082 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002005/0.9671, allocations: 0.7915 MB / 1.082 GB, free: 8.031 MB / 0.8419 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.001/0.9681, allocations: 463.1 kB / 1.083 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00422/0.9723, allocations: 1.802 MB / 1.085 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.9723, allocations: 0 / 1.085 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.9738, allocations: 0.621 MB / 1.085 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/0.9779, allocations: 0.7807 MB / 1.086 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005298/0.9832, allocations: 3.375 MB / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009824/0.9842, allocations: 1.269 MB / 1.091 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.9848, allocations: 135.4 kB / 1.091 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of SimCode: time 8.12e-07/0.9849, allocations: 0 / 1.091 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Templates: time 0.0437/1.029, allocations: 28.49 MB / 1.119 GB, free: 3.195 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches