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.617/2.617, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.001036/0.001036, allocations: 168.9 kB / 492.3 MB, free: 0.6289 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.602/1.602, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009146/0.0009144, allocations: 96.88 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/3.03e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3309, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.009/1.34, allocations: 149.8 MB / 1.359 GB, free: 19.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/1.34, allocations: 82.02 kB / 1.359 GB, free: 19.19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004517/1.345, allocations: 1.341 MB / 1.36 GB, free: 34.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.132e-06/1.345, allocations: 0 / 1.36 GB, free: 34.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.883e-06/1.345, allocations: 3.844 kB / 1.36 GB, free: 34.82 MB / 0.8386 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.0003192/1.345, allocations: 346.3 kB / 1.36 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/1.345, allocations: 11.5 kB / 1.36 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/1.345, allocations: 4.531 kB / 1.36 GB, free: 34.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.792e-05/1.345, allocations: 177.9 kB / 1.361 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/1.345, allocations: 3.25 kB / 1.361 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/1.345, allocations: 3.875 kB / 1.361 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/1.345, allocations: 46.39 kB / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/1.345, allocations: 0 / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/1.345, allocations: 0 / 1.361 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/1.345, allocations: 4 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.514e-05/1.346, allocations: 27.58 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003615/1.346, allocations: 274.5 kB / 1.361 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/1.346, allocations: 49.08 kB / 1.361 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.806e-05/1.346, allocations: 15.98 kB / 1.361 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/1.346, allocations: 406.4 kB / 1.361 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/1.346, allocations: 34.38 kB / 1.361 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/1.346, allocations: 0 / 1.361 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000154/1.347, allocations: 54.06 kB / 1.361 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/1.347, allocations: 55.36 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/1.347, allocations: 102.8 kB / 1.362 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.867e-06/1.347, allocations: 25.7 kB / 1.362 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.17e-05/1.347, allocations: 98.52 kB / 1.362 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.326e-05/1.347, allocations: 3.938 kB / 1.362 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/1.347, allocations: 0 / 1.362 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 5.864e-05/1.347, allocations: 317.6 kB / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.266e-05/1.347, allocations: 9.547 kB / 1.362 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.754e-05/1.347, allocations: 11.78 kB / 1.362 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.37e-05/1.347, allocations: 3.844 kB / 1.362 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/1.347, allocations: 0 / 1.362 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.681e-05/1.347, allocations: 60.64 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/1.347, allocations: 11.69 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/1.347, allocations: 0 / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/1.347, allocations: 0 / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.758e-05/1.347, allocations: 10.62 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/1.347, allocations: 3.719 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/1.347, allocations: 10.66 kB / 1.362 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/1.347, allocations: 3.875 kB / 1.362 GB, free: 32.73 MB / 0.8386 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 () * 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 5.014e-05/1.347, allocations: 110.8 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/1.347, allocations: 6.328 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/1.347, allocations: 65.67 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/1.347, allocations: 0 / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/1.347, allocations: 3.875 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/1.347, allocations: 0 / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/1.348, allocations: 173.1 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/1.348, allocations: 0 / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.939e-05/1.348, allocations: 15.75 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/1.348, allocations: 0 / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/1.348, allocations: 5.281 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.348, allocations: 4 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/1.348, allocations: 0 / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.671e-05/1.348, allocations: 154.4 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.798e-05/1.348, allocations: 78.7 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/1.348, allocations: 0 / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/1.348, allocations: 14.75 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/1.348, allocations: 13.5 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/1.348, allocations: 0 / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.415e-05/1.348, allocations: 84.38 kB / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.348, allocations: 0 / 1.363 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002179/1.348, allocations: 28.2 kB / 1.363 GB, free: 32.04 MB / 0.8386 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 () * 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.000159/1.348, allocations: 118.3 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.418e-05/1.349, allocations: 22.48 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.349, allocations: 3.969 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/1.349, allocations: 17.14 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/1.349, allocations: 12.73 kB / 1.363 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002021/1.349, allocations: 68.95 kB / 1.363 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/1.349, allocations: 0.6826 MB / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.178e-05/1.349, allocations: 9.766 kB / 1.364 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/1.349, allocations: 11.28 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of SimCode: time 6.41e-07/1.349, allocations: 0 / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of Templates: time 0.002504/1.352, allocations: 0.835 MB / 1.365 GB, free: 31.08 MB / 0.8386 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