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 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.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.001028/0.001028, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008848/0.008848, allocations: 169.8 kB / 16.27 MB, free: 6.332 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.384/1.384, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.75/2.75, allocations: 462.7 MB / 0.7364 GB, free: 320 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 14.45 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3591, allocations: 159.6 MB / 1.059 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.0007944/0.36, allocations: 322.9 kB / 1.059 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004309/0.3604, allocations: 115.5 kB / 1.059 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.458e-05/0.3605, allocations: 0 / 1.059 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.887e-05/0.3605, allocations: 4 kB / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.461e-06/0.3605, allocations: 0 / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.3608, allocations: 23.97 kB / 1.059 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.361, allocations: 71.84 kB / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.178e-05/0.361, allocations: 0 / 1.059 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.418e-05/0.3611, allocations: 23.98 kB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.074e-05/0.3611, allocations: 19.97 kB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.3611, allocations: 4 kB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.3613, allocations: 51.95 kB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.894e-05/0.3613, allocations: 23.91 kB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.948e-05/0.3614, allocations: 53.61 kB / 1.059 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.3615, allocations: 63.84 kB / 1.059 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.3615, allocations: 0 / 1.059 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3615, allocations: 0 / 1.059 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.3616, allocations: 0 / 1.059 GB, free: 4.762 MB / 0.8106 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.0005258/0.3621, allocations: 355.5 kB / 1.06 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.3621, allocations: 12.03 kB / 1.06 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.3622, allocations: 4.938 kB / 1.06 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3623, allocations: 168.6 kB / 1.06 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003044/0.3626, allocations: 281.6 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.3627, allocations: 4.375 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.3629, allocations: 94 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3629, allocations: 3.938 kB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.363, allocations: 4 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.363, allocations: 0 / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.3633, allocations: 131.8 kB / 1.06 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.3635, allocations: 173.6 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.3638, allocations: 102.5 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.364, allocations: 40.83 kB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.364, allocations: 7.984 kB / 1.061 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.364, allocations: 38.5 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/0.3641, allocations: 0 / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0005364/0.3646, allocations: 145.8 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.3646, allocations: 55.41 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.055e-05/0.3647, allocations: 89.86 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3647, allocations: 33.7 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.719e-05/0.3647, allocations: 80.14 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.3648, allocations: 39.39 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.3649, allocations: 17.72 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.365, allocations: 310.8 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.3651, allocations: 35.97 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.3653, allocations: 35.91 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.3655, allocations: 76.75 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3655, allocations: 4 kB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003231/0.3659, allocations: 110.3 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3659, allocations: 9.812 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3659, allocations: 0 / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.3659, allocations: 0 / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.3661, allocations: 31.91 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.3661, allocations: 0 / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.158e-05/0.3662, allocations: 11.84 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.3662, allocations: 4 kB / 1.062 GB, free: 2.016 MB / 0.8106 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 9.08e-05/0.3663, allocations: 121.8 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.3663, allocations: 3.938 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.3664, allocations: 11.97 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.3664, allocations: 4 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.3664, allocations: 0 / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.3664, allocations: 0 / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.3665, allocations: 189.5 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3665, allocations: 4 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.3667, allocations: 19.98 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3667, allocations: 7.938 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.3667, allocations: 11.98 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3667, allocations: 0 / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3667, allocations: 7.922 kB / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.3671, allocations: 133.1 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.3671, allocations: 85.02 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.3671, allocations: 11.92 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.3672, allocations: 4 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.3673, allocations: 11.98 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.3673, allocations: 7.984 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.386e-05/0.3673, allocations: 79.28 kB / 1.062 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3673, allocations: 3.938 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002182/0.3675, allocations: 20 kB / 1.063 GB, free: 1.195 MB / 0.8106 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.0002048/0.3678, allocations: 123.1 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003186/0.3681, allocations: 79.94 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3681, allocations: 4 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.3683, allocations: 51.91 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.3684, allocations: 7.938 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/0.3688, allocations: 174.6 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.3691, allocations: 0.6809 MB / 1.064 GB, free: 20 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001646/0.3693, allocations: 43.89 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.3693, allocations: 15.42 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3694, allocations: 4 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of Templates: time 0.003119/0.3725, allocations: 0.9634 MB / 1.065 GB, free: 15 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