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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 108 kB / 15.6 MB, free: 132 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.001714/0.001714, allocations: 192 kB / 16.53 MB, free: 6.391 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.795/2.795, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 62.11 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3057, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06089/0.3666, allocations: 62.64 MB / 1.125 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01927/0.3859, allocations: 13.65 MB / 1.138 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002541/0.3885, allocations: 67.69 kB / 1.138 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002827/0.3914, allocations: 0.9433 MB / 1.139 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006432/0.3979, allocations: 2.39 MB / 1.141 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004258/0.4021, allocations: 1.622 MB / 1.143 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00571/0.4079, allocations: 4.291 MB / 1.147 GB, free: 8.676 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.4107, allocations: 1.406 MB / 1.149 GB, free: 7.234 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004661/0.4154, allocations: 1.638 MB / 1.15 GB, free: 5.598 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003063/0.4185, allocations: 1.292 MB / 1.151 GB, free: 4.301 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0006371/0.4191, allocations: 176 kB / 1.152 GB, free: 4.129 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003753/0.4229, allocations: 1.427 MB / 1.153 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0008547/0.4238, allocations: 0.5062 MB / 1.154 GB, free: 2.191 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.4259, allocations: 1.003 MB / 1.155 GB, free: 1.184 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005443/0.4313, allocations: 3.136 MB / 1.158 GB, free: 14.04 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4314, allocations: 0 / 1.158 GB, free: 14.04 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4314, allocations: 0 / 1.158 GB, free: 14.04 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.56e-05/0.4315, allocations: 0 / 1.158 GB, free: 14.04 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.005792/0.4373, allocations: 2.333 MB / 1.16 GB, free: 11.65 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4373, allocations: 8.031 kB / 1.16 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003149/0.4377, allocations: 168.8 kB / 1.16 GB, free: 11.46 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.4392, allocations: 322.4 kB / 1.16 GB, free: 11.15 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002591/0.4418, allocations: 1.415 MB / 1.162 GB, free: 9.684 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.442, allocations: 165.5 kB / 1.162 GB, free: 9.508 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.4423, allocations: 107.9 kB / 1.162 GB, free: 9.402 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002966/0.4452, allocations: 1.438 MB / 1.163 GB, free: 7.875 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.4453, allocations: 4 kB / 1.163 GB, free: 7.871 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.4454, allocations: 48 kB / 1.163 GB, free: 7.824 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.342e-05/0.4455, allocations: 32 kB / 1.163 GB, free: 7.793 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003217/0.4487, allocations: 1.343 MB / 1.165 GB, free: 6.449 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.009285/0.458, allocations: 6.678 MB / 1.171 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.4602, allocations: 1.172 MB / 1.172 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.4616, allocations: 0.5622 MB / 1.173 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.4627, allocations: 1.149 MB / 1.174 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.798e-05/0.4628, allocations: 47.2 kB / 1.174 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=77): time 4.268e-06/0.4628, allocations: 0 / 1.174 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of matching and sorting (n=77): time 0.004511/0.4673, allocations: 1.589 MB / 1.176 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.4674, allocations: 111.5 kB / 1.176 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002665/0.4701, allocations: 1.408 MB / 1.177 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.4702, allocations: 49.7 kB / 1.177 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006636/0.4709, allocations: 0.7164 MB / 1.178 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.4712, allocations: 264.1 kB / 1.178 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003319/0.4715, allocations: 178.5 kB / 1.178 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.4717, allocations: 337.9 kB / 1.179 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.4729, allocations: 0.4927 MB / 1.179 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.4744, allocations: 0.7229 MB / 1.18 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.477, allocations: 1.121 MB / 1.181 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.477, allocations: 7.938 kB / 1.181 GB, free: 4.836 MB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00344/0.4805, allocations: 1.351 MB / 1.182 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.4805, allocations: 8 kB / 1.182 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.4806, allocations: 4 kB / 1.182 GB, free: 3.465 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/0.4806, allocations: 15.98 kB / 1.182 GB, free: 3.449 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.4818, allocations: 272 kB / 1.183 GB, free: 3.184 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.45e-05/0.4819, allocations: 15.94 kB / 1.183 GB, free: 3.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.4833, allocations: 158.9 kB / 1.183 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.4834, allocations: 39.98 kB / 1.183 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001858/0.4853, allocations: 0.7924 MB / 1.184 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001419/0.4867, allocations: 0.7195 MB / 1.184 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002575/0.4893, allocations: 1.133 MB / 1.185 GB, free: 176 kB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.54e-06/0.4893, allocations: 0 / 1.185 GB, free: 176 kB / 0.9356 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003697/0.493, allocations: 1.346 MB / 1.187 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4931, allocations: 8.562 kB / 1.187 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4931, allocations: 4 kB / 1.187 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.4931, allocations: 16 kB / 1.187 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.4943, allocations: 267.6 kB / 1.187 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.4944, allocations: 12 kB / 1.187 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.4957, allocations: 143.2 kB / 1.187 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.4958, allocations: 39.98 kB / 1.187 GB, free: 14.33 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.0003884/0.4962, allocations: 236 kB / 1.187 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/0.4968, allocations: 154.1 kB / 1.188 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.5003, allocations: 1.47 MB / 1.189 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.5004, allocations: 8 kB / 1.189 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.5004, allocations: 3.938 kB / 1.189 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002663/0.503, allocations: 1.117 MB / 1.19 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006826/0.5099, allocations: 3.078 MB / 1.193 GB, free: 8.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.5099, allocations: 4 kB / 1.193 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.511, allocations: 200.2 kB / 1.193 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.768e-05/0.5111, allocations: 8 kB / 1.193 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.21e-05/0.5111, allocations: 23.98 kB / 1.193 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.368e-05/0.5112, allocations: 15.88 kB / 1.193 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.5112, allocations: 7.938 kB / 1.193 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/0.5162, allocations: 2.068 MB / 1.195 GB, free: 5.688 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009588/0.5172, allocations: 382.7 kB / 1.196 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004578/0.5177, allocations: 19.94 kB / 1.196 GB, free: 5.273 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.5191, allocations: 103.8 kB / 1.196 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.5194, allocations: 88.41 kB / 1.196 GB, free: 5.086 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.5195, allocations: 35.97 kB / 1.196 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002056/0.5216, allocations: 1.079 MB / 1.197 GB, free: 3.977 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3e-07/0.5216, allocations: 0 / 1.197 GB, free: 3.977 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002889/0.5245, allocations: 0.7917 MB / 1.198 GB, free: 3.184 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.006259/0.5308, allocations: 2.998 MB / 1.201 GB, free: 116 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004996/0.5358, allocations: 1.877 MB / 1.203 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/0.5358, allocations: 0 / 1.203 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001605/0.5374, allocations: 0.6404 MB / 1.203 GB, free: 13.6 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004461/0.5419, allocations: 0.8301 MB / 1.204 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/0.5664, allocations: 13.68 MB / 1.217 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.5675, allocations: 1.273 MB / 1.219 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00187/0.5694, allocations: 412.2 kB / 1.219 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009427/0.5703, allocations: 0.6203 MB / 1.22 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of SimCode: time 6.61e-07/0.5703, allocations: 0 / 1.22 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5445/1.115, allocations: 46.57 MB / 1.265 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/9.831, allocations: 8.812 kB / 1.265 GB, free: 176.9 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv --start-time 0 --stop-time 14400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.csv","/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