Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness",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.001542/0.001541, 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.001719/0.001719, allocations: 193.8 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.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.975/2.975, allocations: 472.7 MB / 0.7452 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 66.69 kB / 0.9122 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3264, allocations: 159.9 MB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness): time 0.1297/0.4562, allocations: 81.02 MB / 1.147 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03173/0.488, allocations: 18.92 MB / 1.166 GB, free: 6.012 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004895/0.4929, allocations: 103.5 kB / 1.166 GB, free: 5.91 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.00401/0.4969, allocations: 1.164 MB / 1.167 GB, free: 4.738 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.009189/0.5062, allocations: 2.791 MB / 1.17 GB, free: 1.934 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005546/0.5118, allocations: 1.893 MB / 1.172 GB, free: 56 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.008751/0.5205, allocations: 5.491 MB / 1.177 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004471/0.525, allocations: 2.624 MB / 1.18 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005804/0.5309, allocations: 2.122 MB / 1.182 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003328/0.5342, allocations: 1.668 MB / 1.183 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0007087/0.5349, allocations: 304 kB / 1.184 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004253/0.5392, allocations: 1.693 MB / 1.185 GB, free: 2.086 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0008911/0.5401, allocations: 0.6892 MB / 1.186 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.002374/0.5425, allocations: 1.439 MB / 1.187 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.007976/0.5505, allocations: 4.748 MB / 1.192 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.5505, allocations: 0 / 1.192 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.625e-06/0.5506, allocations: 0 / 1.192 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001061/0.5507, allocations: 3.938 kB / 1.192 GB, free: 11.18 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 453 * Number of variables: 453 Notification: Performance of Generate backend data structure: time 0.006851/0.5575, allocations: 3.035 MB / 1.195 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.5576, allocations: 11.97 kB / 1.195 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000474/0.5581, allocations: 277 kB / 1.195 GB, free: 7.773 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001775/0.5599, allocations: 420.3 kB / 1.196 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004468/0.5643, allocations: 2.022 MB / 1.198 GB, free: 5.289 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.5645, allocations: 143.6 kB / 1.198 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/0.5648, allocations: 184 kB / 1.198 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003822/0.5687, allocations: 1.925 MB / 1.2 GB, free: 2.98 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/0.5687, allocations: 7.984 kB / 1.2 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.5689, allocations: 83.92 kB / 1.2 GB, free: 2.891 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.802e-05/0.569, allocations: 47.94 kB / 1.2 GB, free: 2.844 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003122/0.5721, allocations: 1.443 MB / 1.201 GB, free: 1.398 MB / 0.9512 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.01283/0.585, allocations: 8.134 MB / 1.209 GB, free: 8.84 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.5875, allocations: 1.044 MB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007674/0.5883, allocations: 363 kB / 1.211 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/0.5894, allocations: 1.156 MB / 1.212 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009879/0.5904, allocations: 434.9 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=67): time 3.377e-06/0.5904, allocations: 0 / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of matching and sorting (n=67): time 0.003105/0.5936, allocations: 1.129 MB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/0.5937, allocations: 137.1 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Fluid/HeatPumps/ModularReversible/Modular.mo:62:3-64:76:writable] Warning: Parameter heaPum.TEvaCoo_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=288.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Fluid/HeatPumps/ModularReversible/Modular.mo:59:3-61:76:writable] Warning: Parameter heaPum.TConCoo_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=288.15) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00311/0.5968, allocations: 1.775 MB / 1.215 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001749/0.597, allocations: 51.12 kB / 1.215 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.5983, allocations: 1.099 MB / 1.216 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003214/0.5986, allocations: 236.7 kB / 1.217 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003532/0.599, allocations: 222.4 kB / 1.217 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001975/0.5992, allocations: 345.9 kB / 1.217 GB, free: 472 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/0.6001, allocations: 361.7 kB / 1.217 GB, free: 108 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.6013, allocations: 0.6947 MB / 1.218 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001883/0.6032, allocations: 1.009 MB / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.6032, allocations: 0 / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002997/0.6062, allocations: 1.242 MB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/0.6062, allocations: 8 kB / 1.22 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.6063, allocations: 11.94 kB / 1.22 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.448e-05/0.6063, allocations: 16 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008542/0.6072, allocations: 223.6 kB / 1.221 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/0.6072, allocations: 19.94 kB / 1.221 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.6089, allocations: 168.6 kB / 1.221 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.964e-05/0.609, allocations: 47.98 kB / 1.221 GB, free: 12.41 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.tabMea.nextTimeEvent,$whenCondition1,heaPum.conHea.y,tabMea.nextTimeEventScaled,$PRE.tabMea.nextTimeEventScaled,tabMea.nextTimeEvent,heaPum.eff.hys.y,$PRE.heaPum.eff.hys.y,heaPum.hys.y,$PRE.heaPum.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 122 * 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.001239/0.6102, allocations: 0.5081 MB / 1.221 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005137/0.6107, allocations: 185.8 kB / 1.221 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.6132, allocations: 1.047 MB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.6132, allocations: 8 kB / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.6132, allocations: 0 / 1.223 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001746/0.615, allocations: 0.8554 MB / 1.223 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00543/0.6204, allocations: 2.869 MB / 1.226 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.6204, allocations: 0 / 1.226 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006638/0.6211, allocations: 144 kB / 1.226 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.618e-06/0.6211, allocations: 8 kB / 1.226 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.6212, allocations: 23.98 kB / 1.226 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.6212, allocations: 4 kB / 1.226 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6212, allocations: 4 kB / 1.226 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00325/0.6245, allocations: 1.526 MB / 1.228 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009156/0.6254, allocations: 382.5 kB / 1.228 GB, free: 4.688 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.6257, allocations: 20 kB / 1.228 GB, free: 4.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008507/0.6266, allocations: 59.94 kB / 1.228 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.6267, allocations: 60.47 kB / 1.228 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.6268, allocations: 31.98 kB / 1.228 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002047/0.6289, allocations: 1.206 MB / 1.23 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6289, allocations: 0 / 1.23 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002029/0.6309, allocations: 0.6465 MB / 1.23 GB, free: 2.645 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U,heaPum.refCycIneCon.criDam.x[1],heaPum.refCycIneCon.criDam.x[2],heaPum.refCycIneEva.criDam.x[1],heaPum.refCycIneEva.criDam.x[2]) * Number of discrete variables: 5 ($whenCondition1,heaPum.hys.y,heaPum.eff.hys.y,tabMea.nextTimeEvent,tabMea.nextTimeEventScaled) * Number of discrete states: 4 (tabMea.nextTimeEvent,tabMea.nextTimeEventScaled,heaPum.hys.y,heaPum.eff.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.006001/0.6369, allocations: 2.858 MB / 1.233 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002595/0.6396, allocations: 1.011 MB / 1.234 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.6396, allocations: 0 / 1.234 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009066/0.6405, allocations: 424.6 kB / 1.234 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004196/0.6447, allocations: 0.8548 MB / 1.235 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.613/1.258, allocations: 14.98 MB / 1.25 GB, free: 172.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001465/1.259, allocations: 1.506 MB / 1.251 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001786/1.261, allocations: 363.1 kB / 1.252 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/1.262, allocations: 0.9137 MB / 1.253 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.112e-06/1.262, allocations: 0 / 1.253 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1185/1.381, allocations: 52.68 MB / 1.304 GB, free: 150 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.579/10.96, allocations: 4.375 kB / 1.304 GB, free: 150 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness_res.csv --start-time 0 --stop-time 14365 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.746 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[29232]=14365.000000 File[8846]=4142.870000 " Variables in the reference:time,TConOutMea,TConOutSim,PEleMea,PEleSim,TEvaOutMea,TEvaOutSim Variables in the result:time,PEleMea,PEleSim,TConOutMea,TConOutSim,TEvaOutMea,TEvaOutSim