Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber,fileNamePrefix="Buildings_9_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.001325/0.001325, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001416/0.001416, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.219/2.219, allocations: 390.2 MB / 0.6643 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 59.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5778/0.5792, allocations: 140.4 MB / 0.9491 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002285/0.5815, allocations: 1.657 MB / 0.9507 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.5841, allocations: 3.24 MB / 0.9538 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.365e-05/0.5842, allocations: 1.406 kB / 0.9538 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.169e-05/0.5843, allocations: 3.984 kB / 0.9538 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.461e-05/0.5843, allocations: 13.33 kB / 0.9539 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.5847, allocations: 105.7 kB / 0.954 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.601e-05/0.5848, allocations: 75.62 kB / 0.954 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.528e-05/0.5848, allocations: 13.98 kB / 0.954 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.294e-05/0.5849, allocations: 34.88 kB / 0.9541 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.853e-05/0.585, allocations: 40.64 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.585, allocations: 2.531 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.5853, allocations: 97.22 kB / 0.9542 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.5853, allocations: 14.7 kB / 0.9542 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.257e-05/0.5853, allocations: 31.81 kB / 0.9543 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.5855, allocations: 125.2 kB / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5855, allocations: 0 / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5855, allocations: 0 / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.5855, allocations: 1.125 kB / 0.9544 GB, free: 4.863 MB / 0.7169 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.0004451/0.586, allocations: 390.9 kB / 0.9548 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.586, allocations: 8.094 kB / 0.9548 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.5861, allocations: 44.94 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.027e-05/0.5861, allocations: 8.594 kB / 0.9548 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.427e-05/0.5862, allocations: 171.7 kB / 0.955 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.5862, allocations: 10.38 kB / 0.955 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.5862, allocations: 2.531 kB / 0.955 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.5864, allocations: 77.41 kB / 0.9551 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.5864, allocations: 4 kB / 0.9551 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.5864, allocations: 5.031 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.5864, allocations: 1.219 kB / 0.9551 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.5866, allocations: 77.44 kB / 0.9551 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.587, allocations: 321.8 kB / 0.9555 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.5872, allocations: 99.34 kB / 0.9555 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.169e-05/0.5873, allocations: 41.75 kB / 0.9556 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005968/0.5879, allocations: 0.7627 MB / 0.9563 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.5879, allocations: 35.75 kB / 0.9564 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.5879, allocations: 0 / 0.9564 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003558/0.5883, allocations: 137 kB / 0.9565 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.5883, allocations: 52.47 kB / 0.9565 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/0.5884, allocations: 117.1 kB / 0.9567 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.5884, allocations: 29.7 kB / 0.9567 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.405e-05/0.5885, allocations: 99.33 kB / 0.9568 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.5885, allocations: 25.94 kB / 0.9568 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.5885, allocations: 28.73 kB / 0.9568 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.818e-05/0.5886, allocations: 319.9 kB / 0.9571 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.393e-05/0.5887, allocations: 27.89 kB / 0.9572 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.701e-05/0.5888, allocations: 48.78 kB / 0.9572 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.5889, allocations: 69.7 kB / 0.9573 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.5889, allocations: 5.484 kB / 0.9573 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002101/0.5891, allocations: 104.1 kB / 0.9574 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.5892, allocations: 17.7 kB / 0.9574 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5892, allocations: 0 / 0.9574 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.5892, allocations: 5.375 kB / 0.9574 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.5893, allocations: 18.58 kB / 0.9574 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.5893, allocations: 1.156 kB / 0.9574 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.361e-05/0.5894, allocations: 19.47 kB / 0.9574 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.5894, allocations: 2.438 kB / 0.9574 GB, free: 1.863 MB / 0.7169 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 5.347e-05/0.5895, allocations: 117.3 kB / 0.9576 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.5895, allocations: 15.52 kB / 0.9576 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/0.5898, allocations: 124.2 kB / 0.9577 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.5898, allocations: 0.8125 kB / 0.9577 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.5898, allocations: 1.469 kB / 0.9577 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5898, allocations: 3.938 kB / 0.9577 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.59, allocations: 184.6 kB / 0.9579 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.59, allocations: 5.547 kB / 0.9579 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.5901, allocations: 20.89 kB / 0.9579 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.5901, allocations: 3.938 kB / 0.9579 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.5901, allocations: 5.312 kB / 0.9579 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.5901, allocations: 0 / 0.9579 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.5901, allocations: 1.219 kB / 0.9579 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/0.5903, allocations: 204.6 kB / 0.9581 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.5904, allocations: 86.42 kB / 0.9582 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.5904, allocations: 2.656 kB / 0.9582 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.639e-05/0.5905, allocations: 10.67 kB / 0.9582 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.5905, allocations: 11.17 kB / 0.9582 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.5905, allocations: 3.625 kB / 0.9582 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.837e-05/0.5906, allocations: 91.89 kB / 0.9583 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.01e-07/0.5906, allocations: 0 / 0.9583 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002432/0.5908, allocations: 24.22 kB / 0.9583 GB, free: 1.027 MB / 0.7169 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.0004386/0.5913, allocations: 0.7489 MB / 0.9591 GB, free: 332 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002059/0.5915, allocations: 93.47 kB / 0.9591 GB, free: 284 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5915, allocations: 0 / 0.9591 GB, free: 284 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.447e-05/0.5916, allocations: 39.33 kB / 0.9592 GB, free: 268 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.5919, allocations: 7.594 kB / 0.9592 GB, free: 264 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004886/0.5924, allocations: 268.4 kB / 0.9594 GB, free: 20 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.5927, allocations: 0.694 MB / 0.9601 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.329e-05/0.5927, allocations: 4.594 kB / 0.9601 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.5928, allocations: 25.89 kB / 0.9601 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.5928, allocations: 0 / 0.9601 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0746/0.6674, allocations: 2.036 MB / 0.9621 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.6676, allocations: 216.5 kB / 0.9623 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.551, allocations: 1.375 kB / 0.9623 GB, free: 14.04 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_RayleighNumber.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches