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.00772/0.00772, allocations: 102 kB / 15.73 MB, free: 6.035 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.001662/0.001662, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.745/2.745, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 64.12 kB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3188, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002532/0.3214, allocations: 1.531 MB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004404/0.3219, allocations: 183.4 kB / 1.209 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.3219, allocations: 4 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.941e-05/0.3219, allocations: 3.938 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.209e-05/0.322, allocations: 3.938 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.3223, allocations: 47.88 kB / 1.209 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.535e-05/0.3224, allocations: 35.91 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.3226, allocations: 15.98 kB / 1.21 GB, free: 7.844 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.435e-05/0.3226, allocations: 19.92 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.392e-05/0.3227, allocations: 19.92 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.3227, allocations: 4 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3228, allocations: 55.94 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.3228, allocations: 8 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.946e-05/0.3228, allocations: 23.86 kB / 1.21 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.323, allocations: 55.86 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.323, allocations: 0 / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.282e-06/0.323, allocations: 0 / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.323, allocations: 0 / 1.21 GB, free: 7.66 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.0004549/0.3235, allocations: 367.3 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3235, allocations: 12.62 kB / 1.21 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.3236, allocations: 4.844 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.937e-05/0.3237, allocations: 168.3 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.3237, allocations: 384 / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3237, allocations: 8.359 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.3239, allocations: 62.22 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3239, allocations: 192 / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.3239, allocations: 7.938 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3239, allocations: 0 / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.3241, allocations: 43.95 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003678/0.3245, allocations: 288.6 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.3248, allocations: 58.55 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.3249, allocations: 28.89 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002163/0.3252, allocations: 166.2 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.3252, allocations: 34.56 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 2.535e-06/0.3252, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0003888/0.3256, allocations: 97.56 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.3256, allocations: 51.41 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.896e-05/0.3257, allocations: 113.8 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3257, allocations: 25.7 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.3258, allocations: 80.14 kB / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.3258, allocations: 11.91 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.3258, allocations: 13.7 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.326, allocations: 322.8 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.5e-05/0.326, allocations: 19.92 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.141e-05/0.3261, allocations: 23.97 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.3263, allocations: 52.75 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3263, allocations: 0 / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002209/0.3265, allocations: 77.56 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3266, allocations: 8 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3266, allocations: 4 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.3266, allocations: 0 / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.3267, allocations: 15.92 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3267, allocations: 0 / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.3268, allocations: 7.984 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.3268, allocations: 0 / 1.212 GB, free: 5.266 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.624e-05/0.3269, allocations: 118.1 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.3269, allocations: 4 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.3272, allocations: 89.47 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3272, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3272, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3272, allocations: 0 / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.3274, allocations: 173.5 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3274, allocations: 0 / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.3274, allocations: 11.98 kB / 1.212 GB, free: 4.805 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3274, allocations: 4 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.3275, allocations: 7.984 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3275, allocations: 0 / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3275, allocations: 0 / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.3277, allocations: 171.4 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.3278, allocations: 77.11 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3278, allocations: 3.984 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.3279, allocations: 12 kB / 1.212 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.328, allocations: 7.984 kB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.328, allocations: 0 / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.46e-05/0.328, allocations: 87.36 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.328, allocations: 0 / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002439/0.3283, allocations: 15.98 kB / 1.213 GB, free: 4.391 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.0002008/0.3285, allocations: 119.2 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000244/0.3287, allocations: 47.95 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3287, allocations: 0 / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.511e-05/0.3288, allocations: 27.86 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.3291, allocations: 17.56 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.3295, allocations: 129.2 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.3297, allocations: 0.6884 MB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.23e-05/0.3297, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.3298, allocations: 11.44 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.3298, allocations: 0 / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of Templates: time 0.003116/0.3329, allocations: 0.981 MB / 1.214 GB, free: 2.316 MB / 0.9669 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