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.007039/0.007039, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001548/0.001548, allocations: 193.3 kB / 16.67 MB, free: 5.953 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.188/2.188, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 63.89 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7683/0.7707, allocations: 140.4 MB / 1.088 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06429/0.835, allocations: 62.63 MB / 1.149 GB, free: 8.578 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02036/0.8554, allocations: 13.66 MB / 1.162 GB, free: 14.74 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.8584, allocations: 60.59 kB / 1.162 GB, free: 14.72 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003325/0.8617, allocations: 0.9473 MB / 1.163 GB, free: 14.16 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.007984/0.8697, allocations: 2.387 MB / 1.166 GB, free: 12.74 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004762/0.8745, allocations: 1.633 MB / 1.167 GB, free: 11.83 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.006292/0.8808, allocations: 4.284 MB / 1.171 GB, free: 9.754 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002551/0.8834, allocations: 1.422 MB / 1.173 GB, free: 9.059 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004064/0.8875, allocations: 1.639 MB / 1.174 GB, free: 8.285 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002832/0.8903, allocations: 1.29 MB / 1.176 GB, free: 7.57 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0006037/0.8909, allocations: 179.9 kB / 1.176 GB, free: 7.566 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003969/0.8949, allocations: 1.428 MB / 1.177 GB, free: 6.816 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0008359/0.8958, allocations: 0.5075 MB / 1.178 GB, free: 6.422 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002019/0.8978, allocations: 1.004 MB / 1.179 GB, free: 5.73 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005363/0.9032, allocations: 3.164 MB / 1.182 GB, free: 3.578 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.9032, allocations: 0 / 1.182 GB, free: 3.578 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.874e-06/0.9032, allocations: 3.938 kB / 1.182 GB, free: 3.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.644e-05/0.9032, allocations: 1.344 kB / 1.182 GB, free: 3.574 MB / 0.92 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.004558/0.9078, allocations: 2.336 MB / 1.184 GB, free: 1.871 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.9079, allocations: 9.156 kB / 1.184 GB, free: 1.871 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.9094, allocations: 323.5 kB / 1.184 GB, free: 1.715 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/0.9118, allocations: 1.471 MB / 1.186 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.9119, allocations: 160.3 kB / 1.186 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.9121, allocations: 111.8 kB / 1.186 GB, free: 444 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002887/0.915, allocations: 1.439 MB / 1.188 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.9151, allocations: 5.031 kB / 1.188 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.9152, allocations: 43.72 kB / 1.188 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.173e-05/0.9153, allocations: 28.72 kB / 1.188 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003287/0.9186, allocations: 1.341 MB / 1.189 GB, free: 14.77 MB / 0.9356 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.007984/0.9266, allocations: 6.636 MB / 1.195 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.9289, allocations: 1.166 MB / 1.197 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.9302, allocations: 0.5609 MB / 1.197 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007931/0.9311, allocations: 1.145 MB / 1.198 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.9311, allocations: 48.97 kB / 1.198 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 2.655e-06/0.9311, allocations: 0 / 1.198 GB, free: 6.367 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004369/0.9355, allocations: 1.591 MB / 1.2 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.9356, allocations: 119.2 kB / 1.2 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.9375, allocations: 1.403 MB / 1.201 GB, free: 4.656 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.552e-05/0.9376, allocations: 43.89 kB / 1.201 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005458/0.9382, allocations: 0.7124 MB / 1.202 GB, free: 3.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.9384, allocations: 263.9 kB / 1.202 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.9387, allocations: 178.2 kB / 1.202 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.9388, allocations: 342.8 kB / 1.203 GB, free: 3.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.9402, allocations: 0.4903 MB / 1.203 GB, free: 3.055 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/0.9416, allocations: 0.7263 MB / 1.204 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.9444, allocations: 1.132 MB / 1.205 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.9444, allocations: 2.031 kB / 1.205 GB, free: 1.801 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003748/0.9482, allocations: 1.348 MB / 1.206 GB, free: 1.105 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.9482, allocations: 10.66 kB / 1.206 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.9482, allocations: 4.531 kB / 1.206 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.9482, allocations: 9.562 kB / 1.206 GB, free: 1.102 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.9495, allocations: 279.2 kB / 1.207 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/0.9495, allocations: 9.156 kB / 1.207 GB, free: 1.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.9509, allocations: 150.2 kB / 1.207 GB, free: 0.9258 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.951, allocations: 40.61 kB / 1.207 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001766/0.9528, allocations: 0.7991 MB / 1.208 GB, free: 452 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001465/0.9542, allocations: 0.717 MB / 1.208 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002647/0.9569, allocations: 1.125 MB / 1.209 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.39e-06/0.9569, allocations: 1.344 kB / 1.209 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003355/0.9603, allocations: 1.347 MB / 1.211 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.9603, allocations: 9.438 kB / 1.211 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.9603, allocations: 4.781 kB / 1.211 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.9603, allocations: 9.75 kB / 1.211 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.9615, allocations: 270.5 kB / 1.211 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/0.9616, allocations: 12.84 kB / 1.211 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.9629, allocations: 144.9 kB / 1.211 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-05/0.963, allocations: 34.36 kB / 1.211 GB, free: 14.32 MB / 0.9512 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.0003094/0.9633, allocations: 247.9 kB / 1.212 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000323/0.9636, allocations: 146.2 kB / 1.212 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/0.9669, allocations: 1.478 MB / 1.213 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.967, allocations: 15.92 kB / 1.213 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.967, allocations: 0 / 1.213 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002661/0.9697, allocations: 1.109 MB / 1.214 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005883/0.9756, allocations: 3.086 MB / 1.217 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.9756, allocations: 4 kB / 1.217 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000998/0.9766, allocations: 200.2 kB / 1.217 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.9766, allocations: 8 kB / 1.217 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.734e-05/0.9767, allocations: 23.92 kB / 1.217 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.9767, allocations: 8 kB / 1.217 GB, free: 7.809 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.9767, allocations: 11.94 kB / 1.217 GB, free: 7.797 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/0.9811, allocations: 2.072 MB / 1.219 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007535/0.9819, allocations: 382.7 kB / 1.22 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/0.9822, allocations: 23.94 kB / 1.22 GB, free: 5.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.9835, allocations: 107.9 kB / 1.22 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.9837, allocations: 80.34 kB / 1.22 GB, free: 5.043 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.4e-05/0.9838, allocations: 43.91 kB / 1.22 GB, free: 5 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00148/0.9853, allocations: 1.079 MB / 1.221 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9853, allocations: 0 / 1.221 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002157/0.9875, allocations: 0.7955 MB / 1.222 GB, free: 3.129 MB / 0.9512 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.001021/0.9885, allocations: 470.5 kB / 1.222 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004502/0.993, allocations: 1.81 MB / 1.224 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.993, allocations: 7.859 kB / 1.224 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.9946, allocations: 0.6403 MB / 1.225 GB, free: 224 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003706/0.9983, allocations: 0.8268 MB / 1.226 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004575/1.003, allocations: 2.758 MB / 1.228 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/1.004, allocations: 1.285 MB / 1.23 GB, free: 11.24 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001603/1.006, allocations: 400.2 kB / 1.23 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004159/1.006, allocations: 123.4 kB / 1.23 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of SimCode: time 7.41e-07/1.006, allocations: 0 / 1.23 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of Templates: time 0.05344/1.059, allocations: 33.69 MB / 1.263 GB, free: 9.441 MB / 0.9981 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