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.006539/0.006539, allocations: 101 kB / 15.73 MB, free: 6.043 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.001348/0.001348, allocations: 201.5 kB / 16.68 MB, free: 5.965 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002465/0.002465, allocations: 278.4 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.151/1.151, allocations: 178.6 MB / 0.5074 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 97.05 kB / 0.6943 GB, free: 3.617 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4719/0.4746, allocations: 89.14 MB / 0.7813 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002684/0.4773, allocations: 1.538 MB / 0.7828 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0005523/0.4779, allocations: 188.2 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.982e-05/0.4779, allocations: 0 / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.298e-05/0.478, allocations: 0.7031 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.478, allocations: 6.703 kB / 0.783 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.4784, allocations: 46.61 kB / 0.7831 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.758e-05/0.4784, allocations: 42.61 kB / 0.7831 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.048e-05/0.4785, allocations: 16.94 kB / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.167e-05/0.4786, allocations: 11.36 kB / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.389e-05/0.4786, allocations: 21.59 kB / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.4787, allocations: 3.75 kB / 0.7832 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.4788, allocations: 49.66 kB / 0.7832 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.4788, allocations: 11.39 kB / 0.7832 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.877e-05/0.4788, allocations: 17.72 kB / 0.7832 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.479, allocations: 64.75 kB / 0.7833 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.479, allocations: 0.6094 kB / 0.7833 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.272e-06/0.479, allocations: 4 kB / 0.7833 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.479, allocations: 0 / 0.7833 GB, free: 12.54 MB / 0.5606 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.0004919/0.4795, allocations: 359.5 kB / 0.7837 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.4796, allocations: 9.062 kB / 0.7837 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.4796, allocations: 32.72 kB / 0.7837 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.865e-05/0.4797, allocations: 8.297 kB / 0.7837 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.4798, allocations: 167.1 kB / 0.7839 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.4798, allocations: 5.656 kB / 0.7839 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.4798, allocations: 6.969 kB / 0.7839 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.48, allocations: 66.16 kB / 0.7839 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.48, allocations: 4.547 kB / 0.7839 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.4801, allocations: 1.344 kB / 0.7839 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.4801, allocations: 0 / 0.7839 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.4803, allocations: 45.12 kB / 0.784 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003895/0.4807, allocations: 280.3 kB / 0.7843 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.481, allocations: 61.77 kB / 0.7843 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.4811, allocations: 24.75 kB / 0.7843 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002346/0.4814, allocations: 166.5 kB / 0.7845 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.4814, allocations: 35.22 kB / 0.7845 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.4814, allocations: 5.031 kB / 0.7845 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004151/0.4818, allocations: 93.48 kB / 0.7846 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.4819, allocations: 56 kB / 0.7847 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.189e-05/0.482, allocations: 111.7 kB / 0.7848 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.482, allocations: 25.7 kB / 0.7848 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.912e-05/0.4821, allocations: 91.53 kB / 0.7849 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.4821, allocations: 8.891 kB / 0.7849 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.074e-05/0.4821, allocations: 19.61 kB / 0.7849 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4823, allocations: 321.2 kB / 0.7852 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.786e-05/0.4824, allocations: 20.44 kB / 0.7852 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.654e-05/0.4825, allocations: 20.8 kB / 0.7853 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.4826, allocations: 49.11 kB / 0.7853 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4827, allocations: 1.438 kB / 0.7853 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002249/0.4829, allocations: 77.7 kB / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.4829, allocations: 5.547 kB / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4829, allocations: 0 / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.4829, allocations: 2.109 kB / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.273e-05/0.483, allocations: 14.28 kB / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.483, allocations: 0.9688 kB / 0.7854 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.4831, allocations: 14.98 kB / 0.7854 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.4831, allocations: 4.797 kB / 0.7854 GB, free: 10.53 MB / 0.5606 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 8.111e-05/0.4832, allocations: 113.2 kB / 0.7855 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.4832, allocations: 2.719 kB / 0.7855 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002721/0.4835, allocations: 87.11 kB / 0.7856 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.4835, allocations: 1.922 kB / 0.7856 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4835, allocations: 4 kB / 0.7856 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4835, allocations: 0 / 0.7856 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.4837, allocations: 173.9 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4837, allocations: 1.125 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.495e-05/0.4838, allocations: 10.61 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4838, allocations: 1.562 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.4838, allocations: 0.7969 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4838, allocations: 1.438 kB / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4838, allocations: 0 / 0.7858 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.4841, allocations: 185.9 kB / 0.786 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.4842, allocations: 79.19 kB / 0.7861 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.4842, allocations: 1.281 kB / 0.7861 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-05/0.4843, allocations: 5.328 kB / 0.7861 GB, free: 9.895 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.4843, allocations: 9.766 kB / 0.7861 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.4843, allocations: 1.219 kB / 0.7861 GB, free: 9.891 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.695e-05/0.4844, allocations: 87.94 kB / 0.7862 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4844, allocations: 4 kB / 0.7862 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002459/0.4847, allocations: 19.42 kB / 0.7862 GB, free: 9.805 MB / 0.5606 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.0006259/0.4853, allocations: 0.7234 MB / 0.7869 GB, free: 9.129 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002449/0.4855, allocations: 46.12 kB / 0.7869 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4856, allocations: 0 / 0.7869 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.4857, allocations: 29.44 kB / 0.787 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.4859, allocations: 13.48 kB / 0.787 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.4874, allocations: 1.287 MB / 0.7882 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.4877, allocations: 0.6793 MB / 0.7889 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.215e-05/0.4877, allocations: 5.688 kB / 0.7889 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.4878, allocations: 15.42 kB / 0.7889 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4878, allocations: 0 / 0.7889 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.5089, allocations: 1.944 MB / 0.7908 GB, free: 6.773 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.251, allocations: 14.83 kB / 0.7908 GB, free: 6.766 MB / 0.5606 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)