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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Binomial,fileNamePrefix="BuildingSystems_BuildingSystems_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.005827/0.005827, allocations: 102.4 kB / 15.73 MB, free: 6.023 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.001217/0.001217, allocations: 195.8 kB / 16.67 MB, free: 5.938 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002343/0.002343, allocations: 296.2 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9517/0.9517, allocations: 169.2 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 95.84 kB / 0.681 GB, free: 7.438 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4426, allocations: 86.97 MB / 0.7659 GB, free: 3.805 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002534/0.4452, allocations: 1.517 MB / 0.7674 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004452/0.4456, allocations: 184.2 kB / 0.7676 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.15e-05/0.4457, allocations: 0 / 0.7676 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.4457, allocations: 3.938 kB / 0.7676 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.717e-05/0.4458, allocations: 11.92 kB / 0.7676 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003167/0.4461, allocations: 43.89 kB / 0.7676 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.642e-05/0.4462, allocations: 51.77 kB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.351e-05/0.4463, allocations: 16 kB / 0.7677 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.13e-05/0.4464, allocations: 15.92 kB / 0.7677 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.491e-05/0.4464, allocations: 19.92 kB / 0.7677 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.4464, allocations: 4 kB / 0.7677 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.4466, allocations: 51.94 kB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.4466, allocations: 0 / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.94e-05/0.4466, allocations: 15.94 kB / 0.7678 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.4468, allocations: 67.58 kB / 0.7679 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4468, allocations: 4 kB / 0.7679 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4468, allocations: 0 / 0.7679 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.4468, allocations: 0 / 0.7679 GB, free: 1.793 MB / 0.5294 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.0004686/0.4473, allocations: 360.6 kB / 0.7682 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.4473, allocations: 8.031 kB / 0.7682 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.126e-05/0.4474, allocations: 34.75 kB / 0.7682 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.4474, allocations: 4.891 kB / 0.7683 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.4475, allocations: 172.3 kB / 0.7684 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.4476, allocations: 8.375 kB / 0.7684 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.4476, allocations: 4.375 kB / 0.7684 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.4478, allocations: 62.22 kB / 0.7685 GB, free: 1.055 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.4478, allocations: 3.938 kB / 0.7685 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.4478, allocations: 4 kB / 0.7685 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.4478, allocations: 0 / 0.7685 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002021/0.448, allocations: 43.95 kB / 0.7685 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.4484, allocations: 292.7 kB / 0.7688 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.4488, allocations: 58.53 kB / 0.7689 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.915e-05/0.4489, allocations: 24.91 kB / 0.7689 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002253/0.4491, allocations: 170.1 kB / 0.7691 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.4491, allocations: 34.56 kB / 0.7691 GB, free: 336 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.4492, allocations: 0 / 0.7691 GB, free: 336 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003911/0.4495, allocations: 97.56 kB / 0.7692 GB, free: 232 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.4496, allocations: 51.41 kB / 0.7692 GB, free: 168 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/0.4497, allocations: 113.8 kB / 0.7693 GB, free: 44 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.4497, allocations: 25.7 kB / 0.7694 GB, free: 12 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.4497, allocations: 88.14 kB / 0.7694 GB, free: 15.92 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.4498, allocations: 9.719 kB / 0.7695 GB, free: 15.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.4498, allocations: 17.7 kB / 0.7695 GB, free: 15.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4499, allocations: 318.8 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.45, allocations: 19.97 kB / 0.7698 GB, free: 15.55 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.967e-05/0.4501, allocations: 19.98 kB / 0.7698 GB, free: 15.53 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.4503, allocations: 56.75 kB / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4503, allocations: 0 / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002168/0.4505, allocations: 73.59 kB / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.4505, allocations: 4 kB / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.4506, allocations: 0 / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.4506, allocations: 0 / 0.7699 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.132e-05/0.4507, allocations: 11.98 kB / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.4507, allocations: 0 / 0.77 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.465e-05/0.4507, allocations: 19.94 kB / 0.77 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.4508, allocations: 336 / 0.77 GB, free: 15.36 MB / 0.545 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.915e-05/0.4508, allocations: 113.8 kB / 0.7701 GB, free: 15.24 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.4509, allocations: 4 kB / 0.7701 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.4511, allocations: 89.47 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4511, allocations: 0 / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4511, allocations: 4 kB / 0.7702 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.4512, allocations: 0 / 0.7702 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.4513, allocations: 173.6 kB / 0.7703 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4513, allocations: 0 / 0.7703 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.441e-05/0.4514, allocations: 12 kB / 0.7704 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.4514, allocations: 7.984 kB / 0.7704 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4514, allocations: 0 / 0.7704 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4514, allocations: 3.938 kB / 0.7704 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4514, allocations: 0 / 0.7704 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.4517, allocations: 179.3 kB / 0.7705 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.4518, allocations: 81.09 kB / 0.7706 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.4518, allocations: 4 kB / 0.7706 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.585e-05/0.4519, allocations: 4 kB / 0.7706 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.4519, allocations: 11.98 kB / 0.7706 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.4519, allocations: 0 / 0.7706 GB, free: 14.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.714e-05/0.452, allocations: 95.56 kB / 0.7707 GB, free: 14.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.452, allocations: 4 kB / 0.7707 GB, free: 14.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002479/0.4522, allocations: 15.94 kB / 0.7707 GB, free: 14.47 MB / 0.545 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.0005821/0.4528, allocations: 0.7202 MB / 0.7714 GB, free: 13.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.4531, allocations: 51.89 kB / 0.7715 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4531, allocations: 0 / 0.7715 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.4532, allocations: 23.97 kB / 0.7715 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4535, allocations: 11.94 kB / 0.7715 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001444/0.455, allocations: 1.296 MB / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.4552, allocations: 0.6768 MB / 0.7735 GB, free: 11.56 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.221e-05/0.4552, allocations: 4 kB / 0.7735 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.4553, allocations: 15.44 kB / 0.7735 GB, free: 11.54 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.4553, allocations: 0 / 0.7735 GB, free: 11.54 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.4731, allocations: 1.938 MB / 0.7754 GB, free: 9.695 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.858, allocations: 12.12 kB / 0.7754 GB, free: 9.688 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)