Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_latest_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.00525/0.00525, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001497/0.001497, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.695/2.695, allocations: 482.4 MB / 0.7548 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001909, allocations: 77.36 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.275, allocations: 162.2 MB / 1.241 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.00273/0.2778, allocations: 1.616 MB / 1.243 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003803/0.2816, allocations: 3.25 MB / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.2817, allocations: 0 / 1.246 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.2817, allocations: 7.922 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.123e-05/0.2818, allocations: 15.86 kB / 1.246 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2822, allocations: 123.5 kB / 1.246 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.2824, allocations: 75.72 kB / 1.246 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.327e-05/0.2825, allocations: 20.16 kB / 1.246 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.764e-05/0.2826, allocations: 39.84 kB / 1.246 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.301e-05/0.2827, allocations: 43.83 kB / 1.247 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.2827, allocations: 8 kB / 1.247 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.283, allocations: 95.8 kB / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.271e-05/0.283, allocations: 15.97 kB / 1.247 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.283, allocations: 35.73 kB / 1.247 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.2833, allocations: 123.9 kB / 1.247 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2833, allocations: 0 / 1.247 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.476e-06/0.2833, allocations: 4 kB / 1.247 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2833, allocations: 0 / 1.247 GB, free: 3.773 MB / 0.9669 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.000566/0.2839, allocations: 387.1 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.2839, allocations: 12.03 kB / 1.247 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.656e-05/0.284, allocations: 38.73 kB / 1.247 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.284, allocations: 8.891 kB / 1.247 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.2842, allocations: 180.2 kB / 1.247 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-06/0.2842, allocations: 384 / 1.247 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.2842, allocations: 12.12 kB / 1.247 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.2844, allocations: 81.64 kB / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.2844, allocations: 0 / 1.247 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.2844, allocations: 4 kB / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2845, allocations: 0 / 1.247 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.2847, allocations: 71.94 kB / 1.248 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004936/0.2852, allocations: 332.7 kB / 1.248 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.2854, allocations: 90.55 kB / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.2855, allocations: 48.83 kB / 1.248 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008286/0.2864, allocations: 0.753 MB / 1.249 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.2864, allocations: 38.5 kB / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2864, allocations: 0 / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004018/0.2868, allocations: 133.5 kB / 1.249 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.2869, allocations: 59.41 kB / 1.249 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.885e-05/0.287, allocations: 121.8 kB / 1.249 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.287, allocations: 33.7 kB / 1.249 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/0.2871, allocations: 88.09 kB / 1.249 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.2871, allocations: 31.73 kB / 1.249 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.2872, allocations: 21.72 kB / 1.249 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2873, allocations: 318.8 kB / 1.25 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.2874, allocations: 27.98 kB / 1.25 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2875, allocations: 57.56 kB / 1.25 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.2877, allocations: 73.69 kB / 1.25 GB, free: 452 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2877, allocations: 0 / 1.25 GB, free: 452 kB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002487/0.288, allocations: 117.5 kB / 1.25 GB, free: 328 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.288, allocations: 4 kB / 1.25 GB, free: 324 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.288, allocations: 4.031 kB / 1.25 GB, free: 320 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.288, allocations: 7.938 kB / 1.25 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.2882, allocations: 19.98 kB / 1.25 GB, free: 292 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.2882, allocations: 0 / 1.25 GB, free: 292 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.314e-05/0.2882, allocations: 4 kB / 1.25 GB, free: 288 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2883, allocations: 11.98 kB / 1.25 GB, free: 276 kB / 0.9669 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 8.661e-05/0.2884, allocations: 121.8 kB / 1.25 GB, free: 148 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.2884, allocations: 7.953 kB / 1.25 GB, free: 140 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.2887, allocations: 122.3 kB / 1.25 GB, free: 12 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2887, allocations: 4 kB / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.2887, allocations: 0 / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.2887, allocations: 0 / 1.25 GB, free: 8 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.289, allocations: 197.5 kB / 1.25 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.289, allocations: 3.938 kB / 1.25 GB, free: 15.76 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.2891, allocations: 19.92 kB / 1.25 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2891, allocations: 0 / 1.25 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.2891, allocations: 11.94 kB / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2891, allocations: 0 / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2891, allocations: 0 / 1.25 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.2894, allocations: 203.5 kB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.2895, allocations: 89.05 kB / 1.251 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.2895, allocations: 3.938 kB / 1.251 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.2896, allocations: 8 kB / 1.251 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.2896, allocations: 3.984 kB / 1.251 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.2897, allocations: 4 kB / 1.251 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.253e-05/0.2897, allocations: 95.27 kB / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2897, allocations: 0 / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002531/0.29, allocations: 20.19 kB / 1.251 GB, free: 15.28 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.0006856/0.2907, allocations: 0.7591 MB / 1.251 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002547/0.291, allocations: 87.83 kB / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.291, allocations: 0 / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.2911, allocations: 35.98 kB / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2914, allocations: 16.05 kB / 1.252 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.292, allocations: 247.4 kB / 1.252 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.2923, allocations: 0.6922 MB / 1.253 GB, free: 13.36 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.877e-05/0.2924, allocations: 8 kB / 1.253 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.856e-05/0.2924, allocations: 23.42 kB / 1.253 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2924, allocations: 3.938 kB / 1.253 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.3154, allocations: 2.266 MB / 1.255 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.853, allocations: 8.109 kB / 1.255 GB, free: 11.2 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches