Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.Binomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Binomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_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.001158/0.001158, allocations: 108 kB / 15.6 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.00219/0.002189, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7442/0.7442, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.91 kB / 0.5019 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3493, allocations: 80.2 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Binomial): time 0.002431/0.3517, allocations: 1.527 MB / 0.5817 GB, free: 3.512 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004059/0.3522, allocations: 178.5 kB / 0.5819 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.744e-05/0.3522, allocations: 4.75 kB / 0.5819 GB, free: 3.391 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.424e-05/0.3522, allocations: 0.5156 kB / 0.5819 GB, free: 3.391 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.23e-05/0.3523, allocations: 5.672 kB / 0.5819 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003317/0.3526, allocations: 59.48 kB / 0.5819 GB, free: 3.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.591e-05/0.3527, allocations: 30.88 kB / 0.5819 GB, free: 3.344 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.3528, allocations: 12.39 kB / 0.582 GB, free: 3.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.3529, allocations: 11.34 kB / 0.582 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.663e-05/0.3529, allocations: 25.95 kB / 0.582 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.353, allocations: 8.125 kB / 0.582 GB, free: 3.316 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.3531, allocations: 47.86 kB / 0.582 GB, free: 3.301 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.669e-05/0.3531, allocations: 11.58 kB / 0.5821 GB, free: 3.293 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.3531, allocations: 20.56 kB / 0.5821 GB, free: 3.277 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.3533, allocations: 56.75 kB / 0.5821 GB, free: 3.258 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3533, allocations: 0.6094 kB / 0.5821 GB, free: 3.258 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3533, allocations: 1.219 kB / 0.5821 GB, free: 3.258 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.3533, allocations: 0 / 0.5821 GB, free: 3.258 MB / 430.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.0004316/0.3538, allocations: 359 kB / 0.5825 GB, free: 2.887 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3538, allocations: 14.59 kB / 0.5825 GB, free: 2.883 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.95e-05/0.3539, allocations: 32.66 kB / 0.5825 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.3539, allocations: 6.438 kB / 0.5825 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.421e-05/0.354, allocations: 168.2 kB / 0.5827 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.354, allocations: 1.469 kB / 0.5827 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.354, allocations: 7.156 kB / 0.5827 GB, free: 2.637 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.3542, allocations: 61.8 kB / 0.5828 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3543, allocations: 5.875 kB / 0.5828 GB, free: 2.594 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.3543, allocations: 3.938 kB / 0.5828 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3543, allocations: 5.094 kB / 0.5828 GB, free: 2.586 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.3545, allocations: 47.86 kB / 0.5828 GB, free: 2.574 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.3548, allocations: 276.1 kB / 0.5831 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.3552, allocations: 65.94 kB / 0.5831 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.3553, allocations: 26.61 kB / 0.5832 GB, free: 2.238 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/0.3555, allocations: 169.3 kB / 0.5833 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.3555, allocations: 31.75 kB / 0.5834 GB, free: 2.008 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.3555, allocations: 0 / 0.5834 GB, free: 2.008 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003951/0.3559, allocations: 97.89 kB / 0.5835 GB, free: 1.961 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.356, allocations: 52.11 kB / 0.5835 GB, free: 1.898 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.029e-05/0.356, allocations: 111.7 kB / 0.5836 GB, free: 1.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.3561, allocations: 26.52 kB / 0.5836 GB, free: 1.762 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.415e-05/0.3561, allocations: 99.41 kB / 0.5837 GB, free: 1.664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.3561, allocations: 3.906 kB / 0.5837 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.3562, allocations: 19.89 kB / 0.5838 GB, free: 1.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.351e-05/0.3562, allocations: 324.8 kB / 0.5841 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.552e-05/0.3563, allocations: 20.33 kB / 0.5841 GB, free: 1.312 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.741e-05/0.3564, allocations: 21.42 kB / 0.5841 GB, free: 1.309 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.3566, allocations: 45.41 kB / 0.5841 GB, free: 1.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3566, allocations: 0 / 0.5841 GB, free: 1.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002139/0.3568, allocations: 78.2 kB / 0.5842 GB, free: 1.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3568, allocations: 5.594 kB / 0.5842 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3568, allocations: 0.6562 kB / 0.5842 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.3569, allocations: 0.5938 kB / 0.5842 GB, free: 1.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.35e-05/0.357, allocations: 15.02 kB / 0.5842 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.357, allocations: 0.7031 kB / 0.5842 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.926e-05/0.357, allocations: 10.8 kB / 0.5842 GB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.357, allocations: 1.469 kB / 0.5843 GB, free: 1.242 MB / 430.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 4.837e-05/0.3571, allocations: 122.3 kB / 0.5844 GB, free: 1.117 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.3571, allocations: 5.688 kB / 0.5844 GB, free: 1.113 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.3574, allocations: 80.31 kB / 0.5845 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3574, allocations: 1.125 kB / 0.5845 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3574, allocations: 0 / 0.5845 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3574, allocations: 1.844 kB / 0.5845 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.3575, allocations: 169.5 kB / 0.5846 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3575, allocations: 0 / 0.5846 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.77e-05/0.3576, allocations: 19.39 kB / 0.5846 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3576, allocations: 0.9375 kB / 0.5846 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-06/0.3577, allocations: 1.984 kB / 0.5846 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3577, allocations: 0 / 0.5846 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3577, allocations: 0 / 0.5846 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.3579, allocations: 178.7 kB / 0.5848 GB, free: 0.707 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.3579, allocations: 83.11 kB / 0.5849 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3579, allocations: 5.516 kB / 0.5849 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.669e-05/0.358, allocations: 6.484 kB / 0.5849 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.3581, allocations: 8.891 kB / 0.5849 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.3581, allocations: 1.219 kB / 0.5849 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.972e-05/0.3581, allocations: 88.03 kB / 0.585 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3581, allocations: 0 / 0.585 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.3584, allocations: 25.98 kB / 0.585 GB, free: 0.5117 MB / 430.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.0005264/0.3589, allocations: 0.7234 MB / 0.5857 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002453/0.3592, allocations: 41.89 kB / 0.5858 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3592, allocations: 0 / 0.5858 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3593, allocations: 32.56 kB / 0.5858 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.3596, allocations: 7.25 kB / 0.5858 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.361, allocations: 1.279 MB / 0.587 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.3613, allocations: 0.6837 MB / 0.5877 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.282e-05/0.3613, allocations: 9.234 kB / 0.5877 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.953e-05/0.3614, allocations: 15.73 kB / 0.5877 GB, free: 13.91 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3614, allocations: 0 / 0.5877 GB, free: 13.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.378, allocations: 1.881 MB / 0.5896 GB, free: 13.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.787, allocations: 5.156 kB / 0.5896 GB, free: 13.51 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Binomial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Binomial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Binomial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.Binomial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 IDEAS_IDEAS_Utilities_Math_Examples_Binomial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Binomial.pipe 2>&1)