Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 115 kB / 16.37 MB, free: 5.539 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.001072/0.001072, allocations: 189.4 kB / 17.3 MB, free: 5.18 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.254/1.254, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 272.5 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9277/0.9277, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 101.5 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1551, allocations: 86.98 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001597/0.1567, allocations: 0.5797 MB / 0.6822 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002333/0.1569, allocations: 59.97 kB / 0.6822 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.495e-05/0.157, allocations: 3.938 kB / 0.6822 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.098e-05/0.157, allocations: 0 / 0.6822 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.999e-06/0.157, allocations: 0 / 0.6822 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.1573, allocations: 11.98 kB / 0.6823 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.409e-05/0.1573, allocations: 35.95 kB / 0.6823 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.608e-05/0.1574, allocations: 0 / 0.6823 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.1574, allocations: 12 kB / 0.6823 GB, free: 6.738 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.602e-05/0.1574, allocations: 11.97 kB / 0.6823 GB, free: 6.727 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.1575, allocations: 8 kB / 0.6823 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.1575, allocations: 19.98 kB / 0.6823 GB, free: 6.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.523e-05/0.1576, allocations: 11.88 kB / 0.6823 GB, free: 6.688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.1576, allocations: 15.92 kB / 0.6824 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.912e-05/0.1577, allocations: 35.89 kB / 0.6824 GB, free: 6.637 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1577, allocations: 0 / 0.6824 GB, free: 6.637 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1577, allocations: 0 / 0.6824 GB, free: 6.637 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.1577, allocations: 0 / 0.6824 GB, free: 6.637 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0002769/0.158, allocations: 335.5 kB / 0.6827 GB, free: 6.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.158, allocations: 8.031 kB / 0.6827 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.1581, allocations: 4.938 kB / 0.6827 GB, free: 6.246 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.766e-05/0.1582, allocations: 172.4 kB / 0.6829 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.1582, allocations: 4.375 kB / 0.6829 GB, free: 6.035 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.1582, allocations: 4.375 kB / 0.6829 GB, free: 6.031 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1583, allocations: 58.23 kB / 0.683 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1583, allocations: 192 / 0.683 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.1583, allocations: 11.94 kB / 0.683 GB, free: 5.957 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1584, allocations: 7.938 kB / 0.683 GB, free: 5.949 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.1585, allocations: 107.8 kB / 0.6831 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.1586, allocations: 173.6 kB / 0.6832 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.1588, allocations: 78.47 kB / 0.6833 GB, free: 5.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.175e-05/0.1588, allocations: 28.84 kB / 0.6833 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/0.1591, allocations: 401.5 kB / 0.6837 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.1591, allocations: 34.56 kB / 0.6838 GB, free: 4.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 2.354e-06/0.1591, allocations: 0 / 0.6838 GB, free: 4.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002133/0.1593, allocations: 121.8 kB / 0.6839 GB, free: 4.855 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.1594, allocations: 59.34 kB / 0.6839 GB, free: 4.785 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.033e-05/0.1594, allocations: 97.77 kB / 0.684 GB, free: 4.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1594, allocations: 29.7 kB / 0.6841 GB, free: 4.645 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.986e-05/0.1595, allocations: 80.14 kB / 0.6841 GB, free: 4.562 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.1595, allocations: 19.75 kB / 0.6842 GB, free: 4.543 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.136e-05/0.1595, allocations: 29.7 kB / 0.6842 GB, free: 4.508 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.835e-05/0.1596, allocations: 322.8 kB / 0.6845 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.534e-05/0.1597, allocations: 19.98 kB / 0.6845 GB, free: 4.164 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.051e-05/0.1597, allocations: 15.98 kB / 0.6845 GB, free: 4.148 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.382e-05/0.1598, allocations: 64.78 kB / 0.6846 GB, free: 4.082 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1598, allocations: 0 / 0.6846 GB, free: 4.082 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001304/0.1599, allocations: 101.5 kB / 0.6847 GB, free: 3.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.16, allocations: 4 kB / 0.6847 GB, free: 3.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.16, allocations: 3.938 kB / 0.6847 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.16, allocations: 0 / 0.6847 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.908e-05/0.1601, allocations: 16 kB / 0.6847 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.1601, allocations: 0 / 0.6847 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.205e-05/0.1601, allocations: 11.92 kB / 0.6847 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1601, allocations: 0 / 0.6847 GB, free: 3.941 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001066/0.1602, allocations: 125.8 kB / 0.6848 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.1603, allocations: 11.89 kB / 0.6848 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.1605, allocations: 126.2 kB / 0.685 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1605, allocations: 0 / 0.685 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.1605, allocations: 4 kB / 0.685 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.1605, allocations: 0 / 0.685 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1606, allocations: 177.5 kB / 0.6851 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1606, allocations: 4 kB / 0.6851 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.663e-05/0.1607, allocations: 19.94 kB / 0.6852 GB, free: 3.414 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.1607, allocations: 3.938 kB / 0.6852 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.1607, allocations: 3.984 kB / 0.6852 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1607, allocations: 4 kB / 0.6852 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1607, allocations: 0 / 0.6852 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.1609, allocations: 117.1 kB / 0.6853 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.93e-05/0.1609, allocations: 88.97 kB / 0.6854 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.1609, allocations: 12 kB / 0.6854 GB, free: 3.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.457e-05/0.1609, allocations: 0 / 0.6854 GB, free: 3.152 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.161, allocations: 11.98 kB / 0.6854 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.161, allocations: 4 kB / 0.6854 GB, free: 3.137 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.561e-05/0.161, allocations: 75.28 kB / 0.6855 GB, free: 3.062 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.382e-06/0.161, allocations: 0 / 0.6855 GB, free: 3.062 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001909/0.1612, allocations: 19.94 kB / 0.6855 GB, free: 3.043 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.000148/0.1614, allocations: 114.2 kB / 0.6856 GB, free: 2.926 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.1615, allocations: 67.89 kB / 0.6857 GB, free: 2.859 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1615, allocations: 0 / 0.6857 GB, free: 2.859 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.028e-05/0.1616, allocations: 43.86 kB / 0.6857 GB, free: 2.816 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1617, allocations: 0 / 0.6857 GB, free: 2.816 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002335/0.1619, allocations: 148.9 kB / 0.6858 GB, free: 2.645 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.1621, allocations: 0.6807 MB / 0.6865 GB, free: 1.938 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.562e-05/0.1622, allocations: 39.94 kB / 0.6866 GB, free: 1.898 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.964e-05/0.1622, allocations: 11.44 kB / 0.6866 GB, free: 1.891 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1623, allocations: 0 / 0.6866 GB, free: 1.891 MB / 494.1 MB Notification: Performance of Templates: time 0.002405/0.1647, allocations: 0.6214 MB / 0.6872 GB, free: 1.273 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)