Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.906/1.906, allocations: 297.8 MB / 313.7 MB, free: 104 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 198.3 kB / 384.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.2 MB / 0.6626 GB, free: 4.332 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007549/0.0007548, allocations: 94.2 kB / 0.7808 GB, free: 43.75 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003857, allocations: 12.84 kB / 0.9088 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7962/0.7966, allocations: 120.3 MB / 1.026 GB, free: 57.34 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.9826, allocations: 141.9 MB / 1.165 GB, free: 312 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.9828, allocations: 76.7 kB / 1.165 GB, free: 236 kB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.004093/0.9869, allocations: 1.344 MB / 1.166 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.402e-06/0.9869, allocations: 0 / 1.166 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.987, allocations: 0 / 1.166 GB, free: 14.91 MB / 0.7448 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.0004181/0.9874, allocations: 365.7 kB / 1.167 GB, free: 14.5 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.9874, allocations: 8.031 kB / 1.167 GB, free: 14.5 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.9875, allocations: 10.09 kB / 1.167 GB, free: 14.49 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.9876, allocations: 160.4 kB / 1.167 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.9876, allocations: 384 / 1.167 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.9877, allocations: 6.766 kB / 1.167 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.9879, allocations: 68.09 kB / 1.167 GB, free: 14.22 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.9879, allocations: 4.188 kB / 1.167 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.9879, allocations: 3.938 kB / 1.167 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.9879, allocations: 1.781 kB / 1.167 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.9881, allocations: 57.05 kB / 1.167 GB, free: 14.16 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004709/0.9886, allocations: 291 kB / 1.167 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.9889, allocations: 62.55 kB / 1.167 GB, free: 13.75 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.771e-05/0.989, allocations: 32.89 kB / 1.167 GB, free: 13.72 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003567/0.9894, allocations: 413.5 kB / 1.168 GB, free: 13.22 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.9894, allocations: 34.56 kB / 1.168 GB, free: 13.18 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.483e-06/0.9894, allocations: 0 / 1.168 GB, free: 13.18 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003992/0.9898, allocations: 114.9 kB / 1.168 GB, free: 13.06 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.9899, allocations: 55.41 kB / 1.168 GB, free: 13 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.995e-05/0.99, allocations: 109.8 kB / 1.168 GB, free: 12.88 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.99, allocations: 25.7 kB / 1.168 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.715e-05/0.99, allocations: 88.14 kB / 1.168 GB, free: 12.76 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.9901, allocations: 7.844 kB / 1.168 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.9901, allocations: 0 / 1.168 GB, free: 12.75 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.9902, allocations: 326.8 kB / 1.168 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.409e-05/0.9903, allocations: 23.92 kB / 1.168 GB, free: 12.4 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.799e-05/0.9904, allocations: 27.97 kB / 1.168 GB, free: 12.37 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.9905, allocations: 56.83 kB / 1.168 GB, free: 12.31 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.9905, allocations: 0 / 1.168 GB, free: 12.31 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002122/0.9908, allocations: 89.64 kB / 1.169 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.9908, allocations: 5.406 kB / 1.169 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.9908, allocations: 0.9375 kB / 1.169 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.9908, allocations: 4 kB / 1.169 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/0.9909, allocations: 15.98 kB / 1.169 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.9909, allocations: 0 / 1.169 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.914e-05/0.991, allocations: 7.938 kB / 1.169 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.991, allocations: 11.92 kB / 1.169 GB, free: 12.18 MB / 0.7448 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 7.808e-05/0.9911, allocations: 113.8 kB / 1.169 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.9911, allocations: 11.91 kB / 1.169 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.9914, allocations: 89.55 kB / 1.169 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.9914, allocations: 0.5625 kB / 1.169 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.9914, allocations: 0 / 1.169 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9914, allocations: 0 / 1.169 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.9916, allocations: 173.6 kB / 1.169 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.9916, allocations: 4 kB / 1.169 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.568e-05/0.9917, allocations: 15.98 kB / 1.169 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.9917, allocations: 0 / 1.169 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.9917, allocations: 0 / 1.169 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.9917, allocations: 0 / 1.169 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.9917, allocations: 3.938 kB / 1.169 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.992, allocations: 189.4 kB / 1.169 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.992, allocations: 81.02 kB / 1.169 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.9921, allocations: 0 / 1.169 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.533e-05/0.9922, allocations: 19.92 kB / 1.169 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.9922, allocations: 7.984 kB / 1.169 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.9922, allocations: 4 kB / 1.169 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.9923, allocations: 87.58 kB / 1.169 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1e-07/0.9923, allocations: 0 / 1.169 GB, free: 11.29 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002683/0.9926, allocations: 27.92 kB / 1.169 GB, free: 11.27 MB / 0.7448 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.0001971/0.9928, allocations: 115.8 kB / 1.17 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002269/0.993, allocations: 63.88 kB / 1.17 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.993, allocations: 0 / 1.17 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.264e-05/0.9931, allocations: 27.98 kB / 1.17 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.9934, allocations: 12.92 kB / 1.17 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.9937, allocations: 125.1 kB / 1.17 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.994, allocations: 0.6848 MB / 1.17 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.431e-05/0.994, allocations: 0 / 1.17 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.827e-05/0.9941, allocations: 11.44 kB / 1.17 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/0.9941, allocations: 0 / 1.17 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of Templates: time 0.003124/0.9972, allocations: 0.8594 MB / 1.171 GB, free: 9.316 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1)