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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.363/2.363, allocations: 390.3 MB / 402.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 172.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.76/1.76, allocations: 221.3 MB / 0.7915 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.000897, allocations: 91.89 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.776e-05/3.81e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3207, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.325, allocations: 149.6 MB / 1.365 GB, free: 4.438 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003935/1.326, allocations: 75.2 kB / 1.365 GB, free: 4.395 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004014/1.33, allocations: 1.224 MB / 1.366 GB, free: 3.277 MB / 0.823 GB Notification: Performance of FrontEnd: time 5.03e-06/1.33, allocations: 0 / 1.366 GB, free: 3.277 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.793e-06/1.33, allocations: 3.938 kB / 1.366 GB, free: 3.273 MB / 0.823 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.0004783/1.33, allocations: 353.3 kB / 1.366 GB, free: 2.891 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 6.609e-05/1.33, allocations: 8.031 kB / 1.366 GB, free: 2.883 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.364e-05/1.33, allocations: 12.53 kB / 1.367 GB, free: 2.871 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/1.33, allocations: 167 kB / 1.367 GB, free: 2.668 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/1.331, allocations: 279.4 kB / 1.367 GB, free: 2.336 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/1.331, allocations: 9.125 kB / 1.367 GB, free: 2.332 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/1.331, allocations: 71.03 kB / 1.367 GB, free: 2.266 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.331, allocations: 0 / 1.367 GB, free: 2.266 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/1.331, allocations: 3.562 kB / 1.367 GB, free: 2.266 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/1.331, allocations: 0 / 1.367 GB, free: 2.266 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/1.331, allocations: 125.7 kB / 1.367 GB, free: 2.156 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002495/1.331, allocations: 183.5 kB / 1.367 GB, free: 1.938 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/1.332, allocations: 77.98 kB / 1.367 GB, free: 1.867 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/1.332, allocations: 34.84 kB / 1.367 GB, free: 1.836 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/1.332, allocations: 10.86 kB / 1.367 GB, free: 1.828 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/1.332, allocations: 34.56 kB / 1.367 GB, free: 1.785 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/1.332, allocations: 0 / 1.367 GB, free: 1.785 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0002763/1.332, allocations: 96.3 kB / 1.368 GB, free: 1.699 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/1.332, allocations: 55.41 kB / 1.368 GB, free: 1.633 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.027e-05/1.332, allocations: 88.69 kB / 1.368 GB, free: 1.543 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/1.332, allocations: 29.7 kB / 1.368 GB, free: 1.508 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/1.332, allocations: 80.33 kB / 1.368 GB, free: 1.422 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 5.737e-05/1.332, allocations: 34.52 kB / 1.368 GB, free: 1.391 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.243e-06/1.332, allocations: 3.25 kB / 1.368 GB, free: 1.391 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001337/1.333, allocations: 317.5 kB / 1.368 GB, free: 1.074 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.323e-05/1.333, allocations: 26.48 kB / 1.368 GB, free: 1.055 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.143e-05/1.333, allocations: 23.48 kB / 1.368 GB, free: 1.035 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.84e-05/1.333, allocations: 34.05 kB / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.333, allocations: 0 / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001569/1.333, allocations: 96.59 kB / 1.368 GB, free: 0.918 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/1.333, allocations: 15.92 kB / 1.368 GB, free: 0.9023 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/1.333, allocations: 0 / 1.368 GB, free: 0.9023 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/1.333, allocations: 0 / 1.368 GB, free: 0.9023 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/1.333, allocations: 22.42 kB / 1.368 GB, free: 0.8828 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/1.333, allocations: 4 kB / 1.368 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.717e-05/1.333, allocations: 0 / 1.368 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/1.333, allocations: 7.984 kB / 1.368 GB, free: 0.8711 MB / 0.823 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 () * 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.036e-05/1.333, allocations: 120.5 kB / 1.368 GB, free: 0.75 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/1.333, allocations: 0 / 1.368 GB, free: 0.75 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.842e-05/1.333, allocations: 11.03 kB / 1.368 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/1.333, allocations: 7.984 kB / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.333, allocations: 0 / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/1.333, allocations: 0 / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/1.334, allocations: 188.7 kB / 1.369 GB, free: 0.5117 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/1.334, allocations: 4 kB / 1.369 GB, free: 0.5078 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/1.334, allocations: 19.98 kB / 1.369 GB, free: 500 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/1.334, allocations: 4 kB / 1.369 GB, free: 496 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/1.334, allocations: 3.984 kB / 1.369 GB, free: 492 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.334, allocations: 4.688 kB / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.334, allocations: 0 / 1.369 GB, free: 488 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001755/1.334, allocations: 126.8 kB / 1.369 GB, free: 360 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/1.334, allocations: 88.91 kB / 1.369 GB, free: 252 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/1.334, allocations: 7.984 kB / 1.369 GB, free: 244 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.854e-05/1.334, allocations: 3.625 kB / 1.369 GB, free: 244 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.13e-05/1.334, allocations: 19.48 kB / 1.369 GB, free: 228 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/1.334, allocations: 3.984 kB / 1.369 GB, free: 224 kB / 0.823 GB Notification: Performance of sorting global known variables: time 2.88e-05/1.334, allocations: 75.28 kB / 1.369 GB, free: 148 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.4e-07/1.334, allocations: 4 kB / 1.369 GB, free: 144 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001975/1.334, allocations: 27.62 kB / 1.369 GB, free: 120 kB / 0.823 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 () * 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.0002558/1.335, allocations: 117.9 kB / 1.369 GB, free: 16 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001516/1.335, allocations: 70.02 kB / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/1.335, allocations: 4 kB / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.474e-05/1.335, allocations: 43.14 kB / 1.369 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.739e-05/1.335, allocations: 9.344 kB / 1.369 GB, free: 15.89 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003033/1.335, allocations: 106.5 kB / 1.369 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/1.336, allocations: 0.6887 MB / 1.37 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001562/1.336, allocations: 43.73 kB / 1.37 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/1.336, allocations: 19.42 kB / 1.37 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.336, allocations: 0 / 1.37 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of Templates: time 0.003101/1.339, allocations: 0.9201 MB / 1.371 GB, free: 14.1 MB / 0.8386 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches