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.001547/0.001547, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001886/0.001887, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.333/1.333, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.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.38/2.38, allocations: 390.2 MB / 0.6642 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 64.08 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5907/0.5919, allocations: 140.4 MB / 0.9489 GB, free: 9.516 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06198/0.654, allocations: 62.24 MB / 1.01 GB, free: 3.969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01926/0.6733, allocations: 13.72 MB / 1.023 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.6759, allocations: 55.69 kB / 1.023 GB, free: 6.156 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002416/0.6784, allocations: 0.8003 MB / 1.024 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006601/0.685, allocations: 2.208 MB / 1.026 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003897/0.6889, allocations: 1.473 MB / 1.028 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006982/0.6959, allocations: 5.479 MB / 1.033 GB, free: 12.18 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002155/0.6981, allocations: 1.204 MB / 1.034 GB, free: 10.95 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003251/0.7013, allocations: 1.412 MB / 1.035 GB, free: 9.531 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002318/0.7037, allocations: 1.284 MB / 1.037 GB, free: 8.242 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0004232/0.7041, allocations: 96 kB / 1.037 GB, free: 8.148 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.7076, allocations: 1.317 MB / 1.038 GB, free: 6.828 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.00057/0.7082, allocations: 430.4 kB / 1.038 GB, free: 6.406 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001486/0.7097, allocations: 0.9249 MB / 1.039 GB, free: 5.477 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004578/0.7142, allocations: 3.077 MB / 1.042 GB, free: 2.391 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.7143, allocations: 0 / 1.042 GB, free: 2.391 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.72e-07/0.7143, allocations: 0 / 1.042 GB, free: 2.391 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.811e-05/0.7143, allocations: 4 kB / 1.042 GB, free: 2.387 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.004666/0.719, allocations: 2.325 MB / 1.045 GB, free: 16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.719, allocations: 16 kB / 1.045 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.7204, allocations: 314.4 kB / 1.045 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002226/0.7227, allocations: 1.455 MB / 1.046 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.7229, allocations: 153.5 kB / 1.047 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.723, allocations: 112 kB / 1.047 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/0.7258, allocations: 1.447 MB / 1.048 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.7258, allocations: 0 / 1.048 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.726, allocations: 47.98 kB / 1.048 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.29e-05/0.726, allocations: 31.94 kB / 1.048 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003221/0.7292, allocations: 1.339 MB / 1.049 GB, free: 10.94 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.008248/0.7375, allocations: 6.628 MB / 1.056 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002147/0.7397, allocations: 1.166 MB / 1.057 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.741, allocations: 0.5609 MB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008178/0.7418, allocations: 1.149 MB / 1.059 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.7419, allocations: 39.88 kB / 1.059 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=77): time 6.893e-06/0.7419, allocations: 0 / 1.059 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of matching and sorting (n=77): time 0.004138/0.746, allocations: 1.597 MB / 1.06 GB, free: 15 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.7461, allocations: 115.4 kB / 1.06 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.7478, allocations: 1.393 MB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.314e-05/0.7479, allocations: 41.7 kB / 1.062 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.7485, allocations: 0.7163 MB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.7487, allocations: 264.2 kB / 1.063 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003071/0.7491, allocations: 170.5 kB / 1.063 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7492, allocations: 337.9 kB / 1.063 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.7504, allocations: 0.4966 MB / 1.064 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.7519, allocations: 0.7269 MB / 1.064 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.7544, allocations: 1.125 MB / 1.066 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.7544, allocations: 0 / 1.066 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003126/0.7575, allocations: 1.35 MB / 1.067 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.7575, allocations: 11.94 kB / 1.067 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.7576, allocations: 4.562 kB / 1.067 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.7576, allocations: 8 kB / 1.067 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.7588, allocations: 275.5 kB / 1.067 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.621e-05/0.7588, allocations: 19.98 kB / 1.067 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.7601, allocations: 190.9 kB / 1.067 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.7602, allocations: 39.98 kB / 1.067 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001671/0.7619, allocations: 0.7946 MB / 1.068 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001389/0.7633, allocations: 0.7152 MB / 1.069 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002496/0.7658, allocations: 1.129 MB / 1.07 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.45e-06/0.7658, allocations: 4 kB / 1.07 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003137/0.769, allocations: 1.343 MB / 1.071 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.769, allocations: 8 kB / 1.071 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.769, allocations: 4 kB / 1.071 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.769, allocations: 12 kB / 1.071 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.7702, allocations: 268 kB / 1.072 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.955e-05/0.7703, allocations: 19.88 kB / 1.072 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.7715, allocations: 179.2 kB / 1.072 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.7716, allocations: 35.98 kB / 1.072 GB, free: 2.836 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.0002975/0.7719, allocations: 236 kB / 1.072 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003031/0.7722, allocations: 150.1 kB / 1.072 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.7755, allocations: 1.474 MB / 1.074 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.7755, allocations: 15.92 kB / 1.074 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.7755, allocations: 0 / 1.074 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002603/0.7781, allocations: 1.105 MB / 1.075 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006096/0.7843, allocations: 3.098 MB / 1.078 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.7843, allocations: 4 kB / 1.078 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000941/0.7852, allocations: 191.7 kB / 1.078 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.7853, allocations: 4.375 kB / 1.078 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.839e-05/0.7853, allocations: 31.92 kB / 1.078 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.7854, allocations: 8 kB / 1.078 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.7854, allocations: 7.938 kB / 1.078 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/0.7897, allocations: 2.064 MB / 1.08 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007205/0.7904, allocations: 378.8 kB / 1.08 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003577/0.7908, allocations: 27.83 kB / 1.08 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.7921, allocations: 143.8 kB / 1.08 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.7923, allocations: 80.34 kB / 1.081 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-05/0.7924, allocations: 43.97 kB / 1.081 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001589/0.794, allocations: 1.068 MB / 1.082 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.794, allocations: 0 / 1.082 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002237/0.7963, allocations: 0.7877 MB / 1.082 GB, free: 7.656 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.001103/0.7974, allocations: 471.8 kB / 1.083 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004436/0.8018, allocations: 1.798 MB / 1.085 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/0.8019, allocations: 448 / 1.085 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.8036, allocations: 0.6443 MB / 1.085 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/0.8078, allocations: 0.7782 MB / 1.086 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005246/0.8131, allocations: 3.311 MB / 1.089 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.8143, allocations: 1.277 MB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002104/0.8164, allocations: 412.1 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000485/0.8169, allocations: 123.4 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of SimCode: time 7.51e-07/0.8169, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of Templates: time 0.05237/0.8693, allocations: 31.63 MB / 1.122 GB, free: 15.52 MB / 0.8887 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches