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.0084/0.008399, allocations: 98.56 kB / 15.73 MB, free: 5.949 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.002143/0.002143, allocations: 193 kB / 16.67 MB, free: 5.871 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002537/0.002537, allocations: 295.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9846/0.9846, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002752/0.002752, allocations: 95.84 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4759/0.4786, allocations: 86.97 MB / 0.7659 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002996/0.4817, allocations: 1.529 MB / 0.7674 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004943/0.4822, allocations: 176.3 kB / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.939e-05/0.4823, allocations: 0 / 0.7676 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.1e-05/0.4823, allocations: 7.922 kB / 0.7676 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.774e-05/0.4824, allocations: 7.938 kB / 0.7676 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.4827, allocations: 47.88 kB / 0.7676 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.445e-05/0.4828, allocations: 39.86 kB / 0.7677 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.4829, allocations: 19.98 kB / 0.7677 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.162e-05/0.483, allocations: 11.94 kB / 0.7677 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.483, allocations: 19.91 kB / 0.7677 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.4831, allocations: 4 kB / 0.7677 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.4832, allocations: 47.95 kB / 0.7678 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.584e-05/0.4832, allocations: 4 kB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.161e-05/0.4833, allocations: 19.91 kB / 0.7678 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.4835, allocations: 71.58 kB / 0.7679 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.4835, allocations: 3.938 kB / 0.7679 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.462e-06/0.4835, allocations: 0 / 0.7679 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.4835, allocations: 0 / 0.7679 GB, free: 1.816 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.000545/0.484, allocations: 356.6 kB / 0.7682 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.4841, allocations: 8.031 kB / 0.7682 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.4841, allocations: 42.73 kB / 0.7683 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.4842, allocations: 4.891 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.4843, allocations: 168.3 kB / 0.7684 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.4844, allocations: 384 / 0.7684 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.4844, allocations: 4.375 kB / 0.7684 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.4846, allocations: 66.22 kB / 0.7685 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.4846, allocations: 3.938 kB / 0.7685 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.4846, allocations: 0 / 0.7685 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.4847, allocations: 0 / 0.7685 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.4849, allocations: 43.95 kB / 0.7685 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/0.4853, allocations: 284.7 kB / 0.7688 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.4856, allocations: 62.53 kB / 0.7689 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.4858, allocations: 24.91 kB / 0.7689 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002698/0.486, allocations: 170.2 kB / 0.7691 GB, free: 416 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.4861, allocations: 42.5 kB / 0.7691 GB, free: 364 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 2.845e-06/0.4861, allocations: 0 / 0.7691 GB, free: 364 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003962/0.4865, allocations: 97.56 kB / 0.7692 GB, free: 260 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.4865, allocations: 51.41 kB / 0.7692 GB, free: 196 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.318e-05/0.4866, allocations: 117.8 kB / 0.7693 GB, free: 68 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.4867, allocations: 25.7 kB / 0.7694 GB, free: 36 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.875e-05/0.4867, allocations: 84.12 kB / 0.7695 GB, free: 15.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.4868, allocations: 9.719 kB / 0.7695 GB, free: 15.94 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.4868, allocations: 13.72 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.487, allocations: 330.8 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-05/0.4871, allocations: 19.98 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.004e-05/0.4871, allocations: 15.98 kB / 0.7698 GB, free: 15.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.4874, allocations: 52.75 kB / 0.7699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4874, allocations: 0 / 0.7699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002156/0.4876, allocations: 73.66 kB / 0.7699 GB, free: 15.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/0.4876, allocations: 11.98 kB / 0.77 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.4876, allocations: 0 / 0.77 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.4877, allocations: 0 / 0.77 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.716e-05/0.4877, allocations: 8 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.4877, allocations: 3.984 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.618e-05/0.4878, allocations: 7.953 kB / 0.77 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.4878, allocations: 0 / 0.77 GB, free: 15.39 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 9.541e-05/0.4879, allocations: 121.8 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.488, allocations: 7.922 kB / 0.7701 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002634/0.4882, allocations: 85.48 kB / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4882, allocations: 0 / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4882, allocations: 0 / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.4883, allocations: 0 / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.4884, allocations: 169.6 kB / 0.7703 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4885, allocations: 0 / 0.7703 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.4885, allocations: 15.98 kB / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4885, allocations: 0 / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.4886, allocations: 4 kB / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4886, allocations: 0 / 0.7704 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4886, allocations: 3.938 kB / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.4889, allocations: 179.3 kB / 0.7705 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.4889, allocations: 81.11 kB / 0.7706 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.4889, allocations: 4 kB / 0.7706 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.21e-05/0.489, allocations: 7.984 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.4891, allocations: 4 kB / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.4891, allocations: 0 / 0.7706 GB, free: 14.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.711e-05/0.4891, allocations: 91.27 kB / 0.7707 GB, free: 14.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4891, allocations: 0 / 0.7707 GB, free: 14.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002428/0.4894, allocations: 15.94 kB / 0.7707 GB, free: 14.51 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.000665/0.4901, allocations: 0.7361 MB / 0.7714 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002426/0.4903, allocations: 43.95 kB / 0.7715 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4903, allocations: 0 / 0.7715 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.575e-05/0.4904, allocations: 27.98 kB / 0.7715 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.4908, allocations: 8.531 kB / 0.7715 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.4924, allocations: 1.288 MB / 0.7728 GB, free: 12.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.4928, allocations: 0.6806 MB / 0.7734 GB, free: 11.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.056e-05/0.4928, allocations: 11.98 kB / 0.7735 GB, free: 11.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.911e-05/0.4929, allocations: 19.42 kB / 0.7735 GB, free: 11.57 MB / 0.545 GB Notification: Performance of SimCode: time 9.21e-07/0.4929, allocations: 0 / 0.7735 GB, free: 11.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0253/0.5182, allocations: 1.938 MB / 0.7754 GB, free: 9.727 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.316, allocations: 12.55 kB / 0.7754 GB, free: 9.715 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)