Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001293, allocations: 192.5 kB / 16.53 MB, free: 6.691 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.815/2.815, allocations: 472.7 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 68.36 kB / 0.9121 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2949, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.002133/0.297, allocations: 0.5705 MB / 1.069 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003879/0.2974, allocations: 111.6 kB / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.2975, allocations: 0 / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.789e-05/0.2975, allocations: 7.938 kB / 1.069 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.973e-06/0.2975, allocations: 7.938 kB / 1.069 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.2979, allocations: 35.88 kB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.298, allocations: 71.92 kB / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.2981, allocations: 0 / 1.069 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.552e-05/0.2981, allocations: 23.98 kB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.2982, allocations: 23.95 kB / 1.069 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.2982, allocations: 4 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.2984, allocations: 39.97 kB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.4e-05/0.2984, allocations: 23.91 kB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.122e-05/0.2985, allocations: 27.91 kB / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.2986, allocations: 67.83 kB / 1.069 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2987, allocations: 8 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2987, allocations: 0 / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.515e-06/0.2987, allocations: 0 / 1.069 GB, free: 9.387 MB / 0.8262 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.0005142/0.2992, allocations: 363.6 kB / 1.07 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.2992, allocations: 8.031 kB / 1.07 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/0.2993, allocations: 8.844 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.759e-05/0.2994, allocations: 176.6 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/0.2997, allocations: 277.6 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.937e-05/0.2997, allocations: 8.375 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.2999, allocations: 90.06 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3, allocations: 3.938 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3, allocations: 4 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.3, allocations: 0 / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.3003, allocations: 127.8 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.3005, allocations: 177.7 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.3009, allocations: 98.52 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.301, allocations: 44.77 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3011, allocations: 7.984 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/0.3011, allocations: 30.56 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.3011, allocations: 0 / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005697/0.3017, allocations: 157.7 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.3017, allocations: 51.41 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.694e-05/0.3018, allocations: 93.86 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.3018, allocations: 25.7 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.3018, allocations: 80.14 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/0.3019, allocations: 31.55 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.453e-05/0.3019, allocations: 33.7 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.302, allocations: 314.8 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.3022, allocations: 39.91 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.3023, allocations: 34.14 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.3026, allocations: 81.41 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3026, allocations: 0 / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003485/0.303, allocations: 117.5 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.303, allocations: 9.656 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.303, allocations: 0 / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.303, allocations: 0 / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.3032, allocations: 31.91 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.3032, allocations: 0 / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.404e-05/0.3033, allocations: 7.938 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3033, allocations: 8 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.712e-05/0.3034, allocations: 117.8 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.3034, allocations: 11.84 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.015e-05/0.3035, allocations: 7.969 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3035, allocations: 4 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3035, allocations: 0 / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3035, allocations: 0 / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.3036, allocations: 177.6 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3037, allocations: 3.984 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.3038, allocations: 35.91 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3038, allocations: 3.938 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3038, allocations: 4 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/0.3038, allocations: 7.984 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3039, allocations: 0 / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/0.3042, allocations: 129.1 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.018e-05/0.3043, allocations: 81.02 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.3043, allocations: 11.94 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.544e-05/0.3044, allocations: 11.98 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.3045, allocations: 15.98 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.3045, allocations: 0 / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.33e-05/0.3046, allocations: 83.2 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3046, allocations: 4 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000278/0.3049, allocations: 20 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.000261/0.3051, allocations: 119.6 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004164/0.3056, allocations: 99.94 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3056, allocations: 0 / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.3057, allocations: 47.91 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.3059, allocations: 6.062 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005773/0.3065, allocations: 164.8 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.3068, allocations: 0.6884 MB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002059/0.307, allocations: 43.73 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.492e-05/0.3071, allocations: 23.42 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3071, allocations: 0 / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of Templates: time 0.003676/0.3108, allocations: 1.009 MB / 1.074 GB, free: 3.547 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches