Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.319/1.319, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.00108, allocations: 177.9 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.4 MB / 0.5775 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000912/0.0009118, allocations: 105.5 kB / 0.6822 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 9 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2016, allocations: 106.3 MB / 0.9001 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.3567, allocations: 131.3 MB / 1.028 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.357, allocations: 75.95 kB / 1.028 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003637/0.3607, allocations: 1.222 MB / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.244e-06/0.3607, allocations: 0 / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.3607, allocations: 0 / 1.03 GB, free: 11.18 MB / 0.6823 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.0004592/0.3612, allocations: 367.2 kB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.3613, allocations: 8.031 kB / 1.03 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.3613, allocations: 7.938 kB / 1.03 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.3614, allocations: 171 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.3617, allocations: 281 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.3617, allocations: 4 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.362, allocations: 77.64 kB / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.362, allocations: 0 / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.362, allocations: 3.938 kB / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3621, allocations: 3.984 kB / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.3624, allocations: 135.8 kB / 1.031 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001969/0.3626, allocations: 181.5 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.3629, allocations: 98.45 kB / 1.031 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.3629, allocations: 4 kB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.3629, allocations: 34.89 kB / 1.031 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.845e-06/0.3629, allocations: 0 / 1.031 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004855/0.3634, allocations: 153.4 kB / 1.031 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.3635, allocations: 55.41 kB / 1.031 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.58e-05/0.3635, allocations: 85 kB / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3636, allocations: 29.7 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.421e-05/0.3636, allocations: 84.31 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.364e-05/0.3637, allocations: 35.45 kB / 1.031 GB, free: 9.133 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.3637, allocations: 0 / 1.031 GB, free: 9.133 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3638, allocations: 318.8 kB / 1.032 GB, free: 8.812 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.3639, allocations: 31.97 kB / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.364, allocations: 39.91 kB / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.3642, allocations: 27.98 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3642, allocations: 0 / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003042/0.3645, allocations: 113.6 kB / 1.032 GB, free: 8.598 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3645, allocations: 4 kB / 1.032 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3645, allocations: 0 / 1.032 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3645, allocations: 0 / 1.032 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3647, allocations: 31.91 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.3647, allocations: 0 / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.173e-05/0.3648, allocations: 19.84 kB / 1.032 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.3648, allocations: 7.984 kB / 1.032 GB, free: 8.535 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.592e-05/0.3649, allocations: 113.8 kB / 1.032 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.339e-05/0.3649, allocations: 3.953 kB / 1.032 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.365, allocations: 7.969 kB / 1.032 GB, free: 8.402 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.365, allocations: 4 kB / 1.032 GB, free: 8.398 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.365, allocations: 3.984 kB / 1.032 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.365, allocations: 0 / 1.032 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.3652, allocations: 185.5 kB / 1.032 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3652, allocations: 4 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3653, allocations: 27.92 kB / 1.032 GB, free: 8.133 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.3653, allocations: 3.953 kB / 1.032 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.3653, allocations: 3.984 kB / 1.032 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3654, allocations: 7.938 kB / 1.032 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3654, allocations: 0 / 1.032 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.3657, allocations: 145 kB / 1.032 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.791e-05/0.3657, allocations: 81.11 kB / 1.032 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.3658, allocations: 7.953 kB / 1.032 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.061e-05/0.3658, allocations: 0 / 1.032 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.945e-05/0.3659, allocations: 19.97 kB / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.3659, allocations: 0 / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.688e-05/0.3659, allocations: 75.28 kB / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8e-08/0.3659, allocations: 0 / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002122/0.3661, allocations: 24 kB / 1.033 GB, free: 7.734 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002034/0.3664, allocations: 135.1 kB / 1.033 GB, free: 7.594 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000289/0.3667, allocations: 84.81 kB / 1.033 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3667, allocations: 0 / 1.033 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.3668, allocations: 51.89 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.51e-05/0.3669, allocations: 2.625 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.3673, allocations: 171.3 kB / 1.033 GB, free: 7.266 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.3675, allocations: 0.6878 MB / 1.034 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001221/0.3676, allocations: 43.81 kB / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.712e-05/0.3677, allocations: 19.42 kB / 1.034 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/0.3677, allocations: 0 / 1.034 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of Templates: time 0.002853/0.3705, allocations: 0.9075 MB / 1.035 GB, free: 5.586 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches