Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005037/0.005037, allocations: 97.36 kB / 15.73 MB, free: 6.035 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.001092/0.001092, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002233/0.002233, allocations: 278.7 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 96 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1685, allocations: 86.97 MB / 0.7659 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Binomial): time 0.00172/0.1702, allocations: 0.5863 MB / 0.7665 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003785/0.1706, allocations: 103.6 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.943e-05/0.1707, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.996e-05/0.1707, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.1707, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.1711, allocations: 43.89 kB / 0.7667 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.1712, allocations: 67.92 kB / 0.7667 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.723e-05/0.1712, allocations: 7.938 kB / 0.7667 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.427e-05/0.1713, allocations: 23.98 kB / 0.7668 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.368e-05/0.1713, allocations: 23.95 kB / 0.7668 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.1714, allocations: 4 kB / 0.7668 GB, free: 8.035 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.1715, allocations: 43.95 kB / 0.7668 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.849e-05/0.1715, allocations: 19.97 kB / 0.7668 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.274e-05/0.1716, allocations: 19.92 kB / 0.7669 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.1717, allocations: 79.92 kB / 0.7669 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1717, allocations: 4 kB / 0.7669 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1717, allocations: 0 / 0.7669 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.1718, allocations: 0 / 0.7669 GB, free: 7.871 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004793/0.1722, allocations: 375.4 kB / 0.7673 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1723, allocations: 11.97 kB / 0.7673 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.659e-05/0.1723, allocations: 42.73 kB / 0.7674 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.1724, allocations: 4.938 kB / 0.7674 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.477e-05/0.1725, allocations: 168.3 kB / 0.7675 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000261/0.1727, allocations: 285.6 kB / 0.7678 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.1728, allocations: 4.375 kB / 0.7678 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.173, allocations: 85.95 kB / 0.7679 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.173, allocations: 4 kB / 0.7679 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.173, allocations: 0 / 0.7679 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.1731, allocations: 0 / 0.7679 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.1734, allocations: 139.7 kB / 0.768 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.1736, allocations: 181.5 kB / 0.7682 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.1739, allocations: 94.47 kB / 0.7683 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.1741, allocations: 40.83 kB / 0.7683 GB, free: 6.238 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.1741, allocations: 8 kB / 0.7683 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.1741, allocations: 38.5 kB / 0.7684 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.1742, allocations: 0 / 0.7684 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0005334/0.1747, allocations: 149.8 kB / 0.7685 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.1747, allocations: 51.41 kB / 0.7686 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.676e-05/0.1748, allocations: 89.86 kB / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.1748, allocations: 29.7 kB / 0.7687 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.1748, allocations: 80.14 kB / 0.7687 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/0.1749, allocations: 39.69 kB / 0.7688 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.916e-05/0.175, allocations: 33.7 kB / 0.7688 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.1751, allocations: 314.8 kB / 0.7691 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.1752, allocations: 31.98 kB / 0.7691 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.1753, allocations: 27.97 kB / 0.7692 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.1756, allocations: 80.75 kB / 0.7692 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1756, allocations: 0 / 0.7692 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003312/0.176, allocations: 113.5 kB / 0.7694 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.176, allocations: 15.94 kB / 0.7694 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.176, allocations: 0 / 0.7694 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.176, allocations: 0 / 0.7694 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.1762, allocations: 23.97 kB / 0.7694 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1762, allocations: 7.938 kB / 0.7694 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.119e-05/0.1763, allocations: 7.938 kB / 0.7694 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.1763, allocations: 3.984 kB / 0.7694 GB, free: 5.043 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: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 8.495e-05/0.1764, allocations: 118.4 kB / 0.7695 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/0.1764, allocations: 15.89 kB / 0.7695 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.1764, allocations: 11.97 kB / 0.7696 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1764, allocations: 3.984 kB / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1765, allocations: 4 kB / 0.7696 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1765, allocations: 0 / 0.7696 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.1766, allocations: 173.6 kB / 0.7697 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1766, allocations: 0 / 0.7697 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.1767, allocations: 23.98 kB / 0.7697 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.1767, allocations: 3.938 kB / 0.7698 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.1768, allocations: 3.984 kB / 0.7698 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1768, allocations: 0 / 0.7698 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1768, allocations: 8 kB / 0.7698 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/0.1771, allocations: 145.7 kB / 0.7699 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.1772, allocations: 88.94 kB / 0.77 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.1772, allocations: 4 kB / 0.77 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.284e-05/0.1773, allocations: 8 kB / 0.77 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.098e-05/0.1773, allocations: 19.95 kB / 0.77 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.1774, allocations: 0 / 0.77 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.309e-05/0.1774, allocations: 79.28 kB / 0.7701 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1774, allocations: 0 / 0.7701 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002205/0.1776, allocations: 24 kB / 0.7701 GB, free: 4.227 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: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0006869/0.1783, allocations: 0.7021 MB / 0.7708 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003312/0.1787, allocations: 87.88 kB / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1787, allocations: 0 / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.1788, allocations: 47.91 kB / 0.7709 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000137/0.179, allocations: 10.34 kB / 0.7709 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004788/0.1795, allocations: 198.4 kB / 0.7711 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.1797, allocations: 0.6846 MB / 0.7718 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001615/0.1799, allocations: 35.94 kB / 0.7718 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.1799, allocations: 23.42 kB / 0.7719 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.1799, allocations: 0 / 0.7719 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1976, allocations: 2.041 MB / 0.7738 GB, free: 428 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/7.731, allocations: 14.98 kB / 0.7739 GB, free: 416 kB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1)