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.007708/0.007708, allocations: 97.75 kB / 15.73 MB, free: 5.996 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.001974/0.001974, allocations: 186.7 kB / 16.67 MB, free: 5.926 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.598/1.598, 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/IDEAS 3.0.0-master/package.mo): time 0.9809/0.9809, allocations: 135.6 MB / 426.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002676/0.002676, allocations: 63.91 kB / 0.5858 GB, free: 3.215 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4231/0.4258, allocations: 81.03 MB / 0.6649 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Binomial): time 0.002224/0.428, allocations: 1.523 MB / 0.6664 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0005507/0.4286, allocations: 180.5 kB / 0.6665 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.79e-05/0.4287, allocations: 5.156 kB / 0.6666 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.652e-05/0.4288, allocations: 3.938 kB / 0.6666 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.491e-05/0.4288, allocations: 3.938 kB / 0.6666 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004062/0.4292, allocations: 51.91 kB / 0.6666 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.107e-05/0.4293, allocations: 33.7 kB / 0.6666 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.4295, allocations: 14.45 kB / 0.6667 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.499e-05/0.4295, allocations: 13.19 kB / 0.6667 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.326e-05/0.4296, allocations: 34.52 kB / 0.6667 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.4296, allocations: 2.594 kB / 0.6667 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.4298, allocations: 43.5 kB / 0.6667 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.4298, allocations: 5.266 kB / 0.6667 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.512e-05/0.4298, allocations: 23.58 kB / 0.6668 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.43, allocations: 60.89 kB / 0.6668 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.43, allocations: 1.5 kB / 0.6668 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.564e-06/0.43, allocations: 0 / 0.6668 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.505e-06/0.4301, allocations: 0 / 0.6668 GB, free: 5.355 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.0004914/0.4306, allocations: 363.9 kB / 0.6672 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.4306, allocations: 13.97 kB / 0.6672 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.634e-05/0.4307, allocations: 36.06 kB / 0.6672 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.4307, allocations: 6.078 kB / 0.6672 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.912e-05/0.4308, allocations: 163.1 kB / 0.6674 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.4308, allocations: 5.469 kB / 0.6674 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.4308, allocations: 3.25 kB / 0.6674 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.431, allocations: 63.38 kB / 0.6675 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.4311, allocations: 3.938 kB / 0.6675 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.4311, allocations: 4 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4311, allocations: 1.25 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.4313, allocations: 47.8 kB / 0.6675 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003316/0.4316, allocations: 279.6 kB / 0.6678 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.4319, allocations: 58.3 kB / 0.6678 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.432, allocations: 28.89 kB / 0.6679 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001912/0.4322, allocations: 169.1 kB / 0.668 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.755e-05/0.4323, allocations: 34.5 kB / 0.6681 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.4323, allocations: 1.531 kB / 0.6681 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003972/0.4327, allocations: 97.38 kB / 0.6681 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.256e-05/0.4327, allocations: 52.69 kB / 0.6682 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.4328, allocations: 107.1 kB / 0.6683 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.4328, allocations: 26.95 kB / 0.6683 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.4328, allocations: 93.38 kB / 0.6684 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.378e-05/0.4328, allocations: 5.297 kB / 0.6684 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.4329, allocations: 21.56 kB / 0.6684 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.632e-05/0.433, allocations: 320.2 kB / 0.6687 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.473e-05/0.4331, allocations: 22.23 kB / 0.6688 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.367e-05/0.4331, allocations: 26.34 kB / 0.6688 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.4333, allocations: 47.31 kB / 0.6688 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4333, allocations: 0 / 0.6688 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002047/0.4335, allocations: 73.48 kB / 0.6689 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.4336, allocations: 8.719 kB / 0.6689 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.4336, allocations: 1.062 kB / 0.6689 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.4336, allocations: 0 / 0.6689 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.947e-05/0.4337, allocations: 15.8 kB / 0.6689 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.4337, allocations: 0 / 0.6689 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.603e-05/0.4338, allocations: 12.23 kB / 0.6689 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.4338, allocations: 1.469 kB / 0.6689 GB, free: 3.199 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 5.235e-05/0.4338, allocations: 116.5 kB / 0.6691 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.4338, allocations: 9.422 kB / 0.6691 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.4341, allocations: 87.23 kB / 0.6691 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4341, allocations: 1.25 kB / 0.6691 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4341, allocations: 0 / 0.6691 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4341, allocations: 1.469 kB / 0.6692 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.4342, allocations: 164.6 kB / 0.6693 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.4343, allocations: 0 / 0.6693 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.344e-05/0.4343, allocations: 16.36 kB / 0.6693 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.4343, allocations: 4 kB / 0.6693 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.4344, allocations: 1.188 kB / 0.6693 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4344, allocations: 0 / 0.6693 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4344, allocations: 0 / 0.6693 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.4346, allocations: 175.7 kB / 0.6695 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.818e-05/0.4346, allocations: 82.31 kB / 0.6696 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.4346, allocations: 5.719 kB / 0.6696 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.4347, allocations: 7.703 kB / 0.6696 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.4348, allocations: 10.39 kB / 0.6696 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.4348, allocations: 1.625 kB / 0.6696 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.587e-05/0.4348, allocations: 85.97 kB / 0.6697 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4348, allocations: 0 / 0.6697 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002477/0.4351, allocations: 16.41 kB / 0.6697 GB, free: 2.43 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.0004491/0.4355, allocations: 0.7253 MB / 0.6704 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.4358, allocations: 45.52 kB / 0.6704 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4358, allocations: 0 / 0.6704 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.783e-05/0.4359, allocations: 31.44 kB / 0.6705 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.4362, allocations: 13.22 kB / 0.6705 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.4374, allocations: 1.296 MB / 0.6718 GB, free: 444 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.4376, allocations: 0.6836 MB / 0.6724 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.341e-05/0.4376, allocations: 6.875 kB / 0.6724 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.4377, allocations: 14.31 kB / 0.6724 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.4377, allocations: 0 / 0.6724 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.4608, allocations: 1.924 MB / 0.6743 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.456, allocations: 6.547 kB / 0.6743 GB, free: 14.64 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)