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.001243/0.001243, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001373/0.001373, allocations: 198.4 kB / 16.14 MB, free: 6.711 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.408/1.408, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.81/2.81, allocations: 472.6 MB / 0.7447 GB, free: 4.965 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 65.95 kB / 0.9114 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3501, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001735/0.3519, allocations: 0.6425 MB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000406/0.3523, allocations: 113.8 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.335e-05/0.3523, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.042e-05/0.3523, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.099e-06/0.3524, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.3527, allocations: 35.89 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.3528, allocations: 59.94 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.3528, allocations: 4 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.622e-05/0.3529, allocations: 23.97 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.843e-05/0.3529, allocations: 23.97 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.3529, allocations: 0 / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.3531, allocations: 43.95 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.3531, allocations: 31.91 kB / 1.069 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.419e-05/0.3532, allocations: 23.91 kB / 1.069 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.3533, allocations: 71.83 kB / 1.069 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3534, allocations: 0 / 1.069 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3534, allocations: 0 / 1.069 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3534, allocations: 0 / 1.069 GB, free: 9.84 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.0005814/0.354, allocations: 367.6 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.354, allocations: 8.031 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.724e-05/0.3541, allocations: 12.84 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.3542, allocations: 172.6 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/0.3545, allocations: 281.5 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.3545, allocations: 8.375 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.3548, allocations: 90.06 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3548, allocations: 3.938 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.3549, allocations: 0 / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.3549, allocations: 4 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003804/0.3553, allocations: 131.8 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002086/0.3555, allocations: 173.7 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.3558, allocations: 102.4 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.356, allocations: 44.83 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.356, allocations: 7.984 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.356, allocations: 30.56 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.356, allocations: 336 / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005846/0.3566, allocations: 153.4 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.3567, allocations: 55.41 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.191e-05/0.3567, allocations: 89.86 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3568, allocations: 29.7 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.3568, allocations: 84.14 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.3569, allocations: 31.55 kB / 1.07 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.3569, allocations: 29.7 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3571, allocations: 310.8 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3572, allocations: 39.91 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.3574, allocations: 39.91 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.3577, allocations: 72.81 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3577, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003347/0.358, allocations: 114.2 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.358, allocations: 7.938 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3581, allocations: 0 / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3581, allocations: 0 / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3583, allocations: 31.91 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3583, allocations: 3.938 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.3583, allocations: 11.94 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.3584, allocations: 4 kB / 1.071 GB, free: 7.059 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 7.564e-05/0.3584, allocations: 117.8 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.3585, allocations: 7.844 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.3585, allocations: 11.97 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3585, allocations: 4 kB / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3585, allocations: 0 / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3585, allocations: 0 / 1.071 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.3587, allocations: 173.7 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3587, allocations: 7.984 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.3588, allocations: 27.91 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.3588, allocations: 3.938 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3588, allocations: 4 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3588, allocations: 3.984 kB / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3588, allocations: 0 / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003429/0.3592, allocations: 141.1 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.3592, allocations: 89.02 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3593, allocations: 11.88 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.012e-05/0.3593, allocations: 11.98 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.3594, allocations: 7.984 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.3594, allocations: 7.984 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.276e-05/0.3594, allocations: 75.28 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3594, allocations: 0 / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002178/0.3596, allocations: 20 kB / 1.072 GB, free: 6.246 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.0001842/0.3598, allocations: 131.1 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003373/0.3602, allocations: 79.94 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3602, allocations: 3.938 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.3604, allocations: 51.91 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.3605, allocations: 6.797 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.3609, allocations: 177 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.3612, allocations: 0.6809 MB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001913/0.3614, allocations: 47.59 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/0.3615, allocations: 19.42 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3615, allocations: 0 / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of Templates: time 0.003142/0.3646, allocations: 0.9726 MB / 1.074 GB, free: 4.027 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