Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001286/0.001286, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.438/1.438, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.808/2.808, allocations: 462.6 MB / 0.737 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003565, allocations: 11.86 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3251, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05635/0.3815, allocations: 61.11 MB / 1.119 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02066/0.4022, allocations: 13.56 MB / 1.132 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002957/0.4052, allocations: 51.69 kB / 1.132 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003106/0.4083, allocations: 0.8081 MB / 1.133 GB, free: 9.223 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007415/0.4158, allocations: 2.212 MB / 1.135 GB, free: 7.004 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00475/0.4206, allocations: 1.472 MB / 1.137 GB, free: 5.543 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007452/0.428, allocations: 5.471 MB / 1.142 GB, free: 56 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002703/0.4308, allocations: 1.169 MB / 1.143 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003429/0.4342, allocations: 1.377 MB / 1.144 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002449/0.4367, allocations: 1.237 MB / 1.146 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005839/0.4373, allocations: 72 kB / 1.146 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003442/0.4408, allocations: 1.294 MB / 1.147 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007899/0.4416, allocations: 414.3 kB / 1.147 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001937/0.4435, allocations: 0.911 MB / 1.148 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.4472, allocations: 2.381 MB / 1.151 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4473, allocations: 0 / 1.151 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4473, allocations: 0 / 1.151 GB, free: 7.141 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.789e-05/0.4474, allocations: 0 / 1.151 GB, free: 7.141 MB / 0.9044 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.005095/0.4525, allocations: 2.022 MB / 1.153 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4525, allocations: 12.03 kB / 1.153 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.4542, allocations: 354.3 kB / 1.153 GB, free: 4.703 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/0.457, allocations: 1.443 MB / 1.154 GB, free: 3.207 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.4571, allocations: 157.5 kB / 1.155 GB, free: 3.039 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.4573, allocations: 111.9 kB / 1.155 GB, free: 2.93 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002992/0.4603, allocations: 1.484 MB / 1.156 GB, free: 1.355 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.4604, allocations: 11.94 kB / 1.156 GB, free: 1.344 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.4605, allocations: 47.98 kB / 1.156 GB, free: 1.297 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/0.4606, allocations: 28 kB / 1.156 GB, free: 1.27 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003342/0.4639, allocations: 1.444 MB / 1.158 GB, free: 15.82 MB / 0.92 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.00855/0.4725, allocations: 6.658 MB / 1.164 GB, free: 8.715 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.4748, allocations: 1.226 MB / 1.165 GB, free: 7.402 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.4762, allocations: 0.6079 MB / 1.166 GB, free: 6.789 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008696/0.4771, allocations: 1.145 MB / 1.167 GB, free: 5.387 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.4771, allocations: 47.22 kB / 1.167 GB, free: 5.332 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 3.517e-06/0.4771, allocations: 0 / 1.167 GB, free: 5.332 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.004527/0.4817, allocations: 1.741 MB / 1.169 GB, free: 3.582 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/0.4818, allocations: 119.6 kB / 1.169 GB, free: 3.441 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/0.4838, allocations: 1.393 MB / 1.17 GB, free: 2.039 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001399/0.484, allocations: 41.7 kB / 1.17 GB, free: 1.992 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005728/0.4845, allocations: 0.7163 MB / 1.171 GB, free: 1.266 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.4848, allocations: 264.1 kB / 1.171 GB, free: 1.004 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.485, allocations: 81.67 kB / 1.171 GB, free: 0.918 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4851, allocations: 334 kB / 1.172 GB, free: 0.5859 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.4865, allocations: 0.5407 MB / 1.172 GB, free: 48 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.488, allocations: 0.7738 MB / 1.173 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.4907, allocations: 1.23 MB / 1.174 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.4908, allocations: 0 / 1.174 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00356/0.4943, allocations: 1.456 MB / 1.175 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.4945, allocations: 228.7 kB / 1.176 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.4945, allocations: 8 kB / 1.176 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.4946, allocations: 11.94 kB / 1.176 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.4958, allocations: 299.6 kB / 1.176 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.001e-05/0.4959, allocations: 11.98 kB / 1.176 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.4974, allocations: 230.8 kB / 1.176 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.322e-05/0.4975, allocations: 39.98 kB / 1.176 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.4975, allocations: 4 kB / 1.176 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002996/0.5005, allocations: 1.288 MB / 1.178 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.5005, allocations: 4 kB / 1.178 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.5005, allocations: 8 kB / 1.178 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.5017, allocations: 300.2 kB / 1.178 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.5017, allocations: 11.94 kB / 1.178 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.5033, allocations: 207.1 kB / 1.178 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.353e-05/0.5034, allocations: 36 kB / 1.178 GB, free: 9.691 MB / 0.9356 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.0008762/0.5043, allocations: 468.7 kB / 1.179 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/0.5047, allocations: 150.1 kB / 1.179 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003524/0.5082, allocations: 1.575 MB / 1.18 GB, free: 7.469 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/0.5082, allocations: 11.98 kB / 1.18 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5083, allocations: 0 / 1.18 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002686/0.511, allocations: 1.207 MB / 1.181 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006368/0.5173, allocations: 3.191 MB / 1.185 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.5174, allocations: 4 kB / 1.185 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.5184, allocations: 220.3 kB / 1.185 GB, free: 2.695 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.625e-05/0.5185, allocations: 12 kB / 1.185 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.306e-05/0.5185, allocations: 19.98 kB / 1.185 GB, free: 2.664 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.498e-05/0.5186, allocations: 11.94 kB / 1.185 GB, free: 2.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.5186, allocations: 4 kB / 1.185 GB, free: 2.648 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/0.5234, allocations: 2.228 MB / 1.187 GB, free: 356 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.5244, allocations: 402.7 kB / 1.187 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004661/0.5249, allocations: 23.98 kB / 1.187 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.5265, allocations: 163.7 kB / 1.188 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.5268, allocations: 84.34 kB / 1.188 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.5269, allocations: 47.91 kB / 1.188 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002053/0.529, allocations: 1.064 MB / 1.189 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.529, allocations: 0 / 1.189 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002723/0.5317, allocations: 0.7916 MB / 1.189 GB, free: 13.77 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.001041/0.5328, allocations: 470.5 kB / 1.19 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004717/0.5375, allocations: 1.955 MB / 1.192 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/0.5375, allocations: 8 kB / 1.192 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.5392, allocations: 0.6718 MB / 1.192 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005783/0.545, allocations: 0.8237 MB / 1.193 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006141/0.5512, allocations: 3.442 MB / 1.197 GB, free: 6.324 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001155/0.5524, allocations: 1.266 MB / 1.198 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007869/0.5532, allocations: 147.4 kB / 1.198 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of SimCode: time 1.253e-06/0.5532, allocations: 0 / 1.198 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of Templates: time 0.04472/0.5979, allocations: 28.28 MB / 1.226 GB, free: 8.789 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches