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.007768/0.007773, allocations: 101.1 kB / 15.73 MB, free: 6.027 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.001871/0.001871, allocations: 193.1 kB / 16.67 MB, free: 5.961 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.336/1.336, 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.0.1-master/package.mo): time 2.664/2.664, allocations: 461.9 MB / 0.7348 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.91 kB / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3051, allocations: 157.4 MB / 1.207 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002876/0.308, allocations: 1.607 MB / 1.209 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003724/0.3117, allocations: 3.257 MB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.3118, allocations: 0 / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.645e-05/0.3119, allocations: 7.875 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.673e-05/0.312, allocations: 19.84 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.3125, allocations: 111.5 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.3126, allocations: 83.69 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.3127, allocations: 12.19 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.3129, allocations: 35.91 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.313, allocations: 43.77 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.313, allocations: 4 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003459/0.3134, allocations: 95.84 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.3134, allocations: 23.92 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.3135, allocations: 27.86 kB / 1.213 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002709/0.3137, allocations: 131.8 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3138, allocations: 0 / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.023e-06/0.3138, allocations: 0 / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.3138, allocations: 0 / 1.213 GB, free: 4.578 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.0005721/0.3144, allocations: 387.2 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3144, allocations: 8.625 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.677e-05/0.3145, allocations: 38.75 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.3145, allocations: 8.844 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3146, allocations: 180.2 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3146, allocations: 8.375 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.3147, allocations: 8.125 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.3149, allocations: 77.59 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3149, allocations: 0 / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.3149, allocations: 4 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3149, allocations: 0 / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.3151, allocations: 83.88 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004607/0.3156, allocations: 320.6 kB / 1.214 GB, free: 3.328 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.3158, allocations: 102.5 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.925e-05/0.3159, allocations: 40.84 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007662/0.3167, allocations: 0.7527 MB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3168, allocations: 38.55 kB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.3168, allocations: 4 kB / 1.215 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004009/0.3172, allocations: 141.7 kB / 1.215 GB, free: 2.109 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.3172, allocations: 51.41 kB / 1.215 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.571e-05/0.3173, allocations: 125.7 kB / 1.215 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3173, allocations: 25.7 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/0.3174, allocations: 96.03 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.3174, allocations: 23.64 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.3175, allocations: 29.7 kB / 1.215 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.3176, allocations: 314.8 kB / 1.215 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.3177, allocations: 31.97 kB / 1.215 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.928e-05/0.3178, allocations: 41.7 kB / 1.215 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000176/0.318, allocations: 81.62 kB / 1.216 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.318, allocations: 0 / 1.216 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002427/0.3182, allocations: 113.9 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3182, allocations: 9.188 kB / 1.216 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3182, allocations: 4 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3183, allocations: 3.938 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.3184, allocations: 15.98 kB / 1.216 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3184, allocations: 8.062 kB / 1.216 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.386e-05/0.3185, allocations: 19.92 kB / 1.216 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.3185, allocations: 0 / 1.216 GB, free: 1.07 MB / 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 7.569e-05/0.3186, allocations: 113.8 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.3186, allocations: 4 kB / 1.216 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.3189, allocations: 134 kB / 1.216 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3189, allocations: 0 / 1.216 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.319, allocations: 4 kB / 1.216 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.319, allocations: 0 / 1.216 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.3192, allocations: 189.5 kB / 1.216 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3192, allocations: 0 / 1.216 GB, free: 0.5703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.3193, allocations: 15.98 kB / 1.216 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3193, allocations: 8 kB / 1.216 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.3193, allocations: 11.92 kB / 1.216 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3193, allocations: 0 / 1.216 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3193, allocations: 0 / 1.216 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.3196, allocations: 203.4 kB / 1.216 GB, free: 328 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.3196, allocations: 85.05 kB / 1.216 GB, free: 224 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.3197, allocations: 3.938 kB / 1.216 GB, free: 220 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.214e-05/0.3198, allocations: 4 kB / 1.216 GB, free: 216 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.3198, allocations: 11.98 kB / 1.216 GB, free: 204 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.3198, allocations: 0 / 1.216 GB, free: 204 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.713e-05/0.3199, allocations: 95.27 kB / 1.217 GB, free: 108 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3199, allocations: 4 kB / 1.217 GB, free: 104 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002547/0.3201, allocations: 20 kB / 1.217 GB, free: 84 kB / 0.9669 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.0006506/0.3208, allocations: 0.7591 MB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002385/0.321, allocations: 79.89 kB / 1.217 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3211, allocations: 0 / 1.217 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.772e-05/0.3212, allocations: 43.91 kB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.3215, allocations: 6.062 kB / 1.217 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006013/0.3221, allocations: 255.5 kB / 1.218 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.3224, allocations: 0.6922 MB / 1.218 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.468e-05/0.3225, allocations: 20.45 kB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.566e-05/0.3226, allocations: 21.81 kB / 1.218 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3226, allocations: 0 / 1.218 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.341, allocations: 2.275 MB / 1.221 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.407/7.749, allocations: 6.797 kB / 1.221 GB, free: 11.99 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 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.mat","/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