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.00691/0.00691, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001684/0.001684, allocations: 193 kB / 16.67 MB, free: 5.934 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001996/0.001996, allocations: 283 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9462/0.9462, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 91.86 kB / 0.6815 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1641, allocations: 86.98 MB / 0.7664 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002343/0.1664, allocations: 1.526 MB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004346/0.1669, allocations: 188.2 kB / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.515e-05/0.1669, allocations: 0 / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.167, allocations: 0 / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.135e-05/0.167, allocations: 15.92 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.1673, allocations: 43.89 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.682e-05/0.1674, allocations: 35.91 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.1675, allocations: 15.98 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.028e-05/0.1676, allocations: 15.92 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.49e-05/0.1676, allocations: 19.92 kB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1676, allocations: 4 kB / 0.7682 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.1678, allocations: 51.95 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.1678, allocations: 11.92 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.444e-05/0.1678, allocations: 19.81 kB / 0.7683 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.1679, allocations: 63.78 kB / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.168, allocations: 0 / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.002e-06/0.168, allocations: 0 / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.168, allocations: 0 / 0.7683 GB, free: 6.375 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.0004343/0.1684, allocations: 359.3 kB / 0.7687 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.1685, allocations: 8.031 kB / 0.7687 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.1685, allocations: 12.89 kB / 0.7687 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.747e-05/0.1686, allocations: 160.4 kB / 0.7689 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.1686, allocations: 4.375 kB / 0.7689 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.1686, allocations: 4.375 kB / 0.7689 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.1688, allocations: 70.2 kB / 0.7689 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1688, allocations: 8.062 kB / 0.7689 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1689, allocations: 3.938 kB / 0.7689 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1689, allocations: 0 / 0.7689 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.1691, allocations: 47.95 kB / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.1694, allocations: 280.7 kB / 0.7693 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.1697, allocations: 62.53 kB / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.044e-05/0.1698, allocations: 20.83 kB / 0.7693 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/0.17, allocations: 174.2 kB / 0.7695 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.1701, allocations: 30.56 kB / 0.7695 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1701, allocations: 0 / 0.7695 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003697/0.1704, allocations: 93.81 kB / 0.7696 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.1705, allocations: 55.41 kB / 0.7697 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.579e-05/0.1706, allocations: 117.7 kB / 0.7698 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.1706, allocations: 25.7 kB / 0.7698 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.1706, allocations: 88.14 kB / 0.7699 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.193e-05/0.1706, allocations: 3.953 kB / 0.7699 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.1707, allocations: 17.72 kB / 0.7699 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.1708, allocations: 318.8 kB / 0.7702 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.1709, allocations: 19.98 kB / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.502e-05/0.171, allocations: 31.95 kB / 0.7703 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.1711, allocations: 36.83 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1711, allocations: 0 / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002084/0.1714, allocations: 77.64 kB / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.1714, allocations: 4 kB / 0.7704 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1714, allocations: 4 kB / 0.7704 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1714, allocations: 0 / 0.7704 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.807e-05/0.1715, allocations: 19.92 kB / 0.7704 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.1715, allocations: 0 / 0.7704 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.452e-05/0.1716, allocations: 7.953 kB / 0.7704 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1716, allocations: 3.984 kB / 0.7704 GB, free: 3.984 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.867e-05/0.1717, allocations: 122.4 kB / 0.7705 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.1717, allocations: 0 / 0.7705 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002473/0.1719, allocations: 85.55 kB / 0.7706 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.172, allocations: 0 / 0.7706 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.172, allocations: 3.938 kB / 0.7706 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.172, allocations: 0 / 0.7706 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.1721, allocations: 173.7 kB / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1721, allocations: 0 / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.1722, allocations: 19.92 kB / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1722, allocations: 0 / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.1722, allocations: 0 / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1723, allocations: 0 / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.417e-05/0.1723, allocations: 8 kB / 0.7708 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/0.1725, allocations: 179.4 kB / 0.771 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.962e-05/0.1726, allocations: 81.05 kB / 0.7711 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.1726, allocations: 0 / 0.7711 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-05/0.1727, allocations: 7.984 kB / 0.7711 GB, free: 3.215 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.1727, allocations: 8 kB / 0.7711 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1727, allocations: 7.984 kB / 0.7711 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.708e-05/0.1728, allocations: 83.28 kB / 0.7712 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1728, allocations: 0 / 0.7712 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002359/0.173, allocations: 16 kB / 0.7712 GB, free: 3.102 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.0001605/0.1732, allocations: 119.1 kB / 0.7713 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002271/0.1734, allocations: 44.19 kB / 0.7713 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1734, allocations: 4 kB / 0.7713 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.884e-05/0.1735, allocations: 28.06 kB / 0.7714 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1738, allocations: 7.938 kB / 0.7714 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002646/0.1741, allocations: 121.6 kB / 0.7715 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1743, allocations: 0.6884 MB / 0.7722 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.337e-05/0.1743, allocations: 8.547 kB / 0.7722 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/0.1744, allocations: 11.38 kB / 0.7722 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.1744, allocations: 0 / 0.7722 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of Templates: time 0.003039/0.1774, allocations: 0.984 MB / 0.7731 GB, free: 1.039 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)