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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0007807/0.0007807, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005182/0.005182, allocations: 172.8 kB / 16.27 MB, free: 6.648 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.467/1.467, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.701/2.701, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 10.06 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.333, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05768/0.3908, allocations: 61.11 MB / 1.118 GB, free: 8.168 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01758/0.4084, allocations: 13.56 MB / 1.132 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.4104, allocations: 59.62 kB / 1.132 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002307/0.4128, allocations: 0.7926 MB / 1.132 GB, free: 9.727 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005928/0.4187, allocations: 2.213 MB / 1.135 GB, free: 7.504 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004088/0.4228, allocations: 1.478 MB / 1.136 GB, free: 6.039 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006653/0.4295, allocations: 5.464 MB / 1.141 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002417/0.4319, allocations: 1.177 MB / 1.142 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003965/0.4359, allocations: 1.369 MB / 1.144 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002657/0.4386, allocations: 1.237 MB / 1.145 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005522/0.4391, allocations: 72 kB / 1.145 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00366/0.4428, allocations: 1.302 MB / 1.146 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007689/0.4436, allocations: 406.4 kB / 1.147 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001567/0.4452, allocations: 0.9109 MB / 1.148 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004202/0.4494, allocations: 3.018 MB / 1.151 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4494, allocations: 3.938 kB / 1.151 GB, free: 7.004 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4494, allocations: 0 / 1.151 GB, free: 7.004 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.937e-05/0.4495, allocations: 0 / 1.151 GB, free: 7.004 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.004004/0.4535, allocations: 2.022 MB / 1.153 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.4535, allocations: 8.031 kB / 1.153 GB, free: 4.918 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.4549, allocations: 358.3 kB / 1.153 GB, free: 4.566 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002245/0.4572, allocations: 1.443 MB / 1.154 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.4573, allocations: 161.5 kB / 1.154 GB, free: 2.898 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.4575, allocations: 112 kB / 1.155 GB, free: 2.789 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.4605, allocations: 1.488 MB / 1.156 GB, free: 1.211 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.943e-05/0.4605, allocations: 3.938 kB / 1.156 GB, free: 1.207 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.4606, allocations: 51.98 kB / 1.156 GB, free: 1.156 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.789e-05/0.4607, allocations: 32 kB / 1.156 GB, free: 1.125 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003444/0.4641, allocations: 1.444 MB / 1.158 GB, free: 15.68 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.008594/0.4727, allocations: 6.655 MB / 1.164 GB, free: 8.578 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002255/0.475, allocations: 1.217 MB / 1.165 GB, free: 7.27 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.4764, allocations: 0.6227 MB / 1.166 GB, free: 6.648 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008516/0.4773, allocations: 1.149 MB / 1.167 GB, free: 5.242 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.4773, allocations: 43.22 kB / 1.167 GB, free: 5.191 MB / 0.92 GB Notification: Performance of pre-optimization done (n=77): time 3.036e-06/0.4773, allocations: 0 / 1.167 GB, free: 5.191 MB / 0.92 GB Notification: Performance of matching and sorting (n=77): time 0.004431/0.4818, allocations: 1.741 MB / 1.169 GB, free: 3.441 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.4819, allocations: 111.5 kB / 1.169 GB, free: 3.309 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.4837, allocations: 1.393 MB / 1.17 GB, free: 1.906 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.4838, allocations: 45.7 kB / 1.17 GB, free: 1.855 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005573/0.4844, allocations: 0.7124 MB / 1.171 GB, free: 1.133 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.4846, allocations: 260.2 kB / 1.171 GB, free: 0.875 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.4848, allocations: 85.67 kB / 1.171 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.4849, allocations: 337.9 kB / 1.172 GB, free: 460 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4863, allocations: 0.5407 MB / 1.172 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.4878, allocations: 0.7738 MB / 1.173 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002831/0.4907, allocations: 1.23 MB / 1.174 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.4907, allocations: 4 kB / 1.174 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003797/0.4945, allocations: 1.452 MB / 1.175 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001944/0.4947, allocations: 236.9 kB / 1.176 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.4947, allocations: 4 kB / 1.176 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.4948, allocations: 15.88 kB / 1.176 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.4962, allocations: 295.6 kB / 1.176 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.655e-05/0.4962, allocations: 8 kB / 1.176 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/0.4979, allocations: 222.9 kB / 1.176 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.4981, allocations: 43.98 kB / 1.176 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.4981, allocations: 5.875 kB / 1.176 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003314/0.5014, allocations: 1.292 MB / 1.178 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.5014, allocations: 4.562 kB / 1.178 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.5015, allocations: 16 kB / 1.178 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.5027, allocations: 291.6 kB / 1.178 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.376e-05/0.5027, allocations: 15.92 kB / 1.178 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.5044, allocations: 207.1 kB / 1.178 GB, free: 9.586 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.5045, allocations: 39.98 kB / 1.178 GB, free: 9.547 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.0009156/0.5054, allocations: 470.3 kB / 1.179 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004618/0.5059, allocations: 150.1 kB / 1.179 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/0.5097, allocations: 1.572 MB / 1.18 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.5097, allocations: 12 kB / 1.18 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5097, allocations: 0 / 1.18 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00283/0.5126, allocations: 1.207 MB / 1.181 GB, free: 6.078 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006683/0.5193, allocations: 3.192 MB / 1.185 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.5193, allocations: 4 kB / 1.185 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.5203, allocations: 215.7 kB / 1.185 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.534e-05/0.5204, allocations: 8 kB / 1.185 GB, free: 2.551 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.679e-05/0.5204, allocations: 23.98 kB / 1.185 GB, free: 2.527 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.5205, allocations: 11.94 kB / 1.185 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.5205, allocations: 7.938 kB / 1.185 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005042/0.5255, allocations: 2.224 MB / 1.187 GB, free: 216 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.5267, allocations: 410.8 kB / 1.187 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/0.5272, allocations: 16 kB / 1.187 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001717/0.5289, allocations: 179.7 kB / 1.188 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.5292, allocations: 80.34 kB / 1.188 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5293, allocations: 39.97 kB / 1.188 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002083/0.5314, allocations: 1.068 MB / 1.189 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.9e-07/0.5314, allocations: 4 kB / 1.189 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002659/0.534, allocations: 0.7954 MB / 1.189 GB, free: 13.61 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.00118/0.5352, allocations: 458.4 kB / 1.19 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004955/0.5402, allocations: 1.951 MB / 1.192 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.5402, allocations: 128 / 1.192 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.542, allocations: 0.6951 MB / 1.192 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005978/0.5479, allocations: 0.8239 MB / 1.193 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.5536, allocations: 3.382 MB / 1.197 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.5547, allocations: 1.282 MB / 1.198 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002119/0.5568, allocations: 412.1 kB / 1.198 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005476/0.5574, allocations: 131.4 kB / 1.198 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of SimCode: time 1.112e-06/0.5574, allocations: 0 / 1.198 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of Templates: time 0.05725/0.6147, allocations: 33.22 MB / 1.231 GB, free: 3.527 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches