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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001554/0.001554, allocations: 110.6 kB / 16.27 MB, free: 5.984 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.00164/0.001641, allocations: 189 kB / 17.19 MB, free: 5.609 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.39/1.39, allocations: 222.9 MB / 240.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.259/2.259, allocations: 390.3 MB / 0.6653 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 62.91 kB / 0.8132 GB, free: 33.14 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2917, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06237/0.3541, allocations: 62.64 MB / 1.011 GB, free: 10 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01874/0.3729, allocations: 13.65 MB / 1.025 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002828/0.3758, allocations: 59.69 kB / 1.025 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003577/0.3795, allocations: 0.9472 MB / 1.026 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.008299/0.3878, allocations: 2.386 MB / 1.028 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005779/0.3936, allocations: 1.624 MB / 1.03 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.007288/0.4009, allocations: 4.279 MB / 1.034 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.404, allocations: 1.418 MB / 1.035 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.4089, allocations: 1.632 MB / 1.037 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.4116, allocations: 1.291 MB / 1.038 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0007374/0.4124, allocations: 176 kB / 1.038 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00411/0.4165, allocations: 1.423 MB / 1.04 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000968/0.4175, allocations: 0.4984 MB / 1.04 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.002246/0.4197, allocations: 1.007 MB / 1.041 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.006568/0.4263, allocations: 3.135 MB / 1.044 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4264, allocations: 0 / 1.044 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4264, allocations: 0 / 1.044 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0001071/0.4265, allocations: 0 / 1.044 GB, free: 8.367 MB / 0.8262 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.006045/0.4325, allocations: 2.337 MB / 1.046 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4326, allocations: 8.031 kB / 1.046 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001479/0.4341, allocations: 314.4 kB / 1.047 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002446/0.4366, allocations: 1.412 MB / 1.048 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.4367, allocations: 157.5 kB / 1.048 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.4369, allocations: 108 kB / 1.048 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.4398, allocations: 1.441 MB / 1.05 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.4398, allocations: 3.938 kB / 1.05 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.4399, allocations: 44 kB / 1.05 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.594e-05/0.44, allocations: 35.98 kB / 1.05 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003064/0.443, allocations: 1.339 MB / 1.051 GB, free: 0.9609 MB / 0.8262 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.008933/0.452, allocations: 6.678 MB / 1.058 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.4543, allocations: 1.171 MB / 1.059 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.4556, allocations: 0.5571 MB / 1.059 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009033/0.4565, allocations: 1.145 MB / 1.061 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.4566, allocations: 43.22 kB / 1.061 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 2.905e-06/0.4566, allocations: 4 kB / 1.061 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.004481/0.4611, allocations: 1.589 MB / 1.062 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.4612, allocations: 119.5 kB / 1.062 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.4637, allocations: 1.405 MB / 1.064 GB, free: 3.418 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.4639, allocations: 41.7 kB / 1.064 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007265/0.4646, allocations: 0.7085 MB / 1.064 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003199/0.465, allocations: 272.1 kB / 1.065 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003744/0.4654, allocations: 178.5 kB / 1.065 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4655, allocations: 334 kB / 1.065 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.4668, allocations: 0.4966 MB / 1.066 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.4684, allocations: 0.7272 MB / 1.066 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.4711, allocations: 1.125 MB / 1.067 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.4712, allocations: 4 kB / 1.067 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003572/0.4747, allocations: 1.355 MB / 1.069 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.4748, allocations: 10.5 kB / 1.069 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4748, allocations: 4 kB / 1.069 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.4748, allocations: 8 kB / 1.069 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.4761, allocations: 275.6 kB / 1.069 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.523e-05/0.4761, allocations: 11.94 kB / 1.069 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4775, allocations: 154.9 kB / 1.069 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.4777, allocations: 39.98 kB / 1.069 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001922/0.4796, allocations: 0.7946 MB / 1.07 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001506/0.4811, allocations: 0.7191 MB / 1.071 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002675/0.4838, allocations: 1.125 MB / 1.072 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.444e-06/0.4838, allocations: 4 kB / 1.072 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003474/0.4873, allocations: 1.339 MB / 1.073 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.4874, allocations: 8 kB / 1.073 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4874, allocations: 4 kB / 1.073 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4874, allocations: 19.92 kB / 1.073 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.4886, allocations: 264.2 kB / 1.073 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.623e-05/0.4886, allocations: 19.92 kB / 1.073 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.49, allocations: 139.2 kB / 1.074 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.4902, allocations: 39.98 kB / 1.074 GB, free: 8.863 MB / 0.8575 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.0003864/0.4905, allocations: 232.1 kB / 1.074 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005763/0.4911, allocations: 150.1 kB / 1.074 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003519/0.4947, allocations: 1.474 MB / 1.075 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/0.4947, allocations: 11.94 kB / 1.075 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4947, allocations: 0 / 1.075 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002542/0.4973, allocations: 1.105 MB / 1.076 GB, free: 5.828 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006756/0.504, allocations: 3.101 MB / 1.079 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.5041, allocations: 8 kB / 1.079 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009773/0.5051, allocations: 188.2 kB / 1.08 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.891e-05/0.5051, allocations: 15.94 kB / 1.08 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.048e-05/0.5052, allocations: 31.92 kB / 1.08 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.289e-05/0.5052, allocations: 11.92 kB / 1.08 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.5052, allocations: 8 kB / 1.08 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004718/0.5099, allocations: 2.06 MB / 1.082 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.5395/1.049, allocations: 380.1 kB / 1.082 GB, free: 130.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004806/1.05, allocations: 25.72 kB / 1.082 GB, free: 130.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/1.051, allocations: 101.8 kB / 1.082 GB, free: 130.9 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/1.052, allocations: 81.86 kB / 1.082 GB, free: 130.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/1.052, allocations: 43.31 kB / 1.082 GB, free: 130.9 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002005/1.054, allocations: 1.078 MB / 1.083 GB, free: 130.8 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.31e-07/1.054, allocations: 0 / 1.083 GB, free: 130.8 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00271/1.057, allocations: 0.8033 MB / 1.084 GB, free: 130.8 MB / 0.8575 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.001216/1.058, allocations: 478.2 kB / 1.085 GB, free: 130.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005519/1.063, allocations: 1.877 MB / 1.086 GB, free: 130.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/1.063, allocations: 1.5 kB / 1.086 GB, free: 130.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001741/1.065, allocations: 0.6228 MB / 1.087 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004702/1.07, allocations: 0.8146 MB / 1.088 GB, free: 129.9 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005878/1.076, allocations: 2.853 MB / 1.091 GB, free: 128.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/1.077, allocations: 1.273 MB / 1.092 GB, free: 127.7 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008342/1.078, allocations: 139.2 kB / 1.092 GB, free: 127.7 MB / 0.8575 GB Notification: Performance of SimCode: time 8.11e-07/1.078, allocations: 0 / 1.092 GB, free: 127.7 MB / 0.8575 GB Notification: Performance of Templates: time 0.06572/1.144, allocations: 28.71 MB / 1.12 GB, free: 118 MB / 0.8575 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