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.004835/0.004835, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001134/0.001134, allocations: 194.1 kB / 16.67 MB, free: 5.969 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.355/1.355, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002167/0.002167, allocations: 278.1 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9596/0.9596, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003015/0.003015, allocations: 92.38 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2151, allocations: 86.97 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002479/0.2176, allocations: 1.534 MB / 0.7674 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004402/0.218, allocations: 184.2 kB / 0.7676 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.489e-05/0.2181, allocations: 0 / 0.7676 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.146e-05/0.2181, allocations: 3.938 kB / 0.7676 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.613e-05/0.2182, allocations: 3.938 kB / 0.7676 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.2185, allocations: 55.88 kB / 0.7676 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.59e-05/0.2186, allocations: 43.84 kB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.803e-05/0.2187, allocations: 11.98 kB / 0.7677 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.2187, allocations: 19.92 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.2188, allocations: 15.92 kB / 0.7677 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.2188, allocations: 4 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.2189, allocations: 51.94 kB / 0.7678 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.439e-05/0.2189, allocations: 4 kB / 0.7678 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.115e-05/0.219, allocations: 27.86 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.2191, allocations: 56.08 kB / 0.7679 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2191, allocations: 4 kB / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2192, allocations: 0 / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.2192, allocations: 0 / 0.7679 GB, free: 6.918 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.0004937/0.2197, allocations: 359.3 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2197, allocations: 8.031 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.2197, allocations: 30.75 kB / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.2198, allocations: 8.891 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.2199, allocations: 172.3 kB / 0.7684 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.2199, allocations: 4.375 kB / 0.7684 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.2199, allocations: 4.375 kB / 0.7684 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.2201, allocations: 66.17 kB / 0.7685 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2202, allocations: 3.938 kB / 0.7685 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.2202, allocations: 0 / 0.7685 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2202, allocations: 3.984 kB / 0.7685 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.2204, allocations: 51.94 kB / 0.7685 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.2208, allocations: 284.7 kB / 0.7688 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.2211, allocations: 58.59 kB / 0.7689 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.822e-05/0.2212, allocations: 20.84 kB / 0.7689 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002137/0.2214, allocations: 170.2 kB / 0.7691 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.2215, allocations: 30.56 kB / 0.7691 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2215, allocations: 0 / 0.7691 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003905/0.2219, allocations: 101.6 kB / 0.7692 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.2219, allocations: 51.41 kB / 0.7692 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.18e-05/0.222, allocations: 109.8 kB / 0.7693 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.222, allocations: 29.7 kB / 0.7694 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.222, allocations: 88.14 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.2221, allocations: 7.938 kB / 0.7695 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.2221, allocations: 17.72 kB / 0.7695 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2222, allocations: 314.8 kB / 0.7698 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.735e-05/0.2223, allocations: 23.97 kB / 0.7698 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.718e-05/0.2224, allocations: 19.98 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.2226, allocations: 53.02 kB / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2226, allocations: 0 / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002199/0.2228, allocations: 77.59 kB / 0.7699 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2229, allocations: 8 kB / 0.7699 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2229, allocations: 0 / 0.7699 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2229, allocations: 0 / 0.7699 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.354e-05/0.223, allocations: 19.98 kB / 0.77 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.223, allocations: 0 / 0.77 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.057e-05/0.223, allocations: 11.94 kB / 0.77 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.2231, allocations: 0 / 0.77 GB, free: 4.48 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 0.0001152/0.2232, allocations: 118.4 kB / 0.7701 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2232, allocations: 0 / 0.7701 GB, free: 4.355 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.2235, allocations: 85.48 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2235, allocations: 7.938 kB / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2235, allocations: 0 / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2235, allocations: 3.984 kB / 0.7702 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/0.2237, allocations: 169.6 kB / 0.7703 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2237, allocations: 0 / 0.7703 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.962e-05/0.2238, allocations: 11.98 kB / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2238, allocations: 0 / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.2238, allocations: 0 / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2238, allocations: 0 / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2238, allocations: 4 kB / 0.7704 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.2241, allocations: 183.3 kB / 0.7705 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.2242, allocations: 85.03 kB / 0.7706 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.2242, allocations: 0 / 0.7706 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.2243, allocations: 4 kB / 0.7706 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.2243, allocations: 11.98 kB / 0.7706 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.2243, allocations: 0 / 0.7706 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.453e-05/0.2244, allocations: 91.27 kB / 0.7707 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.2244, allocations: 0 / 0.7707 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002464/0.2246, allocations: 16 kB / 0.7707 GB, free: 3.602 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.2253, allocations: 0.728 MB / 0.7714 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002314/0.2255, allocations: 47.89 kB / 0.7715 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2255, allocations: 0 / 0.7715 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.2256, allocations: 27.97 kB / 0.7715 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.2259, allocations: 7.344 kB / 0.7715 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.2274, allocations: 1.302 MB / 0.7728 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.2278, allocations: 0.6807 MB / 0.7735 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.319e-05/0.2278, allocations: 4.547 kB / 0.7735 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.2279, allocations: 19.42 kB / 0.7735 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.2279, allocations: 0 / 0.7735 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3467/0.5746, allocations: 1.928 MB / 0.7754 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.463/8.038, allocations: 10.22 kB / 0.7754 GB, free: 14.41 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)