Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") translateModel(BuildingSystems.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8697/0.8697, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 180.9 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 221.3 MB / 441.4 MB, free: 4.629 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008787/0.0008784, allocations: 95.94 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001866/0.001866, allocations: 278.8 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.324e-05, allocations: 4 kB / 0.6834 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4284/0.4284, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.5588, allocations: 109.2 MB / 0.8709 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.5592, allocations: 71.84 kB / 0.871 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.004256/0.5634, allocations: 1.335 MB / 0.8723 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.607e-06/0.5635, allocations: 4 kB / 0.8723 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.5635, allocations: 3.875 kB / 0.8723 GB, free: 13.9 MB / 0.5417 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.0004818/0.564, allocations: 347.6 kB / 0.8727 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.564, allocations: 12.03 kB / 0.8727 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.5641, allocations: 3.906 kB / 0.8727 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.5642, allocations: 171 kB / 0.8728 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.5643, allocations: 7.938 kB / 0.8728 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.5643, allocations: 6.156 kB / 0.8728 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.5644, allocations: 45.69 kB / 0.8729 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.5645, allocations: 4 kB / 0.8729 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.5645, allocations: 0 / 0.8729 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5645, allocations: 3.938 kB / 0.8729 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.438e-05/0.5646, allocations: 24.77 kB / 0.8729 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004218/0.565, allocations: 284.7 kB / 0.8732 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.5652, allocations: 42.56 kB / 0.8732 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.588e-05/0.5653, allocations: 12.92 kB / 0.8732 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003585/0.5656, allocations: 409.6 kB / 0.8736 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.5657, allocations: 38.5 kB / 0.8737 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.5657, allocations: 3.938 kB / 0.8737 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001764/0.5659, allocations: 53.69 kB / 0.8737 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.5659, allocations: 51.41 kB / 0.8738 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.566, allocations: 97 kB / 0.8739 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.566, allocations: 25.7 kB / 0.8739 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.5661, allocations: 92.12 kB / 0.874 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.5661, allocations: 3.906 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.5661, allocations: 4 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.5663, allocations: 318.8 kB / 0.8743 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.355e-05/0.5663, allocations: 8 kB / 0.8743 GB, free: 11.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.922e-05/0.5663, allocations: 12.03 kB / 0.8743 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.926e-05/0.5663, allocations: 11.98 kB / 0.8743 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5664, allocations: 0 / 0.8743 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001141/0.5665, allocations: 57.53 kB / 0.8744 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.5665, allocations: 4 kB / 0.8744 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5665, allocations: 0 / 0.8744 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.5665, allocations: 3.938 kB / 0.8744 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.043e-05/0.5666, allocations: 19.98 kB / 0.8744 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.5666, allocations: 0 / 0.8744 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.039e-05/0.5667, allocations: 4 kB / 0.8744 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.5667, allocations: 4 kB / 0.8744 GB, free: 11.46 MB / 0.5417 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 7.118e-05/0.5668, allocations: 112.9 kB / 0.8745 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.394e-05/0.5668, allocations: 4 kB / 0.8745 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.567, allocations: 61.66 kB / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.567, allocations: 0 / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.567, allocations: 4 kB / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.567, allocations: 0 / 0.8746 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.5672, allocations: 181.6 kB / 0.8748 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5672, allocations: 0 / 0.8748 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.016e-05/0.5673, allocations: 15.98 kB / 0.8748 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.5673, allocations: 0 / 0.8748 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.5673, allocations: 0 / 0.8748 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5673, allocations: 4 kB / 0.8748 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.5673, allocations: 0 / 0.8748 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.5674, allocations: 155.3 kB / 0.8749 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.5675, allocations: 81.11 kB / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.5675, allocations: 0 / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.5676, allocations: 7.984 kB / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.882e-05/0.5677, allocations: 11.98 kB / 0.875 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.5677, allocations: 4 kB / 0.875 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.339e-05/0.5677, allocations: 85.55 kB / 0.8751 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5677, allocations: 0 / 0.8751 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002242/0.568, allocations: 31.88 kB / 0.8751 GB, free: 10.62 MB / 0.5417 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.000187/0.5682, allocations: 119.2 kB / 0.8753 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.662e-05/0.5683, allocations: 23.98 kB / 0.8753 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5683, allocations: 0 / 0.8753 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.575e-05/0.5683, allocations: 19.94 kB / 0.8753 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001747/0.5685, allocations: 4 kB / 0.8753 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002163/0.5687, allocations: 69.12 kB / 0.8754 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.569, allocations: 0.6887 MB / 0.876 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.376e-05/0.569, allocations: 4.422 kB / 0.876 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.569, allocations: 11.44 kB / 0.8761 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of SimCode: time 2.11e-07/0.569, allocations: 4 kB / 0.8761 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of Templates: time 0.00289/0.5719, allocations: 0.8425 MB / 0.8769 GB, free: 8.789 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)