Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber",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.0044/0.0044, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.001256/0.001256, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.801/2.801, allocations: 469.8 MB / 0.7425 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.89 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2693, allocations: 159.1 MB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002627/0.2719, allocations: 1.607 MB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003681/0.2756, allocations: 3.252 MB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.51e-05/0.2757, allocations: 4 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.048e-05/0.2757, allocations: 7.922 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.63e-05/0.2758, allocations: 11.88 kB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.2762, allocations: 115.5 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.2763, allocations: 79.72 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.614e-05/0.2764, allocations: 16.17 kB / 1.225 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.502e-05/0.2765, allocations: 43.84 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.743e-05/0.2766, allocations: 35.84 kB / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.2766, allocations: 4 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.2769, allocations: 107.8 kB / 1.225 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.2769, allocations: 15.92 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.266e-05/0.277, allocations: 27.86 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002307/0.2772, allocations: 127.5 kB / 1.226 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2772, allocations: 7.938 kB / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.203e-06/0.2772, allocations: 0 / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2772, allocations: 0 / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005612/0.2778, allocations: 391.1 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.2779, allocations: 8.031 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.2779, allocations: 34.73 kB / 1.226 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.2779, allocations: 8.891 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.2781, allocations: 176.3 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.2781, allocations: 8.375 kB / 1.226 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.2781, allocations: 8.125 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.2783, allocations: 85.58 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2784, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.2784, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.2784, allocations: 0 / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.2786, allocations: 79.89 kB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.2791, allocations: 340.6 kB / 1.227 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.2793, allocations: 90.55 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.2795, allocations: 40.84 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008427/0.2803, allocations: 0.7566 MB / 1.227 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.2804, allocations: 38.84 kB / 1.228 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2804, allocations: 3.938 kB / 1.228 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004059/0.2808, allocations: 137.8 kB / 1.228 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.2808, allocations: 51.41 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2809, allocations: 117.8 kB / 1.228 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.2809, allocations: 29.69 kB / 1.228 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.281, allocations: 96.03 kB / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.281, allocations: 23.8 kB / 1.228 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.2811, allocations: 25.72 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.2812, allocations: 314.8 kB / 1.228 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.234e-05/0.2813, allocations: 31.98 kB / 1.228 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.2814, allocations: 49.62 kB / 1.228 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.2816, allocations: 81.86 kB / 1.228 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2816, allocations: 3.938 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002499/0.2819, allocations: 121.7 kB / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2819, allocations: 4 kB / 1.229 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.2819, allocations: 3.938 kB / 1.229 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2819, allocations: 7.938 kB / 1.229 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.2821, allocations: 19.97 kB / 1.229 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2821, allocations: 4 kB / 1.229 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.178e-05/0.2822, allocations: 7.938 kB / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2822, allocations: 0 / 1.229 GB, free: 5.25 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.291e-05/0.2823, allocations: 125.8 kB / 1.229 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.2823, allocations: 7.953 kB / 1.229 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002996/0.2826, allocations: 122 kB / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2826, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.2827, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2827, allocations: 0 / 1.229 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.2829, allocations: 189.6 kB / 1.229 GB, free: 4.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2829, allocations: 4 kB / 1.229 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.283, allocations: 19.98 kB / 1.229 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.283, allocations: 4 kB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.283, allocations: 3.938 kB / 1.229 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.283, allocations: 0 / 1.229 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.283, allocations: 3.938 kB / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.2833, allocations: 199.5 kB / 1.229 GB, free: 4.5 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.8e-05/0.2834, allocations: 85.06 kB / 1.229 GB, free: 4.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.2834, allocations: 7.922 kB / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.2835, allocations: 12 kB / 1.229 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/0.2836, allocations: 7.984 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.2836, allocations: 0 / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.759e-05/0.2836, allocations: 91.27 kB / 1.229 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2836, allocations: 7.938 kB / 1.229 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002613/0.2839, allocations: 23.94 kB / 1.229 GB, free: 4.25 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0006644/0.2846, allocations: 0.7558 MB / 1.23 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002506/0.2848, allocations: 88.2 kB / 1.23 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2849, allocations: 3.938 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.285, allocations: 40.14 kB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.2853, allocations: 3.719 kB / 1.23 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005655/0.2858, allocations: 263.4 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.2861, allocations: 0.6961 MB / 1.231 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.284e-05/0.2862, allocations: 4 kB / 1.231 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.2863, allocations: 23.42 kB / 1.231 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.2863, allocations: 0 / 1.231 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.3082, allocations: 2.25 MB / 1.233 GB, free: 192 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.447/7.755, allocations: 13.06 kB / 1.234 GB, free: 184 kB / 0.9825 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.csv --start-time 0 --stop-time 50 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches