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.006597/0.006597, allocations: 102.5 kB / 15.73 MB, free: 6.004 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.001543/0.001543, allocations: 195.6 kB / 16.68 MB, free: 5.926 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.18 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.349/2.349, allocations: 390.2 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 71.83 kB / 0.9508 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7575/0.7587, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06241/0.8212, allocations: 62.63 MB / 1.149 GB, free: 8.598 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.0195/0.8407, allocations: 13.66 MB / 1.162 GB, free: 14.76 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003588/0.8444, allocations: 61.53 kB / 1.162 GB, free: 14.74 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003415/0.8478, allocations: 0.9507 MB / 1.163 GB, free: 14.18 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.008433/0.8563, allocations: 2.386 MB / 1.166 GB, free: 12.75 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005163/0.8615, allocations: 1.633 MB / 1.167 GB, free: 11.85 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007011/0.8685, allocations: 4.29 MB / 1.172 GB, free: 9.762 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002712/0.8713, allocations: 1.418 MB / 1.173 GB, free: 9.07 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004466/0.8758, allocations: 1.668 MB / 1.175 GB, free: 8.285 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002776/0.8786, allocations: 1.285 MB / 1.176 GB, free: 7.555 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0006497/0.8792, allocations: 175.9 kB / 1.176 GB, free: 7.555 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004179/0.8834, allocations: 1.44 MB / 1.177 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0008029/0.8842, allocations: 0.4998 MB / 1.178 GB, free: 6.406 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002205/0.8865, allocations: 1.007 MB / 1.179 GB, free: 5.711 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006316/0.8928, allocations: 3.164 MB / 1.182 GB, free: 3.559 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.8928, allocations: 3.984 kB / 1.182 GB, free: 3.555 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8928, allocations: 0 / 1.182 GB, free: 3.555 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.682e-05/0.8929, allocations: 1.094 kB / 1.182 GB, free: 3.555 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.006691/0.8996, allocations: 2.34 MB / 1.184 GB, free: 1.848 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.8997, allocations: 9.219 kB / 1.184 GB, free: 1.848 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001771/0.9014, allocations: 320.1 kB / 1.185 GB, free: 1.695 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003219/0.9047, allocations: 1.475 MB / 1.186 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.9049, allocations: 159.8 kB / 1.186 GB, free: 460 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002491/0.9052, allocations: 105 kB / 1.186 GB, free: 428 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003283/0.9085, allocations: 1.434 MB / 1.188 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.9085, allocations: 5.156 kB / 1.188 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.9087, allocations: 51.89 kB / 1.188 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.754e-05/0.9087, allocations: 37.12 kB / 1.188 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003367/0.9121, allocations: 1.333 MB / 1.189 GB, free: 14.75 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.009611/0.9217, allocations: 6.631 MB / 1.195 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.924, allocations: 1.162 MB / 1.197 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001335/0.9254, allocations: 0.5641 MB / 1.197 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008703/0.9263, allocations: 1.149 MB / 1.198 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.9263, allocations: 44.94 kB / 1.198 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 3.196e-06/0.9263, allocations: 0 / 1.198 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004506/0.9308, allocations: 1.591 MB / 1.2 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.9309, allocations: 115.4 kB / 1.2 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.9334, allocations: 1.408 MB / 1.201 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.000164/0.9336, allocations: 43.02 kB / 1.201 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006067/0.9342, allocations: 0.7125 MB / 1.202 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002668/0.9345, allocations: 261.2 kB / 1.202 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003489/0.9348, allocations: 181.7 kB / 1.203 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.935, allocations: 338.4 kB / 1.203 GB, free: 3.301 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.9363, allocations: 0.4941 MB / 1.203 GB, free: 3.039 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.9378, allocations: 0.7218 MB / 1.204 GB, free: 2.496 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.9405, allocations: 1.136 MB / 1.205 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.9405, allocations: 2.094 kB / 1.205 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004288/0.9448, allocations: 1.356 MB / 1.206 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.9449, allocations: 7.125 kB / 1.206 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.9449, allocations: 5.156 kB / 1.206 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.016e-05/0.945, allocations: 7.875 kB / 1.206 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.9463, allocations: 275.9 kB / 1.207 GB, free: 1 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.295e-05/0.9464, allocations: 12.72 kB / 1.207 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.9482, allocations: 158.5 kB / 1.207 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.9483, allocations: 36.06 kB / 1.207 GB, free: 0.8906 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001932/0.9503, allocations: 0.7916 MB / 1.208 GB, free: 436 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001511/0.9518, allocations: 0.7247 MB / 1.208 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002706/0.9545, allocations: 1.122 MB / 1.21 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.951e-06/0.9545, allocations: 2.406 kB / 1.21 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003615/0.9581, allocations: 1.342 MB / 1.211 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.9582, allocations: 6.406 kB / 1.211 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.9582, allocations: 5.625 kB / 1.211 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.9582, allocations: 17.64 kB / 1.211 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.9594, allocations: 266.3 kB / 1.211 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/0.9595, allocations: 16.72 kB / 1.211 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.9611, allocations: 144.9 kB / 1.211 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.9612, allocations: 38.77 kB / 1.211 GB, free: 14.31 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.0003617/0.9616, allocations: 241.8 kB / 1.212 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005459/0.9621, allocations: 146.2 kB / 1.212 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003357/0.9655, allocations: 1.478 MB / 1.213 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.9655, allocations: 11.94 kB / 1.213 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/0.9655, allocations: 0 / 1.213 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00251/0.968, allocations: 1.105 MB / 1.214 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006252/0.9743, allocations: 3.094 MB / 1.217 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.9743, allocations: 4 kB / 1.217 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009611/0.9753, allocations: 195.7 kB / 1.217 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.9753, allocations: 8.344 kB / 1.217 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.252e-05/0.9754, allocations: 27.94 kB / 1.217 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.9754, allocations: 7.984 kB / 1.217 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/0.9754, allocations: 11.94 kB / 1.217 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/0.9799, allocations: 2.06 MB / 1.219 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008944/0.9808, allocations: 382.7 kB / 1.22 GB, free: 5.273 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004332/0.9813, allocations: 23.94 kB / 1.22 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.9826, allocations: 111.8 kB / 1.22 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.9829, allocations: 92.33 kB / 1.22 GB, free: 5.047 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.983, allocations: 39.97 kB / 1.22 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001858/0.9849, allocations: 1.079 MB / 1.221 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.9849, allocations: 0 / 1.221 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002757/0.9877, allocations: 0.7955 MB / 1.222 GB, free: 3.137 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.001128/0.9888, allocations: 474.8 kB / 1.222 GB, free: 2.676 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004459/0.9933, allocations: 1.814 MB / 1.224 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.9933, allocations: 7.859 kB / 1.224 GB, free: 0.8594 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.9949, allocations: 0.6327 MB / 1.225 GB, free: 232 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004589/0.9995, allocations: 0.8206 MB / 1.226 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004976/1.004, allocations: 2.762 MB / 1.228 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009246/1.005, allocations: 1.285 MB / 1.23 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001776/1.007, allocations: 402.6 kB / 1.23 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004543/1.008, allocations: 127.4 kB / 1.23 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of SimCode: time 8.92e-07/1.008, allocations: 4 kB / 1.23 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of Templates: time 0.06328/1.071, allocations: 34.24 MB / 1.263 GB, free: 8.887 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