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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009964/0.0009963, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 196.5 kB / 16.63 MB, free: 6.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 282.8 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9316/0.9316, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 95.84 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1561, allocations: 86.98 MB / 0.7663 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.00236/0.1585, allocations: 1.529 MB / 0.7678 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004282/0.1589, allocations: 184.3 kB / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.259e-05/0.159, allocations: 0 / 0.768 GB, free: 6.727 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.542e-05/0.159, allocations: 3.938 kB / 0.768 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.567e-05/0.1591, allocations: 7.922 kB / 0.768 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.1594, allocations: 47.83 kB / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.502e-05/0.1594, allocations: 35.91 kB / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.491e-05/0.1595, allocations: 19.98 kB / 0.7681 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.041e-05/0.1596, allocations: 15.94 kB / 0.7681 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.995e-05/0.1596, allocations: 15.92 kB / 0.7681 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.1596, allocations: 4 kB / 0.7681 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.1598, allocations: 55.94 kB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.1598, allocations: 7.984 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.1598, allocations: 15.88 kB / 0.7682 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.16, allocations: 67.78 kB / 0.7683 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.57e-05/0.16, allocations: 4 kB / 0.7683 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.653e-06/0.16, allocations: 4 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.16, allocations: 0 / 0.7683 GB, free: 6.426 MB / 0.5606 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.0004419/0.1605, allocations: 347.4 kB / 0.7686 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1605, allocations: 8.031 kB / 0.7686 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.1605, allocations: 8.828 kB / 0.7686 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.1607, allocations: 168.3 kB / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1607, allocations: 4.375 kB / 0.7688 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.1607, allocations: 4.375 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.1609, allocations: 74.14 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1609, allocations: 192 / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1609, allocations: 3.938 kB / 0.7689 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1609, allocations: 4 kB / 0.7689 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.1611, allocations: 47.89 kB / 0.7689 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003583/0.1615, allocations: 272.8 kB / 0.7692 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003068/0.1618, allocations: 62.53 kB / 0.7693 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.872e-05/0.1619, allocations: 24.91 kB / 0.7693 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002082/0.1622, allocations: 166.2 kB / 0.7694 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1622, allocations: 38.48 kB / 0.7695 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 2.766e-06/0.1622, allocations: 4 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003763/0.1626, allocations: 89.64 kB / 0.7696 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.1626, allocations: 55.41 kB / 0.7696 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.1627, allocations: 105.8 kB / 0.7697 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.1627, allocations: 25.7 kB / 0.7697 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.328e-05/0.1628, allocations: 96.03 kB / 0.7698 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.28e-05/0.1628, allocations: 3.906 kB / 0.7698 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/0.1628, allocations: 21.72 kB / 0.7699 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1629, allocations: 314.8 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.492e-05/0.163, allocations: 23.97 kB / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.149e-05/0.1631, allocations: 15.98 kB / 0.7702 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.1633, allocations: 48.75 kB / 0.7702 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1633, allocations: 4 kB / 0.7702 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002098/0.1635, allocations: 77.92 kB / 0.7703 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.1636, allocations: 4 kB / 0.7703 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1636, allocations: 3.984 kB / 0.7703 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1636, allocations: 0 / 0.7703 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.802e-05/0.1637, allocations: 8 kB / 0.7703 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.1637, allocations: 4.297 kB / 0.7703 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.514e-05/0.1637, allocations: 4 kB / 0.7703 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1638, allocations: 8 kB / 0.7703 GB, free: 4.055 MB / 0.5606 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,rea2Int.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.517e-05/0.1638, allocations: 122.4 kB / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.1639, allocations: 11.91 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.1641, allocations: 89.52 kB / 0.7706 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1642, allocations: 7.938 kB / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1642, allocations: 0 / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1642, allocations: 0 / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.1643, allocations: 173.6 kB / 0.7707 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1643, allocations: 0 / 0.7707 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.778e-05/0.1644, allocations: 11.98 kB / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1644, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1644, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1645, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1645, allocations: 0 / 0.7707 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.1647, allocations: 183.4 kB / 0.7709 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.829e-05/0.1648, allocations: 85.02 kB / 0.771 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1648, allocations: 0 / 0.771 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.1649, allocations: 7.984 kB / 0.771 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1649, allocations: 4 kB / 0.771 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.165, allocations: 4 kB / 0.771 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.124e-05/0.165, allocations: 91.25 kB / 0.7711 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.165, allocations: 0 / 0.7711 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002439/0.1653, allocations: 20 kB / 0.7711 GB, free: 3.156 MB / 0.5606 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 (rea2Int.y,bin.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001655/0.1654, allocations: 115.2 kB / 0.7712 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002376/0.1657, allocations: 47.89 kB / 0.7713 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1657, allocations: 0 / 0.7713 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.1658, allocations: 27.97 kB / 0.7713 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.1661, allocations: 3.938 kB / 0.7713 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002823/0.1663, allocations: 125.6 kB / 0.7714 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1666, allocations: 0.6768 MB / 0.7721 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.976e-05/0.1666, allocations: 4 kB / 0.7721 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.1667, allocations: 15.42 kB / 0.7721 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of SimCode: time 1.603e-06/0.1667, allocations: 3.938 kB / 0.7721 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of Templates: time 0.003399/0.1701, allocations: 0.9848 MB / 0.7731 GB, free: 1.105 MB / 0.5606 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)