Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001344/0.001344, allocations: 110.9 kB / 16.41 MB, free: 6.496 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.001362/0.001362, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.466/2.466, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 67.89 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9161/0.9182, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06975/0.988, allocations: 62.65 MB / 1.228 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02041/1.008, allocations: 13.65 MB / 1.242 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003397/1.012, allocations: 63.69 kB / 1.242 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003508/1.015, allocations: 0.9745 MB / 1.243 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00813/1.024, allocations: 2.501 MB / 1.245 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004924/1.029, allocations: 1.639 MB / 1.247 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006731/1.035, allocations: 4.289 MB / 1.251 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002915/1.038, allocations: 1.418 MB / 1.252 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004725/1.043, allocations: 1.681 MB / 1.254 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002616/1.046, allocations: 1.292 MB / 1.255 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0006888/1.046, allocations: 176 kB / 1.256 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003998/1.05, allocations: 1.427 MB / 1.257 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009793/1.051, allocations: 0.5023 MB / 1.257 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002265/1.054, allocations: 1.007 MB / 1.258 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006964/1.061, allocations: 3.177 MB / 1.261 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/1.061, allocations: 0 / 1.261 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.234e-06/1.061, allocations: 3.938 kB / 1.261 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001078/1.061, allocations: 0 / 1.261 GB, free: 3.035 MB / 0.9825 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.006706/1.068, allocations: 2.409 MB / 1.264 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/1.068, allocations: 12.92 kB / 1.264 GB, free: 0.5508 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001803/1.069, allocations: 331.4 kB / 1.264 GB, free: 232 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/1.073, allocations: 1.488 MB / 1.266 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/1.073, allocations: 157.5 kB / 1.266 GB, free: 14.52 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/1.074, allocations: 108 kB / 1.266 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003354/1.077, allocations: 1.435 MB / 1.267 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.464e-05/1.077, allocations: 0 / 1.267 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/1.077, allocations: 55.98 kB / 1.267 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.542e-05/1.077, allocations: 39.92 kB / 1.267 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/1.081, allocations: 1.331 MB / 1.269 GB, free: 11.47 MB / 0.9981 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.009896/1.091, allocations: 6.644 MB / 1.275 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002305/1.093, allocations: 1.166 MB / 1.276 GB, free: 3.129 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/1.094, allocations: 0.5687 MB / 1.277 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009405/1.095, allocations: 1.152 MB / 1.278 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/1.095, allocations: 39.88 kB / 1.278 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=77): time 3.417e-06/1.095, allocations: 4 kB / 1.278 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of matching and sorting (n=77): time 0.004633/1.1, allocations: 1.594 MB / 1.28 GB, free: 15.49 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/1.1, allocations: 111.5 kB / 1.28 GB, free: 15.36 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002605/1.103, allocations: 1.416 MB / 1.281 GB, free: 13.93 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001656/1.103, allocations: 45.7 kB / 1.281 GB, free: 13.88 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000694/1.104, allocations: 0.7251 MB / 1.282 GB, free: 13.15 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003214/1.104, allocations: 281.6 kB / 1.282 GB, free: 12.88 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003547/1.104, allocations: 174.6 kB / 1.282 GB, free: 12.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001375/1.104, allocations: 334 kB / 1.283 GB, free: 12.37 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/1.106, allocations: 0.4927 MB / 1.283 GB, free: 11.87 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/1.107, allocations: 0.7268 MB / 1.284 GB, free: 11.05 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/1.11, allocations: 1.133 MB / 1.285 GB, free: 9.855 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/1.11, allocations: 4 kB / 1.285 GB, free: 9.852 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003704/1.114, allocations: 1.359 MB / 1.286 GB, free: 8.484 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/1.114, allocations: 8 kB / 1.286 GB, free: 8.477 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/1.114, allocations: 4 kB / 1.286 GB, free: 8.473 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/1.114, allocations: 8 kB / 1.286 GB, free: 8.465 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/1.115, allocations: 272.2 kB / 1.286 GB, free: 8.199 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.638e-05/1.115, allocations: 8 kB / 1.286 GB, free: 8.191 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/1.117, allocations: 163.2 kB / 1.287 GB, free: 8.031 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/1.117, allocations: 39.98 kB / 1.287 GB, free: 7.992 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001874/1.119, allocations: 0.8063 MB / 1.287 GB, free: 7.18 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001491/1.12, allocations: 0.7074 MB / 1.288 GB, free: 6.383 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002626/1.123, allocations: 1.133 MB / 1.289 GB, free: 5.191 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.351e-06/1.123, allocations: 0 / 1.289 GB, free: 5.191 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003645/1.127, allocations: 1.352 MB / 1.291 GB, free: 3.828 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/1.127, allocations: 8 kB / 1.291 GB, free: 3.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.127, allocations: 8.031 kB / 1.291 GB, free: 3.812 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/1.127, allocations: 8 kB / 1.291 GB, free: 3.805 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/1.128, allocations: 267.6 kB / 1.291 GB, free: 3.543 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.267e-05/1.128, allocations: 15.94 kB / 1.291 GB, free: 3.527 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/1.13, allocations: 143.4 kB / 1.291 GB, free: 3.387 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/1.13, allocations: 43.92 kB / 1.291 GB, free: 3.344 MB / 1.014 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.0003878/1.13, allocations: 236 kB / 1.291 GB, free: 3.105 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005821/1.131, allocations: 163 kB / 1.291 GB, free: 2.945 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/1.134, allocations: 1.466 MB / 1.293 GB, free: 1.449 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.351e-05/1.134, allocations: 11.98 kB / 1.293 GB, free: 1.438 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/1.134, allocations: 0 / 1.293 GB, free: 1.438 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002541/1.137, allocations: 1.109 MB / 1.294 GB, free: 304 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006993/1.144, allocations: 3.098 MB / 1.297 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/1.144, allocations: 4 kB / 1.297 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009974/1.145, allocations: 196.3 kB / 1.297 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.996e-05/1.145, allocations: 8 kB / 1.297 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-05/1.145, allocations: 19.98 kB / 1.297 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/1.145, allocations: 8 kB / 1.297 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/1.145, allocations: 23.86 kB / 1.297 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004751/1.15, allocations: 2.073 MB / 1.299 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009653/1.151, allocations: 387.6 kB / 1.3 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005319/1.151, allocations: 32 kB / 1.3 GB, free: 10.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/1.153, allocations: 95.86 kB / 1.3 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/1.153, allocations: 88.34 kB / 1.3 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/1.153, allocations: 47.84 kB / 1.3 GB, free: 10.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002098/1.155, allocations: 1.079 MB / 1.301 GB, free: 8.945 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.804e-06/1.155, allocations: 0 / 1.301 GB, free: 8.945 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002896/1.158, allocations: 0.811 MB / 1.302 GB, free: 8.133 MB / 1.029 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.001306/1.16, allocations: 472.8 kB / 1.302 GB, free: 7.672 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.004831/1.164, allocations: 1.822 MB / 1.304 GB, free: 5.855 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/1.164, allocations: 0 / 1.304 GB, free: 5.855 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001604/1.166, allocations: 0.6132 MB / 1.305 GB, free: 5.246 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004684/1.171, allocations: 0.8241 MB / 1.305 GB, free: 4.434 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005638/1.176, allocations: 2.862 MB / 1.308 GB, free: 1.477 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/1.178, allocations: 1.277 MB / 1.309 GB, free: 172 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007053/1.178, allocations: 139.4 kB / 1.31 GB, free: 32 kB / 1.029 GB Notification: Performance of SimCode: time 1.292e-06/1.178, allocations: 0 / 1.31 GB, free: 32 kB / 1.029 GB Notification: Performance of Templates: time 0.04812/1.227, allocations: 28.89 MB / 1.338 GB, free: 3.324 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches