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.0011/0.0011, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001051/0.001051, allocations: 193 kB / 17.29 MB, free: 5.48 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.395/1.395, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.205/2.205, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 66.44 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2533, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05989/0.3133, allocations: 62.64 MB / 1.012 GB, free: 9.172 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01826/0.3316, allocations: 13.65 MB / 1.026 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00246/0.3341, allocations: 59.69 kB / 1.026 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.3368, allocations: 0.9433 MB / 1.027 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006249/0.3431, allocations: 2.386 MB / 1.029 GB, free: 8.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004119/0.3472, allocations: 1.632 MB / 1.031 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.005586/0.3528, allocations: 4.283 MB / 1.035 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002128/0.355, allocations: 1.41 MB / 1.036 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00381/0.3588, allocations: 1.65 MB / 1.038 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002135/0.361, allocations: 1.288 MB / 1.039 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0004098/0.3614, allocations: 180 kB / 1.039 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003163/0.3646, allocations: 1.427 MB / 1.041 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000567/0.3652, allocations: 0.5062 MB / 1.041 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.3665, allocations: 0.9992 MB / 1.042 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.005278/0.3718, allocations: 3.174 MB / 1.045 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3718, allocations: 0 / 1.045 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3718, allocations: 0 / 1.045 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.929e-05/0.3719, allocations: 0 / 1.045 GB, free: 7.477 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.004722/0.3766, allocations: 2.333 MB / 1.047 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.3767, allocations: 8.031 kB / 1.047 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.3781, allocations: 322.3 kB / 1.048 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.3809, allocations: 1.474 MB / 1.049 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.381, allocations: 157.5 kB / 1.049 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.3812, allocations: 111.9 kB / 1.049 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002846/0.3841, allocations: 1.447 MB / 1.051 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.3841, allocations: 3.938 kB / 1.051 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.3843, allocations: 44 kB / 1.051 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/0.3843, allocations: 28 kB / 1.051 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003094/0.3874, allocations: 1.347 MB / 1.052 GB, free: 15.99 MB / 0.8419 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.008924/0.3963, allocations: 6.624 MB / 1.059 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002176/0.3985, allocations: 1.172 MB / 1.06 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3998, allocations: 0.5571 MB / 1.06 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008142/0.4006, allocations: 1.149 MB / 1.061 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4007, allocations: 43.22 kB / 1.061 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 2.836e-06/0.4007, allocations: 0 / 1.061 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.004232/0.4049, allocations: 1.585 MB / 1.063 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.405, allocations: 123.5 kB / 1.063 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002031/0.4071, allocations: 1.405 MB / 1.065 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.4072, allocations: 41.7 kB / 1.065 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005652/0.4078, allocations: 0.7202 MB / 1.065 GB, free: 1.727 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.4081, allocations: 264.1 kB / 1.066 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.4084, allocations: 174.5 kB / 1.066 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4086, allocations: 341.9 kB / 1.066 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.4098, allocations: 0.4927 MB / 1.066 GB, free: 460 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.4112, allocations: 0.7234 MB / 1.067 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.4136, allocations: 1.121 MB / 1.068 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.4136, allocations: 4 kB / 1.068 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003246/0.4169, allocations: 1.35 MB / 1.07 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.4169, allocations: 8 kB / 1.07 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.4169, allocations: 4 kB / 1.07 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.4169, allocations: 8.562 kB / 1.07 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4182, allocations: 275.5 kB / 1.07 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.4182, allocations: 15.92 kB / 1.07 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.4195, allocations: 162.9 kB / 1.07 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.582e-05/0.4196, allocations: 39.98 kB / 1.07 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001722/0.4213, allocations: 0.7946 MB / 1.071 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00137/0.4227, allocations: 0.7229 MB / 1.072 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00242/0.4251, allocations: 1.117 MB / 1.073 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.268e-06/0.4251, allocations: 0 / 1.073 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003236/0.4284, allocations: 1.347 MB / 1.074 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4284, allocations: 8 kB / 1.074 GB, free: 8.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.4284, allocations: 4 kB / 1.074 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.4285, allocations: 12 kB / 1.074 GB, free: 8.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4297, allocations: 271.7 kB / 1.074 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.4297, allocations: 15.94 kB / 1.074 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.4309, allocations: 143.2 kB / 1.074 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/0.431, allocations: 32 kB / 1.074 GB, free: 7.957 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.000308/0.4314, allocations: 240 kB / 1.075 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.4317, allocations: 154.1 kB / 1.075 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003239/0.4349, allocations: 1.478 MB / 1.076 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/0.435, allocations: 15.92 kB / 1.076 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.435, allocations: 0 / 1.076 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002429/0.4374, allocations: 1.109 MB / 1.077 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006035/0.4435, allocations: 3.082 MB / 1.08 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.4435, allocations: 4 kB / 1.08 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009694/0.4445, allocations: 196.3 kB / 1.081 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.305e-05/0.4445, allocations: 8 kB / 1.081 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.305e-05/0.4446, allocations: 19.94 kB / 1.081 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.24e-05/0.4446, allocations: 15.92 kB / 1.081 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.4446, allocations: 8 kB / 1.081 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4467/0.8914, allocations: 2.062 MB / 1.083 GB, free: 130.6 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009801/0.8924, allocations: 384.9 kB / 1.083 GB, free: 130.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.8927, allocations: 23.98 kB / 1.083 GB, free: 130.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.8939, allocations: 104.2 kB / 1.083 GB, free: 130.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.8941, allocations: 81.69 kB / 1.083 GB, free: 130.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.8942, allocations: 43.52 kB / 1.083 GB, free: 130.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001676/0.8959, allocations: 1.08 MB / 1.084 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.11e-07/0.8959, allocations: 1.156 kB / 1.084 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002118/0.898, allocations: 0.798 MB / 1.085 GB, free: 130 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.001132/0.8992, allocations: 481 kB / 1.086 GB, free: 129.9 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00464/0.9038, allocations: 1.814 MB / 1.087 GB, free: 129.4 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/0.9039, allocations: 1.406 kB / 1.087 GB, free: 129.4 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.9056, allocations: 0.64 MB / 1.088 GB, free: 129.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/0.9095, allocations: 0.8214 MB / 1.089 GB, free: 129 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00472/0.9142, allocations: 2.766 MB / 1.091 GB, free: 127.6 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009833/0.9152, allocations: 1.281 MB / 1.093 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001876/0.9171, allocations: 407.7 kB / 1.093 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.9176, allocations: 127.4 kB / 1.093 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of SimCode: time 8.71e-07/0.9176, allocations: 4.094 kB / 1.093 GB, free: 126.8 MB / 0.8575 GB Notification: Performance of Templates: time 0.06126/0.9789, allocations: 33.45 MB / 1.126 GB, free: 115.4 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 -s gbode -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