Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: 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_10_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_10_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.00118/0.00118, allocations: 109.5 kB / 16.41 MB, free: 6.5 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.001226/0.001227, allocations: 183 kB / 17.34 MB, free: 5.762 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.434/2.434, allocations: 437 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001476, allocations: 68.11 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8815/0.883, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001755/0.8848, allocations: 0.5867 MB / 1.168 GB, free: 3.301 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004057/0.8852, allocations: 103.6 kB / 1.168 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.341e-05/0.8853, allocations: 0 / 1.168 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.8853, allocations: 0 / 1.168 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.8854, allocations: 3.938 kB / 1.168 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.8857, allocations: 39.89 kB / 1.168 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001256/0.8859, allocations: 67.92 kB / 1.168 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.8859, allocations: 0 / 1.168 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.517e-05/0.886, allocations: 23.92 kB / 1.168 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.886, allocations: 31.95 kB / 1.168 GB, free: 3.035 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.886, allocations: 0 / 1.168 GB, free: 3.035 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.8862, allocations: 51.95 kB / 1.168 GB, free: 2.984 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.943e-05/0.8862, allocations: 19.97 kB / 1.168 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.8863, allocations: 23.91 kB / 1.168 GB, free: 2.941 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.8864, allocations: 67.78 kB / 1.168 GB, free: 2.875 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.8864, allocations: 0 / 1.168 GB, free: 2.875 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.056e-06/0.8864, allocations: 0 / 1.168 GB, free: 2.875 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.8864, allocations: 7.938 kB / 1.168 GB, free: 2.867 MB / 0.8887 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.0005253/0.887, allocations: 383.9 kB / 1.169 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.887, allocations: 8.031 kB / 1.169 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.8871, allocations: 4.938 kB / 1.169 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.08e-05/0.8872, allocations: 160.4 kB / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002556/0.8874, allocations: 285.6 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.8874, allocations: 4.375 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.8877, allocations: 74.2 kB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.8877, allocations: 3.938 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.8877, allocations: 4 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.8877, allocations: 0 / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.8881, allocations: 143.7 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.8883, allocations: 189.5 kB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.8886, allocations: 94.47 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.8888, allocations: 40.83 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.8888, allocations: 7.984 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.8888, allocations: 34.56 kB / 1.17 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.8888, allocations: 4 kB / 1.17 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0005325/0.8894, allocations: 149.8 kB / 1.17 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.8894, allocations: 59.34 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.698e-05/0.8895, allocations: 89.86 kB / 1.17 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.8895, allocations: 25.7 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.36e-05/0.8895, allocations: 80.14 kB / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.8896, allocations: 39.69 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.8896, allocations: 25.7 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.8897, allocations: 326.8 kB / 1.17 GB, free: 412 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.8899, allocations: 31.92 kB / 1.171 GB, free: 380 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.89, allocations: 31.97 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.8903, allocations: 72.81 kB / 1.171 GB, free: 272 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8903, allocations: 3.938 kB / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003738/0.8907, allocations: 113.5 kB / 1.171 GB, free: 148 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.8907, allocations: 11.94 kB / 1.171 GB, free: 136 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.8908, allocations: 0 / 1.171 GB, free: 136 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.081e-05/0.8908, allocations: 4 kB / 1.171 GB, free: 132 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.891, allocations: 23.97 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.891, allocations: 4 kB / 1.171 GB, free: 104 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.8911, allocations: 8 kB / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.8911, allocations: 3.984 kB / 1.171 GB, free: 92 kB / 0.8887 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 0.0001483/0.8913, allocations: 117.8 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.8913, allocations: 11.89 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.378e-05/0.8913, allocations: 7.969 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.8914, allocations: 7.984 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.8914, allocations: 4 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.8914, allocations: 0 / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.8916, allocations: 177.6 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.8916, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.8917, allocations: 31.98 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.8917, allocations: 3.938 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.8918, allocations: 3.984 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8918, allocations: 0 / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.8918, allocations: 4 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.8922, allocations: 153.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.953e-05/0.8922, allocations: 77.11 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.8923, allocations: 3.938 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.903e-05/0.8923, allocations: 4 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.8924, allocations: 15.98 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.8924, allocations: 3.984 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.739e-05/0.8925, allocations: 77.75 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8925, allocations: 0 / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002508/0.8927, allocations: 28 kB / 1.171 GB, free: 15.27 MB / 0.9044 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.0002629/0.893, allocations: 115.2 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003833/0.8934, allocations: 95.86 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8934, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.8936, allocations: 51.91 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.8937, allocations: 0 / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.8942, allocations: 182.5 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.8946, allocations: 0.6884 MB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.733e-05/0.8946, allocations: 23.42 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of SimCode: time 3.91e-07/0.8946, allocations: 0 / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of Templates: time 0.003511/0.8981, allocations: 1.319 MB / 1.174 GB, free: 12.74 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches