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: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001213/0.001213, allocations: 195 kB / 16.14 MB, free: 6.648 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.392/1.392, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.746/2.746, allocations: 461.8 MB / 0.7342 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 65.45 kB / 0.8984 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3739, allocations: 157.4 MB / 1.052 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002793/0.3768, allocations: 1.59 MB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004953/0.3773, allocations: 183.4 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.883e-05/0.3773, allocations: 0 / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.859e-05/0.3774, allocations: 3.984 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.723e-05/0.3774, allocations: 0 / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.3777, allocations: 43.89 kB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.051e-05/0.3778, allocations: 27.92 kB / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.741e-05/0.3779, allocations: 16 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.185e-05/0.378, allocations: 19.91 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.523e-05/0.378, allocations: 15.92 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.378, allocations: 4 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.3782, allocations: 39.97 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.3782, allocations: 11.97 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.586e-05/0.3782, allocations: 11.88 kB / 1.054 GB, free: 6.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.3784, allocations: 67.84 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3784, allocations: 4 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.81e-07/0.3784, allocations: 0 / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.3784, allocations: 0 / 1.054 GB, free: 6.793 MB / 0.8106 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.0005056/0.3789, allocations: 359.6 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.379, allocations: 8.031 kB / 1.054 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.379, allocations: 8.875 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3791, allocations: 160.4 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.502e-05/0.3792, allocations: 16.25 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3792, allocations: 4.375 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.3794, allocations: 70.2 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3794, allocations: 192 / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.3795, allocations: 3.938 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3795, allocations: 0 / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.3797, allocations: 43.95 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004261/0.3801, allocations: 296.6 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.3805, allocations: 54.55 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.3806, allocations: 36.88 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002402/0.3808, allocations: 162.2 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.3809, allocations: 38.56 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.462e-06/0.3809, allocations: 0 / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004294/0.3813, allocations: 101.5 kB / 1.055 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.081e-05/0.3814, allocations: 51.41 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.504e-05/0.3814, allocations: 105.8 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3815, allocations: 29.7 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.3815, allocations: 88.14 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.3815, allocations: 3.906 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.3816, allocations: 17.72 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3817, allocations: 322.8 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.637e-05/0.3818, allocations: 15.98 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.3819, allocations: 23.97 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.3821, allocations: 44.83 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3821, allocations: 4 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002288/0.3824, allocations: 77.58 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3824, allocations: 8 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3824, allocations: 0 / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3824, allocations: 0 / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.635e-05/0.3825, allocations: 11.98 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.3825, allocations: 0 / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.095e-05/0.3826, allocations: 8 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.3826, allocations: 7.984 kB / 1.056 GB, free: 4.391 MB / 0.8106 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.279e-05/0.3827, allocations: 113.8 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.788e-05/0.3827, allocations: 7.844 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002832/0.383, allocations: 89.48 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.383, allocations: 0 / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.383, allocations: 4 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.383, allocations: 0 / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.3832, allocations: 165.6 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3832, allocations: 3.938 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-05/0.3833, allocations: 11.98 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3833, allocations: 0 / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.3833, allocations: 0 / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3833, allocations: 4 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3833, allocations: 0 / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.3836, allocations: 179.8 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.3837, allocations: 81.02 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.3837, allocations: 0 / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.126e-05/0.3838, allocations: 11.92 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.3838, allocations: 16.02 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.3839, allocations: 0 / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.102e-05/0.3839, allocations: 83.28 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3839, allocations: 4 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002578/0.3842, allocations: 16 kB / 1.057 GB, free: 3.512 MB / 0.8106 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.0001982/0.3844, allocations: 115.3 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002444/0.3846, allocations: 43.95 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3846, allocations: 0 / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.3848, allocations: 27.97 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3851, allocations: 23.75 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.3854, allocations: 139.1 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3857, allocations: 0.6809 MB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.905e-05/0.3857, allocations: 12 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.759e-05/0.3857, allocations: 7.438 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3857, allocations: 0 / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of Templates: time 0.003204/0.3889, allocations: 0.8777 MB / 1.059 GB, free: 1.531 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches