Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.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.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",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.0102/0.0102, allocations: 99.66 kB / 15.73 MB, free: 6.477 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.001603/0.001603, allocations: 189.9 kB / 16.67 MB, free: 6.391 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 68.12 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3638, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.004186/0.3681, allocations: 1.544 MB / 1.209 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005378/0.3686, allocations: 175.4 kB / 1.209 GB, free: 8.484 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.368e-05/0.3687, allocations: 4 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.22e-05/0.3688, allocations: 7.922 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.609e-05/0.3688, allocations: 3.938 kB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.3692, allocations: 51.88 kB / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.58e-05/0.3693, allocations: 31.92 kB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3694, allocations: 20 kB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.509e-05/0.3695, allocations: 15.92 kB / 1.209 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.169e-05/0.3695, allocations: 23.91 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.3696, allocations: 0 / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.3697, allocations: 51.95 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.022e-05/0.3697, allocations: 8 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.3698, allocations: 27.84 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.3699, allocations: 55.84 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.37, allocations: 4 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.37, allocations: 0 / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.37, allocations: 0 / 1.209 GB, free: 8.184 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.00054/0.3705, allocations: 359.6 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.3706, allocations: 12.62 kB / 1.21 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.502e-05/0.3706, allocations: 30.75 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.3707, allocations: 4.844 kB / 1.21 GB, free: 7.727 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.3709, allocations: 172.3 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.3709, allocations: 4.375 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.3709, allocations: 8.375 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.3712, allocations: 62.22 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3712, allocations: 7.875 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.3712, allocations: 0 / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3712, allocations: 4 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.3714, allocations: 43.95 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000687/0.3721, allocations: 284.6 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.3725, allocations: 58.53 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3726, allocations: 24.91 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003035/0.3729, allocations: 166.3 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.373, allocations: 38.55 kB / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.373, allocations: 0 / 1.21 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004068/0.3734, allocations: 93.58 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.3735, allocations: 55.41 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.3736, allocations: 109.8 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.3736, allocations: 25.7 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.217e-05/0.3737, allocations: 100 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.3737, allocations: 0 / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.456e-05/0.3737, allocations: 17.72 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3739, allocations: 314.8 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.786e-05/0.374, allocations: 23.97 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-05/0.374, allocations: 15.98 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.3742, allocations: 52.75 kB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3742, allocations: 0 / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002158/0.3745, allocations: 77.84 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3745, allocations: 5.719 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3745, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3745, allocations: 7.969 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.466e-05/0.3746, allocations: 11.98 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.3746, allocations: 4 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.529e-05/0.3747, allocations: 11.98 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.3747, allocations: 4 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.765e-05/0.3748, allocations: 113.8 kB / 1.211 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.3748, allocations: 4 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.3751, allocations: 85.48 kB / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.3751, allocations: 7.984 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3751, allocations: 4 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3751, allocations: 0 / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.3754, allocations: 169.5 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3754, allocations: 0 / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.672e-05/0.3755, allocations: 11.98 kB / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.3755, allocations: 0 / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3755, allocations: 0 / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3755, allocations: 0 / 1.212 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3755, allocations: 3.938 kB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/0.3758, allocations: 183.4 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/0.3759, allocations: 81.11 kB / 1.212 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.3759, allocations: 0 / 1.212 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-05/0.376, allocations: 7.984 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.376, allocations: 4 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.376, allocations: 4 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.347e-05/0.3761, allocations: 87.27 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3761, allocations: 4 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000268/0.3764, allocations: 23.94 kB / 1.212 GB, free: 4.859 MB / 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: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006423/0.377, allocations: 0.7201 MB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002434/0.3773, allocations: 47.89 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3773, allocations: 3.938 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.3774, allocations: 23.98 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.3777, allocations: 8 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.3793, allocations: 1.3 MB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.3795, allocations: 0.6768 MB / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.437e-05/0.3796, allocations: 4 kB / 1.215 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.955e-05/0.3796, allocations: 19.42 kB / 1.215 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3796, allocations: 0 / 1.215 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.4, allocations: 1.945 MB / 1.217 GB, free: 60 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.106, allocations: 5.188 kB / 1.217 GB, free: 56 kB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bin.y Variables in the result:bin.k,bin.n,bin.y,k.duration,k.height,k.offset,k.startTime,k.y,n.k,n.y,rea2Int.u,rea2Int.y,time