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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0014/0.0014, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001571/0.001571, allocations: 193.1 kB / 16.25 MB, free: 6.637 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.285/1.285, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.192/2.192, allocations: 390.2 MB / 0.6644 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 67.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5502/0.5514, allocations: 140.4 MB / 0.9492 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.RayleighNumber): time 0.002263/0.5537, allocations: 1.661 MB / 0.9509 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002479/0.5562, allocations: 3.235 MB / 0.954 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.612e-05/0.5563, allocations: 0 / 0.954 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.5563, allocations: 0 / 0.954 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.68e-05/0.5564, allocations: 17.47 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.5567, allocations: 106 kB / 0.9541 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.753e-05/0.5568, allocations: 80.08 kB / 0.9542 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.005e-05/0.5569, allocations: 10.56 kB / 0.9542 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.848e-05/0.557, allocations: 39.53 kB / 0.9543 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.5571, allocations: 40.92 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.5571, allocations: 4.312 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.5573, allocations: 104.2 kB / 0.9544 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.5573, allocations: 18.36 kB / 0.9544 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.035e-05/0.5574, allocations: 32.3 kB / 0.9545 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.5575, allocations: 121.5 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.5575, allocations: 0 / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5575, allocations: 1.562 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.5576, allocations: 3.938 kB / 0.9546 GB, free: 4.801 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.0004109/0.558, allocations: 385.7 kB / 0.9549 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.558, allocations: 13.33 kB / 0.955 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.642e-05/0.558, allocations: 45.16 kB / 0.955 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.5581, allocations: 8.562 kB / 0.955 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.378e-05/0.5581, allocations: 167.8 kB / 0.9552 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.5582, allocations: 5.312 kB / 0.9552 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.5582, allocations: 8.125 kB / 0.9552 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.5584, allocations: 81.8 kB / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.5584, allocations: 0 / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.5584, allocations: 4 kB / 0.9553 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.5584, allocations: 1.375 kB / 0.9553 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.5586, allocations: 81.81 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.5589, allocations: 321.2 kB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.5591, allocations: 91.3 kB / 0.9557 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.751e-05/0.5592, allocations: 49.23 kB / 0.9558 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005591/0.5598, allocations: 0.7554 MB / 0.9565 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/0.5598, allocations: 39.62 kB / 0.9566 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.5598, allocations: 0 / 0.9566 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003241/0.5601, allocations: 137.8 kB / 0.9567 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.278e-05/0.5602, allocations: 55.39 kB / 0.9567 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.213e-05/0.5602, allocations: 124.7 kB / 0.9569 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.778e-06/0.5603, allocations: 26.73 kB / 0.9569 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.016e-05/0.5603, allocations: 91.05 kB / 0.957 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.5603, allocations: 34.77 kB / 0.957 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.5604, allocations: 26.92 kB / 0.957 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.442e-05/0.5604, allocations: 316.7 kB / 0.9573 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-05/0.5605, allocations: 28.7 kB / 0.9574 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.948e-05/0.5606, allocations: 47.91 kB / 0.9574 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.5607, allocations: 77.88 kB / 0.9575 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.5607, allocations: 1.406 kB / 0.9575 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001993/0.5609, allocations: 108.3 kB / 0.9576 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.561, allocations: 8.75 kB / 0.9576 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.561, allocations: 1.453 kB / 0.9576 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.561, allocations: 1.125 kB / 0.9576 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.5611, allocations: 26.78 kB / 0.9576 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.5611, allocations: 13.42 kB / 0.9576 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.09e-05/0.5612, allocations: 15.52 kB / 0.9576 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.5612, allocations: 2.375 kB / 0.9576 GB, free: 1.789 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 4.913e-05/0.5613, allocations: 117.1 kB / 0.9578 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.5613, allocations: 11.16 kB / 0.9578 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.5616, allocations: 124.5 kB / 0.9579 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.5616, allocations: 1.125 kB / 0.9579 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.5616, allocations: 0 / 0.9579 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.5616, allocations: 0.9688 kB / 0.9579 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.5617, allocations: 184.9 kB / 0.9581 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5617, allocations: 0 / 0.9581 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/0.5618, allocations: 21.2 kB / 0.9581 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.5618, allocations: 5.062 kB / 0.9581 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.5619, allocations: 1.125 kB / 0.9581 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5619, allocations: 0 / 0.9581 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5619, allocations: 5.391 kB / 0.9581 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.5621, allocations: 211.4 kB / 0.9583 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.751e-05/0.5621, allocations: 88.27 kB / 0.9584 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.5621, allocations: 0 / 0.9584 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.5622, allocations: 5.25 kB / 0.9584 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.5623, allocations: 11.55 kB / 0.9584 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.5623, allocations: 0 / 0.9584 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.878e-05/0.5623, allocations: 95.77 kB / 0.9585 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5623, allocations: 7.688 kB / 0.9585 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002326/0.5626, allocations: 20.66 kB / 0.9585 GB, free: 0.9609 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.0004123/0.563, allocations: 0.7438 MB / 0.9592 GB, free: 268 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.5632, allocations: 89.19 kB / 0.9593 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5632, allocations: 0 / 0.9593 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.294e-05/0.5633, allocations: 44.03 kB / 0.9594 GB, free: 204 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.5636, allocations: 10.84 kB / 0.9594 GB, free: 196 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004932/0.5641, allocations: 265.2 kB / 0.9596 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.5643, allocations: 0.693 MB / 0.9603 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.361e-05/0.5644, allocations: 7.453 kB / 0.9603 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.5644, allocations: 22.67 kB / 0.9603 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.5645, allocations: 1.312 kB / 0.9603 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2858/0.8502, allocations: 2.098 MB / 0.9624 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/0.8506, allocations: 216.2 kB / 0.9626 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.694, allocations: 0.9844 kB / 0.9626 GB, free: 13.95 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