Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.Binomial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Binomial,fileNamePrefix="IDEAS_dev_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.001165/0.001165, allocations: 108.6 kB / 15.73 MB, free: 72 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.00116/0.001161, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.549/1.549, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9597/0.9597, allocations: 135.1 MB / 425.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002426/0.002426, allocations: 67.88 kB / 0.5851 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4563/0.4587, allocations: 80.92 MB / 0.6642 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Binomial): time 0.002847/0.4616, allocations: 1.53 MB / 0.6656 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004325/0.4621, allocations: 180.6 kB / 0.6658 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.219e-05/0.4621, allocations: 0 / 0.6658 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.4622, allocations: 7.922 kB / 0.6658 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.332e-05/0.4622, allocations: 5.156 kB / 0.6658 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.4626, allocations: 55.03 kB / 0.6659 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.641e-05/0.4627, allocations: 34.95 kB / 0.6659 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.4628, allocations: 10.53 kB / 0.6659 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.4628, allocations: 17.52 kB / 0.6659 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.031e-05/0.4629, allocations: 24.19 kB / 0.666 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.4629, allocations: 3.969 kB / 0.666 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.463, allocations: 46.55 kB / 0.666 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.544e-05/0.463, allocations: 6.281 kB / 0.666 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.978e-05/0.4631, allocations: 30.94 kB / 0.6661 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.4632, allocations: 57.78 kB / 0.6661 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4632, allocations: 3.984 kB / 0.6661 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4632, allocations: 0 / 0.6661 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.4632, allocations: 1.375 kB / 0.6661 GB, free: 5.746 MB / 0.4981 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.000455/0.4637, allocations: 363.1 kB / 0.6665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.4637, allocations: 9.875 kB / 0.6665 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.892e-05/0.4638, allocations: 32.19 kB / 0.6665 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.4638, allocations: 11.08 kB / 0.6665 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.368e-05/0.4639, allocations: 165.8 kB / 0.6667 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.4639, allocations: 2.969 kB / 0.6667 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.464, allocations: 6.688 kB / 0.6667 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.4642, allocations: 63.22 kB / 0.6667 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4642, allocations: 3.938 kB / 0.6667 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.4642, allocations: 0 / 0.6667 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4642, allocations: 1.281 kB / 0.6667 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.4644, allocations: 52.8 kB / 0.6668 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.4647, allocations: 274.4 kB / 0.6671 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.4651, allocations: 58 kB / 0.6671 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.4652, allocations: 20.38 kB / 0.6671 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001925/0.4654, allocations: 173.4 kB / 0.6673 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.4654, allocations: 39.61 kB / 0.6673 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.4654, allocations: 0 / 0.6673 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003964/0.4658, allocations: 91.14 kB / 0.6674 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.328e-05/0.4658, allocations: 51.41 kB / 0.6675 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.4659, allocations: 115.5 kB / 0.6676 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.978e-06/0.4659, allocations: 26.98 kB / 0.6676 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.602e-05/0.466, allocations: 97.42 kB / 0.6677 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.466, allocations: 5.484 kB / 0.6677 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.466, allocations: 16.47 kB / 0.6677 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.4661, allocations: 316.2 kB / 0.668 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.968e-05/0.4662, allocations: 23.19 kB / 0.668 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.149e-05/0.4663, allocations: 27.27 kB / 0.6681 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.4664, allocations: 42.03 kB / 0.6681 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4664, allocations: 1.531 kB / 0.6681 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000221/0.4667, allocations: 72.53 kB / 0.6682 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4667, allocations: 4.906 kB / 0.6682 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4667, allocations: 0 / 0.6682 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4667, allocations: 9 kB / 0.6682 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.009e-05/0.4668, allocations: 15.89 kB / 0.6682 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.4668, allocations: 0 / 0.6682 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.844e-05/0.4669, allocations: 8.453 kB / 0.6682 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-06/0.4669, allocations: 336 / 0.6682 GB, free: 3.602 MB / 0.4981 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 6.506e-05/0.467, allocations: 120.2 kB / 0.6683 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.467, allocations: 6.109 kB / 0.6683 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.4672, allocations: 88.38 kB / 0.6684 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4673, allocations: 3.984 kB / 0.6684 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4673, allocations: 5.062 kB / 0.6684 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4673, allocations: 0 / 0.6684 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.4674, allocations: 169.5 kB / 0.6686 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4674, allocations: 0 / 0.6686 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.59e-05/0.4675, allocations: 11.83 kB / 0.6686 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4675, allocations: 0 / 0.6686 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.4675, allocations: 1.438 kB / 0.6686 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4676, allocations: 0 / 0.6686 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.4676, allocations: 5.469 kB / 0.6686 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.4678, allocations: 178.6 kB / 0.6688 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.45e-05/0.4679, allocations: 82.53 kB / 0.6689 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.4679, allocations: 1.188 kB / 0.6689 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.363e-05/0.468, allocations: 3.531 kB / 0.6689 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.72e-05/0.4681, allocations: 10.2 kB / 0.6689 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.4681, allocations: 5.156 kB / 0.6689 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.251e-05/0.4681, allocations: 86.27 kB / 0.669 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4681, allocations: 0 / 0.669 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002427/0.4684, allocations: 21.31 kB / 0.669 GB, free: 2.82 MB / 0.4981 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.0004948/0.4689, allocations: 0.722 MB / 0.6697 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002294/0.4691, allocations: 46.66 kB / 0.6697 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4691, allocations: 3.938 kB / 0.6697 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.406e-05/0.4692, allocations: 22.39 kB / 0.6698 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.4695, allocations: 9.281 kB / 0.6698 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.4709, allocations: 1.3 MB / 0.671 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001752/0.4711, allocations: 0.6798 MB / 0.6717 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.643e-05/0.4711, allocations: 2.719 kB / 0.6717 GB, free: 136 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.839e-05/0.4712, allocations: 19.55 kB / 0.6717 GB, free: 120 kB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.4712, allocations: 0 / 0.6717 GB, free: 120 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.49, allocations: 1.936 MB / 0.6736 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.489/7.979, allocations: 7.125 kB / 0.6736 GB, free: 15.04 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Binomial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Binomial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Binomial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_Binomial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Binomial.pipe 2>&1)