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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 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.001748/0.001748, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 283 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9248/0.9248, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 109.8 kB / 0.5952 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1604, allocations: 86.97 MB / 0.6802 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002922/0.1633, allocations: 1.526 MB / 0.6817 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004652/0.1638, allocations: 176.3 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.46e-05/0.1639, allocations: 0 / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.831e-05/0.1639, allocations: 3.938 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.596e-05/0.164, allocations: 3.938 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.1643, allocations: 51.83 kB / 0.6819 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.716e-05/0.1644, allocations: 35.91 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.752e-05/0.1645, allocations: 19.98 kB / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.1645, allocations: 15.94 kB / 0.682 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.1645, allocations: 15.92 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.1646, allocations: 4 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1647, allocations: 51.94 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.411e-05/0.1647, allocations: 4 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.1648, allocations: 23.86 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1649, allocations: 52.14 kB / 0.6821 GB, free: 14.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1649, allocations: 7.984 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1649, allocations: 4 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1649, allocations: 0 / 0.6821 GB, free: 14.71 MB / 494.1 MB 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.0004827/0.1654, allocations: 355.4 kB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.1654, allocations: 8.031 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/0.1655, allocations: 4.938 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.1656, allocations: 172.2 kB / 0.6826 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1656, allocations: 384 / 0.6826 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.1657, allocations: 4.375 kB / 0.6826 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.1659, allocations: 70.16 kB / 0.6827 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1659, allocations: 192 / 0.6827 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.1659, allocations: 7.938 kB / 0.6827 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1659, allocations: 4 kB / 0.6827 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.1661, allocations: 43.95 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.1665, allocations: 284.7 kB / 0.683 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.1668, allocations: 62.53 kB / 0.6831 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.307e-05/0.1669, allocations: 24.91 kB / 0.6831 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002146/0.1671, allocations: 170.2 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.1672, allocations: 34.56 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1672, allocations: 0 / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003807/0.1675, allocations: 101.6 kB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.1676, allocations: 55.41 kB / 0.6835 GB, free: 13.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.111e-05/0.1677, allocations: 109.8 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.1677, allocations: 25.7 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.619e-05/0.1677, allocations: 84.14 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.1677, allocations: 11.91 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.1678, allocations: 17.7 kB / 0.6837 GB, free: 12.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.747e-05/0.1679, allocations: 318.8 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.269e-05/0.168, allocations: 23.97 kB / 0.684 GB, free: 12.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.014e-05/0.1681, allocations: 15.98 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.1682, allocations: 52.75 kB / 0.6841 GB, free: 12.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1683, allocations: 0 / 0.6841 GB, free: 12.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002069/0.1685, allocations: 77.59 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1685, allocations: 6.188 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-06/0.1685, allocations: 0 / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.1685, allocations: 0 / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.363e-05/0.1686, allocations: 11.98 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.1686, allocations: 4.312 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.897e-05/0.1687, allocations: 15.89 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-06/0.1687, allocations: 0 / 0.6842 GB, free: 12.31 MB / 494.1 MB 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.428e-05/0.1688, allocations: 115.1 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.1688, allocations: 4 kB / 0.6843 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.169, allocations: 85.47 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1691, allocations: 7.938 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1691, allocations: 0 / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1691, allocations: 4 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.1692, allocations: 181.6 kB / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1693, allocations: 0 / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.113e-05/0.1693, allocations: 8 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1693, allocations: 3.984 kB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1693, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1694, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1694, allocations: 0 / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.1696, allocations: 179.3 kB / 0.6848 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.1697, allocations: 85.09 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.1697, allocations: 4 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.1698, allocations: 4 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.1698, allocations: 3.984 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.1699, allocations: 8 kB / 0.6849 GB, free: 11.53 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.79e-05/0.1699, allocations: 87.27 kB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1699, allocations: 0 / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.1701, allocations: 24 kB / 0.685 GB, free: 11.42 MB / 494.1 MB 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.0001644/0.1703, allocations: 115.2 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000229/0.1705, allocations: 44.19 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1706, allocations: 0 / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1707, allocations: 24.02 kB / 0.6851 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.1709, allocations: 20.02 kB / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002704/0.1712, allocations: 125.6 kB / 0.6853 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.1714, allocations: 0.6768 MB / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.791e-05/0.1714, allocations: 4 kB / 0.6859 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.1715, allocations: 15.44 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of SimCode: time 1.342e-06/0.1715, allocations: 3.938 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of Templates: time 0.002943/0.1744, allocations: 0.9768 MB / 0.6869 GB, free: 9.367 MB / 494.1 MB 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)