Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 106.2 kB / 16.36 MB, free: 6.289 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.001143/0.001143, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.222/1.222, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002017/0.002017, allocations: 294.9 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8805/0.8805, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 94.39 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1527, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002777/0.1555, allocations: 1.526 MB / 0.6831 GB, free: 5.914 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003488/0.1559, allocations: 136.3 kB / 0.6832 GB, free: 5.777 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.403e-05/0.156, allocations: 0 / 0.6832 GB, free: 5.777 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/0.156, allocations: 3.938 kB / 0.6832 GB, free: 5.773 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.264e-05/0.156, allocations: 7.938 kB / 0.6832 GB, free: 5.766 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.1563, allocations: 31.95 kB / 0.6832 GB, free: 5.734 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.216e-05/0.1564, allocations: 35.91 kB / 0.6833 GB, free: 5.699 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.208e-05/0.1565, allocations: 12 kB / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.9e-05/0.1565, allocations: 15.92 kB / 0.6833 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.395e-05/0.1566, allocations: 23.91 kB / 0.6833 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.1566, allocations: 4 kB / 0.6833 GB, free: 5.645 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.197e-05/0.1567, allocations: 19.98 kB / 0.6834 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.381e-05/0.1567, allocations: 4 kB / 0.6834 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.1568, allocations: 27.86 kB / 0.6834 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1569, allocations: 43.81 kB / 0.6834 GB, free: 5.551 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1569, allocations: 0 / 0.6834 GB, free: 5.551 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1569, allocations: 0 / 0.6834 GB, free: 5.551 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1569, allocations: 4 kB / 0.6834 GB, free: 5.547 MB / 494.1 MB 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.0005221/0.1574, allocations: 355.4 kB / 0.6838 GB, free: 5.148 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1575, allocations: 8.031 kB / 0.6838 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.1575, allocations: 4.938 kB / 0.6838 GB, free: 5.137 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.1577, allocations: 164.3 kB / 0.6839 GB, free: 4.938 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.1577, allocations: 12.36 kB / 0.6839 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1577, allocations: 384 / 0.684 GB, free: 4.926 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.1579, allocations: 66.22 kB / 0.684 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1579, allocations: 192 / 0.684 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.1579, allocations: 3.938 kB / 0.684 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.158, allocations: 3.938 kB / 0.684 GB, free: 4.848 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.1581, allocations: 47.89 kB / 0.6841 GB, free: 4.801 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.1586, allocations: 292.7 kB / 0.6843 GB, free: 4.465 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.1589, allocations: 54.55 kB / 0.6844 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.159, allocations: 32.83 kB / 0.6844 GB, free: 4.367 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.1593, allocations: 397.5 kB / 0.6848 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.1593, allocations: 34.56 kB / 0.6848 GB, free: 3.844 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1593, allocations: 4 kB / 0.6848 GB, free: 3.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003587/0.1597, allocations: 93.53 kB / 0.6849 GB, free: 3.742 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.1597, allocations: 51.41 kB / 0.685 GB, free: 3.68 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.665e-05/0.1598, allocations: 109.8 kB / 0.6851 GB, free: 3.562 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.1598, allocations: 29.7 kB / 0.6851 GB, free: 3.527 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.45e-05/0.1599, allocations: 88.14 kB / 0.6852 GB, free: 3.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.233e-05/0.1599, allocations: 3.906 kB / 0.6852 GB, free: 3.434 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.16, allocations: 21.7 kB / 0.6852 GB, free: 3.406 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1601, allocations: 322.7 kB / 0.6855 GB, free: 3.082 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-05/0.1602, allocations: 19.98 kB / 0.6856 GB, free: 3.062 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.33e-05/0.1602, allocations: 19.97 kB / 0.6856 GB, free: 3.043 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.1604, allocations: 48.81 kB / 0.6856 GB, free: 2.992 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1604, allocations: 0 / 0.6856 GB, free: 2.992 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001926/0.1606, allocations: 73.66 kB / 0.6857 GB, free: 2.914 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1606, allocations: 10.34 kB / 0.6857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1606, allocations: 0 / 0.6857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1607, allocations: 0 / 0.6857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.848e-05/0.1607, allocations: 11.98 kB / 0.6857 GB, free: 2.895 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1608, allocations: 3.938 kB / 0.6857 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.771e-05/0.1608, allocations: 15.89 kB / 0.6857 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.1608, allocations: 0 / 0.6857 GB, free: 2.875 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.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.38e-05/0.1609, allocations: 117.8 kB / 0.6858 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.161, allocations: 0 / 0.6858 GB, free: 2.75 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002475/0.1612, allocations: 82.19 kB / 0.6859 GB, free: 2.66 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1612, allocations: 4.031 kB / 0.6859 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1612, allocations: 4 kB / 0.6859 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1612, allocations: 0 / 0.6859 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.1614, allocations: 173.5 kB / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1614, allocations: 0 / 0.6861 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.211e-05/0.1615, allocations: 19.92 kB / 0.6861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.1615, allocations: 0 / 0.6861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1615, allocations: 0 / 0.6861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.1616, allocations: 7.938 kB / 0.6861 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1616, allocations: 3.984 kB / 0.6861 GB, free: 2.402 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.1618, allocations: 175.4 kB / 0.6863 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.1619, allocations: 85.05 kB / 0.6864 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1619, allocations: 0 / 0.6864 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.982e-05/0.162, allocations: 7.984 kB / 0.6864 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.162, allocations: 7.984 kB / 0.6864 GB, free: 2.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.162, allocations: 0 / 0.6864 GB, free: 2.098 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.167e-05/0.1621, allocations: 91.27 kB / 0.6865 GB, free: 2.008 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1621, allocations: 4 kB / 0.6865 GB, free: 2.004 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1623, allocations: 8 kB / 0.6865 GB, free: 1.996 MB / 494.1 MB 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,falFac.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.0001376/0.1625, allocations: 110.1 kB / 0.6866 GB, free: 1.883 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002016/0.1627, allocations: 43.89 kB / 0.6866 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1627, allocations: 0 / 0.6866 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.984e-05/0.1628, allocations: 27.97 kB / 0.6867 GB, free: 1.812 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.163, allocations: 15.94 kB / 0.6867 GB, free: 1.797 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000269/0.1633, allocations: 117.6 kB / 0.6868 GB, free: 1.656 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1635, allocations: 0.6807 MB / 0.6874 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.54e-05/0.1636, allocations: 0 / 0.6874 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.1636, allocations: 19.42 kB / 0.6875 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1636, allocations: 4 kB / 0.6875 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of Templates: time 0.002819/0.1664, allocations: 0.767 MB / 0.6882 GB, free: 168 kB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)