Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001012/0.001012, allocations: 173.1 kB / 498.1 MB, free: 5.699 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.592/1.592, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.000875/0.0008752, allocations: 100.3 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003901, allocations: 10.81 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3463, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.5478, allocations: 149.9 MB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.5481, allocations: 67.97 kB / 1.369 GB, free: 12.05 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004383/0.5525, allocations: 1.35 MB / 1.371 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.645e-06/0.5525, allocations: 0 / 1.371 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.5526, allocations: 0 / 1.371 GB, free: 10.7 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004749/0.553, allocations: 363.2 kB / 1.371 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.5531, allocations: 8.031 kB / 1.371 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.5532, allocations: 4 kB / 1.371 GB, free: 10.28 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.5533, allocations: 178.8 kB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.5533, allocations: 4 kB / 1.371 GB, free: 10.06 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.5534, allocations: 0 / 1.371 GB, free: 10.06 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.5536, allocations: 73.66 kB / 1.371 GB, free: 9.984 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.5536, allocations: 3.984 kB / 1.371 GB, free: 9.98 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.5536, allocations: 0 / 1.371 GB, free: 9.98 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5537, allocations: 0 / 1.371 GB, free: 9.98 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.5539, allocations: 55.95 kB / 1.371 GB, free: 9.926 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.5543, allocations: 276.8 kB / 1.372 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.5547, allocations: 62.53 kB / 1.372 GB, free: 9.535 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003734/0.5551, allocations: 413.7 kB / 1.372 GB, free: 9.039 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.5551, allocations: 34.5 kB / 1.372 GB, free: 8.996 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 3.556e-06/0.5551, allocations: 0 / 1.372 GB, free: 8.996 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0004301/0.5555, allocations: 121.5 kB / 1.372 GB, free: 8.871 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.5556, allocations: 55.36 kB / 1.372 GB, free: 8.805 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.964e-05/0.5557, allocations: 101 kB / 1.372 GB, free: 8.699 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.5557, allocations: 25.7 kB / 1.372 GB, free: 8.668 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.734e-05/0.5558, allocations: 88.14 kB / 1.372 GB, free: 8.578 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.5558, allocations: 11.91 kB / 1.372 GB, free: 8.566 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.5558, allocations: 0 / 1.372 GB, free: 8.566 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.5559, allocations: 322.8 kB / 1.373 GB, free: 8.242 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.642e-05/0.556, allocations: 19.98 kB / 1.373 GB, free: 8.223 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.268e-05/0.5561, allocations: 23.98 kB / 1.373 GB, free: 8.199 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.378e-05/0.5562, allocations: 31.97 kB / 1.373 GB, free: 8.168 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.5562, allocations: 0 / 1.373 GB, free: 8.168 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000221/0.5565, allocations: 85.59 kB / 1.373 GB, free: 8.078 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5565, allocations: 8 kB / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.5565, allocations: 0 / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.5565, allocations: 4 kB / 1.373 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.5566, allocations: 11.98 kB / 1.373 GB, free: 8.055 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.5566, allocations: 4 kB / 1.373 GB, free: 8.051 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.016e-05/0.5567, allocations: 15.84 kB / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.5567, allocations: 0 / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,bin.k) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.232e-05/0.5568, allocations: 111.6 kB / 1.373 GB, free: 7.918 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.5568, allocations: 12 kB / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/0.5571, allocations: 93.48 kB / 1.373 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.5571, allocations: 0 / 1.373 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5572, allocations: 0 / 1.373 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.5572, allocations: 0 / 1.373 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.5573, allocations: 177.6 kB / 1.373 GB, free: 7.574 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.5574, allocations: 0 / 1.373 GB, free: 7.574 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.841e-05/0.5574, allocations: 11.98 kB / 1.373 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.5575, allocations: 4 kB / 1.373 GB, free: 7.559 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.5575, allocations: 4 kB / 1.373 GB, free: 7.555 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5575, allocations: 3.938 kB / 1.373 GB, free: 7.551 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5575, allocations: 384 / 1.373 GB, free: 7.551 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.5578, allocations: 191.3 kB / 1.374 GB, free: 7.348 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.653e-05/0.5578, allocations: 85.09 kB / 1.374 GB, free: 7.246 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.5579, allocations: 0 / 1.374 GB, free: 7.246 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.853e-05/0.558, allocations: 8 kB / 1.374 GB, free: 7.238 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.577e-05/0.558, allocations: 11.98 kB / 1.374 GB, free: 7.227 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.558, allocations: 0 / 1.374 GB, free: 7.227 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.048e-05/0.5581, allocations: 91.27 kB / 1.374 GB, free: 7.137 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5581, allocations: 3.938 kB / 1.374 GB, free: 7.133 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002467/0.5583, allocations: 20 kB / 1.374 GB, free: 7.113 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (bin.y,bin.k) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0002164/0.5586, allocations: 127 kB / 1.374 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.5588, allocations: 55.95 kB / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5588, allocations: 0 / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.5589, allocations: 35.91 kB / 1.374 GB, free: 6.891 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.5592, allocations: 9.359 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003373/0.5595, allocations: 132.6 kB / 1.374 GB, free: 6.727 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.5598, allocations: 0.6848 MB / 1.375 GB, free: 6.016 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.342e-05/0.5598, allocations: 0 / 1.375 GB, free: 6.016 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.5599, allocations: 11.44 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Performance of SimCode: time 2.1e-07/0.5599, allocations: 4 kB / 1.375 GB, free: 6 MB / 0.8698 GB Notification: Performance of Templates: time 0.003423/0.5633, allocations: 0.8156 MB / 1.376 GB, free: 5.188 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Binomial.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches