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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8845/0.8845, allocations: 143.4 MB / 158.3 MB, free: 5.805 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 173.1 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.673/1.673, allocations: 223.2 MB / 447.7 MB, free: 4.773 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009585/0.0009585, allocations: 88.33 kB / 0.5187 GB, free: 1.141 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 273.1 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004496, allocations: 14 kB / 0.6929 GB, free: 59.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1814, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.3804, allocations: 109.3 MB / 0.8805 GB, free: 320 kB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.3807, allocations: 75.95 kB / 0.8806 GB, free: 244 kB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3504/0.7311, allocations: 1.33 MB / 0.8819 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7311, allocations: 2.719 kB / 0.8819 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.7312, allocations: 0 / 0.8819 GB, free: 109.4 MB / 0.5417 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.0003274/0.7315, allocations: 375.5 kB / 0.8822 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.7315, allocations: 11.56 kB / 0.8823 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.7316, allocations: 30.56 kB / 0.8823 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.466e-05/0.7316, allocations: 3.188 kB / 0.8823 GB, free: 109 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.154e-05/0.7317, allocations: 168.7 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.7317, allocations: 6.859 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.7317, allocations: 3.938 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.7319, allocations: 71.12 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.7319, allocations: 1.062 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.732, allocations: 3.5 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.732, allocations: 1.312 kB / 0.8825 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.7322, allocations: 52.75 kB / 0.8826 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.7325, allocations: 280.3 kB / 0.8829 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.7328, allocations: 64.84 kB / 0.8829 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000275/0.7331, allocations: 414.6 kB / 0.8833 GB, free: 108 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.7331, allocations: 34.5 kB / 0.8833 GB, free: 108 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.7331, allocations: 0 / 0.8833 GB, free: 108 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0003672/0.7335, allocations: 117.1 kB / 0.8835 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.17e-05/0.7335, allocations: 54.12 kB / 0.8835 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.222e-05/0.7336, allocations: 104.6 kB / 0.8836 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.7336, allocations: 26.73 kB / 0.8836 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.192e-05/0.7336, allocations: 91.03 kB / 0.8837 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.7337, allocations: 7.406 kB / 0.8837 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-06/0.7337, allocations: 0 / 0.8837 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.7337, allocations: 325.3 kB / 0.884 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.069e-05/0.7338, allocations: 20.47 kB / 0.8841 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-05/0.7339, allocations: 25.98 kB / 0.8841 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.965e-05/0.734, allocations: 30.86 kB / 0.8841 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.734, allocations: 0 / 0.8841 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002058/0.7342, allocations: 84.77 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.7343, allocations: 5.875 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.7343, allocations: 4 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.7343, allocations: 4.094 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.468e-05/0.7344, allocations: 14.28 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.7344, allocations: 4.188 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.014e-05/0.7345, allocations: 8.969 kB / 0.8842 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.7345, allocations: 0 / 0.8842 GB, free: 107.3 MB / 0.5417 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,bin.k) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/0.7345, allocations: 115 kB / 0.8843 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.7346, allocations: 10.59 kB / 0.8844 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002591/0.7348, allocations: 93.56 kB / 0.8844 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7349, allocations: 0 / 0.8844 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7349, allocations: 0 / 0.8844 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.7349, allocations: 3.938 kB / 0.8844 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.735, allocations: 175 kB / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.735, allocations: 0 / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.85e-05/0.7351, allocations: 19.02 kB / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.7351, allocations: 0 / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.7351, allocations: 0 / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.7351, allocations: 0 / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7351, allocations: 0 / 0.8846 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.7354, allocations: 187.4 kB / 0.8848 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.173e-05/0.7354, allocations: 87.48 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.7354, allocations: 0.875 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.426e-05/0.7355, allocations: 9.062 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.7356, allocations: 10.33 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.7356, allocations: 2.969 kB / 0.8849 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.438e-05/0.7356, allocations: 85.22 kB / 0.885 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.91e-07/0.7356, allocations: 6.844 kB / 0.885 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002241/0.7358, allocations: 29.28 kB / 0.885 GB, free: 106.6 MB / 0.5417 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 (bin.y,bin.k) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00047/0.7363, allocations: 0.7406 MB / 0.8858 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002075/0.7365, allocations: 58.55 kB / 0.8858 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7365, allocations: 3.156 kB / 0.8858 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.095e-05/0.7366, allocations: 28.98 kB / 0.8858 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.7368, allocations: 5.938 kB / 0.8858 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007508/0.7376, allocations: 468.9 kB / 0.8863 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.7377, allocations: 0.6871 MB / 0.887 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.145e-05/0.7377, allocations: 3.031 kB / 0.887 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.7378, allocations: 14.81 kB / 0.887 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of SimCode: time 2.1e-07/0.7378, allocations: 0 / 0.887 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01242/0.7502, allocations: 1.609 MB / 0.8886 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/0.7504, allocations: 180.6 kB / 0.8887 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/2.333, allocations: 4 kB / 0.8887 GB, free: 104.4 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Binomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)