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 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.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.001555/0.001555, allocations: 108 kB / 15.61 MB, free: 152 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.002079/0.002079, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.305/1.305, 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 11.0.1-master/package.mo): time 2.661/2.661, allocations: 469.4 MB / 0.742 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 66.25 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2645, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002665/0.2672, allocations: 1.607 MB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003358/0.2706, allocations: 3.25 MB / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.818e-05/0.2707, allocations: 0 / 1.068 GB, free: 9.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.315e-05/0.2707, allocations: 7.922 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.884e-05/0.2708, allocations: 15.86 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.2712, allocations: 119.5 kB / 1.069 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.532e-05/0.2713, allocations: 79.72 kB / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.04e-05/0.2714, allocations: 16.17 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.801e-05/0.2715, allocations: 39.86 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.2716, allocations: 39.83 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.2716, allocations: 4 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.2719, allocations: 103.8 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.2719, allocations: 15.92 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.243e-05/0.272, allocations: 35.84 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.2722, allocations: 123.9 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2722, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2722, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2722, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 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.0005285/0.2728, allocations: 391.2 kB / 1.069 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2728, allocations: 12.03 kB / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.912e-05/0.2729, allocations: 38.75 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.2729, allocations: 4.844 kB / 1.069 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.273, allocations: 180.2 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.273, allocations: 4.375 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.2731, allocations: 12.12 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.2733, allocations: 77.59 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.2733, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.2733, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2733, allocations: 4 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.2735, allocations: 75.94 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004519/0.274, allocations: 332.6 kB / 1.07 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.2742, allocations: 90.53 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2743, allocations: 44.84 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008124/0.2751, allocations: 0.7569 MB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.2752, allocations: 38.5 kB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.2752, allocations: 0 / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003879/0.2756, allocations: 133.5 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.2756, allocations: 55.41 kB / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.258e-05/0.2757, allocations: 118.1 kB / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.2757, allocations: 33.69 kB / 1.071 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.2758, allocations: 92.12 kB / 1.071 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.2758, allocations: 35.55 kB / 1.071 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.2759, allocations: 17.72 kB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.744e-05/0.276, allocations: 322.8 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.698e-05/0.2761, allocations: 27.98 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.611e-05/0.2762, allocations: 45.62 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.2763, allocations: 78 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2764, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000234/0.2766, allocations: 117.5 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2766, allocations: 4 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2766, allocations: 8 kB / 1.072 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2766, allocations: 3.938 kB / 1.072 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2768, allocations: 19.98 kB / 1.072 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2768, allocations: 4.031 kB / 1.072 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.2769, allocations: 4 kB / 1.072 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.2769, allocations: 0 / 1.072 GB, free: 5.508 MB / 0.8262 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 7.706e-05/0.277, allocations: 125.9 kB / 1.072 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.277, allocations: 11.84 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.2773, allocations: 130.1 kB / 1.072 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2773, allocations: 0 / 1.072 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2773, allocations: 0 / 1.072 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2773, allocations: 0 / 1.072 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000178/0.2775, allocations: 189.6 kB / 1.072 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2775, allocations: 0 / 1.072 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.2776, allocations: 19.98 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2776, allocations: 3.938 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.2777, allocations: 3.938 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2777, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2777, allocations: 4 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.2779, allocations: 203.4 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.278, allocations: 88.95 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.278, allocations: 3.938 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.2781, allocations: 7.984 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.2782, allocations: 7.984 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.2782, allocations: 4 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.908e-05/0.2782, allocations: 103.3 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2782, allocations: 0 / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002512/0.2785, allocations: 16 kB / 1.073 GB, free: 4.5 MB / 0.8262 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.000585/0.2791, allocations: 0.7558 MB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.2793, allocations: 91.81 kB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2793, allocations: 0 / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.253e-05/0.2794, allocations: 35.98 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.2797, allocations: 12.92 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005394/0.2803, allocations: 248.2 kB / 1.074 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.2805, allocations: 0.6924 MB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.373e-05/0.2806, allocations: 15.91 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.2806, allocations: 27.42 kB / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2806, allocations: 0 / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.2977, allocations: 2.213 MB / 1.077 GB, free: 464 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.704, allocations: 11.89 kB / 1.077 GB, free: 456 kB / 0.8262 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 50 --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