Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_10_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.000924/0.000924, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006638/0.006638, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.632/2.632, allocations: 437.8 MB / 0.7121 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003505, allocations: 12 kB / 0.873 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7515/0.7519, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002162/0.7541, allocations: 1.321 MB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004569/0.7587, allocations: 3.191 MB / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.7588, allocations: 4 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.701e-05/0.7589, allocations: 11.92 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.759, allocations: 11.86 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006329/0.7596, allocations: 103.7 kB / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.7598, allocations: 75.7 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.7599, allocations: 16.17 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.7601, allocations: 31.86 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.7602, allocations: 35.83 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.7603, allocations: 3.938 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003792/0.7606, allocations: 103.8 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.7607, allocations: 7.922 kB / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.7607, allocations: 57.55 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.761, allocations: 110 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.761, allocations: 0 / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.584e-06/0.761, allocations: 4 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.7611, allocations: 0 / 1.028 GB, free: 10.8 MB / 0.7794 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.0006843/0.7617, allocations: 387.3 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.7618, allocations: 8.031 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.872e-05/0.7619, allocations: 34.73 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.7619, allocations: 8.844 kB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.7621, allocations: 188.1 kB / 1.029 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.7621, allocations: 8.375 kB / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.7621, allocations: 8.125 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.7624, allocations: 81.64 kB / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.7624, allocations: 0 / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.7624, allocations: 4 kB / 1.029 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.7624, allocations: 0 / 1.029 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.7627, allocations: 79.95 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.7632, allocations: 336.5 kB / 1.029 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.7635, allocations: 98.66 kB / 1.029 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.7636, allocations: 52.77 kB / 1.029 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008367/0.7645, allocations: 0.745 MB / 1.03 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.7645, allocations: 30.56 kB / 1.03 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.7645, allocations: 8 kB / 1.03 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004273/0.765, allocations: 145.5 kB / 1.03 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.765, allocations: 55.41 kB / 1.03 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.7651, allocations: 117.8 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.7651, allocations: 25.7 kB / 1.03 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.7652, allocations: 96.03 kB / 1.031 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.7652, allocations: 27.64 kB / 1.031 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.7653, allocations: 17.7 kB / 1.031 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.7654, allocations: 314.8 kB / 1.031 GB, free: 7.621 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.7655, allocations: 36.02 kB / 1.031 GB, free: 7.586 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001085/0.7656, allocations: 53.62 kB / 1.031 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.7658, allocations: 85.69 kB / 1.031 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7659, allocations: 8 kB / 1.031 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002581/0.7661, allocations: 117.8 kB / 1.031 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.7661, allocations: 4 kB / 1.031 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.7662, allocations: 8 kB / 1.031 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.7662, allocations: 3.938 kB / 1.031 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.7663, allocations: 24.02 kB / 1.031 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.7664, allocations: 4.062 kB / 1.031 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.7664, allocations: 11.98 kB / 1.031 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.7664, allocations: 0 / 1.031 GB, free: 7.254 MB / 0.7794 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 0.0001017/0.7666, allocations: 122.2 kB / 1.031 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.7666, allocations: 7.906 kB / 1.031 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003253/0.7669, allocations: 141.9 kB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7669, allocations: 3.938 kB / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.7669, allocations: 0 / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.767, allocations: 0 / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.7672, allocations: 189.5 kB / 1.032 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7672, allocations: 0 / 1.032 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.7673, allocations: 27.92 kB / 1.032 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.7673, allocations: 0 / 1.032 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.7673, allocations: 3.938 kB / 1.032 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.7673, allocations: 0 / 1.032 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.7673, allocations: 3.984 kB / 1.032 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.7676, allocations: 207.5 kB / 1.032 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.7677, allocations: 81.02 kB / 1.032 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.7677, allocations: 7.938 kB / 1.032 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.7678, allocations: 8 kB / 1.032 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.7679, allocations: 3.984 kB / 1.032 GB, free: 6.363 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.7679, allocations: 4 kB / 1.032 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.014e-05/0.768, allocations: 91.45 kB / 1.032 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.9e-07/0.768, allocations: 0 / 1.032 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002626/0.7682, allocations: 35.94 kB / 1.032 GB, free: 6.234 MB / 0.7794 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.0006736/0.7689, allocations: 0.763 MB / 1.033 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.7692, allocations: 87.83 kB / 1.033 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7692, allocations: 0 / 1.033 GB, free: 5.355 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.7693, allocations: 56.02 kB / 1.033 GB, free: 5.301 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.7696, allocations: 6.812 kB / 1.033 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006077/0.7702, allocations: 297.8 kB / 1.033 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.7705, allocations: 0.6888 MB / 1.034 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.645e-05/0.7706, allocations: 11.97 kB / 1.034 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.7706, allocations: 19.44 kB / 1.034 GB, free: 4.219 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/0.7706, allocations: 0 / 1.034 GB, free: 4.219 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01305/0.7837, allocations: 1.98 MB / 1.036 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.784, allocations: 220.5 kB / 1.036 GB, free: 2.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.548, allocations: 0 / 1.036 GB, free: 2.156 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches