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: translateModel(BuildingSystems.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") translateModel(BuildingSystems.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005262/0.005263, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001202/0.001202, allocations: 195.3 kB / 16.67 MB, free: 5.52 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.294/1.294, allocations: 222.9 MB / 240.4 MB, free: 4.078 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002058/0.002058, allocations: 282.8 kB / 290.8 MB, free: 1.68 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9124/0.9124, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 99.8 kB / 0.6815 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1485, allocations: 86.98 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Binomial): time 0.002356/0.1508, allocations: 1.532 MB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004151/0.1513, allocations: 184.3 kB / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.357e-05/0.1513, allocations: 0 / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.512e-05/0.1514, allocations: 3.938 kB / 0.7681 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.481e-05/0.1514, allocations: 3.938 kB / 0.7681 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.1517, allocations: 47.88 kB / 0.7681 GB, free: 6.66 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.552e-05/0.1518, allocations: 31.92 kB / 0.7682 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.251e-05/0.1519, allocations: 19.97 kB / 0.7682 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.838e-05/0.1519, allocations: 11.94 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.186e-05/0.152, allocations: 27.92 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.152, allocations: 4 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.1521, allocations: 47.95 kB / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.1521, allocations: 11.97 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.949e-05/0.1522, allocations: 19.88 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.1523, allocations: 67.72 kB / 0.7684 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1523, allocations: 0 / 0.7684 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1523, allocations: 0 / 0.7684 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.1524, allocations: 0 / 0.7684 GB, free: 6.422 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.000424/0.1528, allocations: 355.4 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1528, allocations: 16.02 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.1529, allocations: 4.844 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.831e-05/0.153, allocations: 168.3 kB / 0.7689 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.153, allocations: 384 / 0.7689 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.153, allocations: 4.375 kB / 0.7689 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.1532, allocations: 62.22 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1532, allocations: 192 / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.1532, allocations: 11.88 kB / 0.7689 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1532, allocations: 4 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.1534, allocations: 47.89 kB / 0.769 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003555/0.1538, allocations: 276.7 kB / 0.7693 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003469/0.1542, allocations: 58.53 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.1543, allocations: 28.91 kB / 0.7693 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.1545, allocations: 174.2 kB / 0.7695 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.1546, allocations: 34.5 kB / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1546, allocations: 0 / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003965/0.155, allocations: 85.64 kB / 0.7696 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.155, allocations: 55.41 kB / 0.7697 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.474e-05/0.1551, allocations: 113.8 kB / 0.7698 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.1551, allocations: 25.7 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.032e-05/0.1551, allocations: 92.03 kB / 0.7699 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.1552, allocations: 7.906 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.1552, allocations: 13.72 kB / 0.7699 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.13e-05/0.1553, allocations: 322.8 kB / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-05/0.1554, allocations: 19.98 kB / 0.7702 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.286e-05/0.1555, allocations: 20.16 kB / 0.7703 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.1557, allocations: 52.75 kB / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1557, allocations: 0 / 0.7703 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002175/0.1559, allocations: 73.66 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1559, allocations: 4 kB / 0.7704 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1559, allocations: 7.984 kB / 0.7704 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1559, allocations: 0 / 0.7704 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.059e-05/0.156, allocations: 12 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.156, allocations: 3.984 kB / 0.7704 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.738e-05/0.1561, allocations: 4 kB / 0.7704 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.1561, allocations: 4 kB / 0.7704 GB, free: 4.039 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.256e-05/0.1562, allocations: 118.4 kB / 0.7705 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.1562, allocations: 15.83 kB / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/0.1565, allocations: 81.55 kB / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1565, allocations: 0 / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1565, allocations: 0 / 0.7706 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1565, allocations: 7.938 kB / 0.7706 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.1567, allocations: 169.5 kB / 0.7708 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1567, allocations: 4 kB / 0.7708 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.311e-05/0.1568, allocations: 7.984 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1568, allocations: 4 kB / 0.7708 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1568, allocations: 4 kB / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1568, allocations: 0 / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1568, allocations: 0 / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002539/0.1571, allocations: 179.4 kB / 0.771 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/0.1571, allocations: 81.02 kB / 0.7711 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.1571, allocations: 4 kB / 0.7711 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-05/0.1572, allocations: 7.984 kB / 0.7711 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.1573, allocations: 4 kB / 0.7711 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.1573, allocations: 0 / 0.7711 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.921e-05/0.1573, allocations: 91.27 kB / 0.7712 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1573, allocations: 0 / 0.7712 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002507/0.1576, allocations: 24 kB / 0.7712 GB, free: 3.148 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.0001508/0.1577, allocations: 111.3 kB / 0.7713 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002308/0.158, allocations: 55.89 kB / 0.7713 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.158, allocations: 0 / 0.7713 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.1581, allocations: 28.3 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.1584, allocations: 5.656 kB / 0.7714 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002684/0.1586, allocations: 117.6 kB / 0.7715 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.1588, allocations: 0.6846 MB / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.1589, allocations: 4.641 kB / 0.7722 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.801e-05/0.1589, allocations: 15.42 kB / 0.7722 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.1589, allocations: 0 / 0.7722 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of Templates: time 0.003074/0.162, allocations: 0.9837 MB / 0.7731 GB, free: 1.094 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Binomial.pipe 2>&1)