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.001011/0.001011, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 196.2 kB / 16.14 MB, free: 6.707 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.308/1.308, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002038/0.002038, allocations: 282.9 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9484/0.9484, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 97.23 kB / 0.5945 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1651, allocations: 86.99 MB / 0.6794 GB, free: 1.191 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002792/0.168, allocations: 1.587 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004596/0.1685, allocations: 175.4 kB / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.526e-05/0.1685, allocations: 4 kB / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.1685, allocations: 3.938 kB / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.839e-05/0.1686, allocations: 0 / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.1688, allocations: 43.89 kB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.552e-05/0.1689, allocations: 31.92 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.77e-05/0.169, allocations: 17.98 kB / 0.6813 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.386e-05/0.169, allocations: 8 kB / 0.6813 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.027e-05/0.1691, allocations: 28.55 kB / 0.6813 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.1691, allocations: 4 kB / 0.6813 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1692, allocations: 44.78 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.649e-05/0.1693, allocations: 7.938 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.1693, allocations: 19.91 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001366/0.1694, allocations: 60.75 kB / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1694, allocations: 1.344 kB / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.1694, allocations: 0 / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1695, allocations: 0 / 0.6814 GB, free: 15.17 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.0005311/0.17, allocations: 360.1 kB / 0.6818 GB, free: 14.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.1701, allocations: 12.03 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.1701, allocations: 4.938 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.1703, allocations: 168.3 kB / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.1703, allocations: 4.375 kB / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.1703, allocations: 384 / 0.6819 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.1705, allocations: 62.23 kB / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1705, allocations: 192 / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.1705, allocations: 7.938 kB / 0.682 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.1706, allocations: 0 / 0.682 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.1708, allocations: 47.89 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003875/0.1712, allocations: 280.8 kB / 0.6823 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.1715, allocations: 58.59 kB / 0.6824 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.743e-05/0.1716, allocations: 28.78 kB / 0.6824 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002214/0.1718, allocations: 170.2 kB / 0.6826 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.964e-05/0.1718, allocations: 30.56 kB / 0.6826 GB, free: 13.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1719, allocations: 0 / 0.6826 GB, free: 13.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003908/0.1723, allocations: 97.53 kB / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.1723, allocations: 55.41 kB / 0.6827 GB, free: 13.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.1724, allocations: 113.9 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.1724, allocations: 25.7 kB / 0.6829 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.1725, allocations: 88.14 kB / 0.683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1725, allocations: 7.891 kB / 0.683 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.1725, allocations: 13.72 kB / 0.683 GB, free: 13.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1727, allocations: 318.8 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-05/0.1728, allocations: 31.91 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.832e-05/0.1728, allocations: 15.98 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.173, allocations: 45.09 kB / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.173, allocations: 0 / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002083/0.1733, allocations: 77.64 kB / 0.6834 GB, free: 12.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1733, allocations: 11.94 kB / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1733, allocations: 4 kB / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1733, allocations: 0 / 0.6835 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.776e-05/0.1734, allocations: 15.92 kB / 0.6835 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1734, allocations: 3.938 kB / 0.6835 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.69e-05/0.1735, allocations: 11.89 kB / 0.6835 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.1735, allocations: 0 / 0.6835 GB, free: 12.78 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 9.249e-05/0.1736, allocations: 119.1 kB / 0.6836 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.1736, allocations: 0 / 0.6836 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002468/0.1739, allocations: 85.55 kB / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1739, allocations: 0 / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1739, allocations: 0 / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1739, allocations: 3.984 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.1741, allocations: 173.5 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1741, allocations: 0 / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.1742, allocations: 11.98 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1742, allocations: 4 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1742, allocations: 4 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1742, allocations: 3.938 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1742, allocations: 4 kB / 0.6839 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.1745, allocations: 171.4 kB / 0.684 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.1745, allocations: 85.09 kB / 0.6841 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1745, allocations: 0 / 0.6841 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.1746, allocations: 8 kB / 0.6841 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/0.1747, allocations: 7.984 kB / 0.6841 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.1747, allocations: 0 / 0.6841 GB, free: 12.01 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.627e-05/0.1747, allocations: 95.56 kB / 0.6842 GB, free: 11.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1747, allocations: 0 / 0.6842 GB, free: 11.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.175, allocations: 16 kB / 0.6843 GB, free: 11.9 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.0001983/0.1752, allocations: 120.9 kB / 0.6844 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002232/0.1754, allocations: 47.89 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1754, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.533e-05/0.1755, allocations: 27.97 kB / 0.6844 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.1758, allocations: 11.94 kB / 0.6845 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.1761, allocations: 119.3 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.1764, allocations: 0.6848 MB / 0.6852 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.371e-05/0.1765, allocations: 4 kB / 0.6852 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.614e-05/0.1765, allocations: 11.42 kB / 0.6852 GB, free: 10.82 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1765, allocations: 0 / 0.6852 GB, free: 10.82 MB / 494.1 MB Notification: Performance of Templates: time 0.003119/0.1796, allocations: 0.8906 MB / 0.6861 GB, free: 9.934 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)