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.001405/0.001405, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002108/0.002108, allocations: 193.9 kB / 16.14 MB, free: 6.707 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.347/1.347, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001978/0.001978, allocations: 283.1 kB / 290.2 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 96.02 kB / 0.5945 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.156, allocations: 86.98 MB / 0.6794 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001619/0.1576, allocations: 0.6355 MB / 0.6801 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002977/0.1579, allocations: 55.78 kB / 0.6801 GB, free: 480 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.427e-05/0.1579, allocations: 0 / 0.6801 GB, free: 480 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.158, allocations: 4 kB / 0.6801 GB, free: 476 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.668e-06/0.158, allocations: 0 / 0.6801 GB, free: 476 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.1582, allocations: 11.98 kB / 0.6801 GB, free: 464 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.121e-05/0.1583, allocations: 36.66 kB / 0.6802 GB, free: 428 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.1583, allocations: 3.984 kB / 0.6802 GB, free: 424 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.038e-05/0.1584, allocations: 13.69 kB / 0.6802 GB, free: 412 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.648e-05/0.1584, allocations: 8 kB / 0.6802 GB, free: 404 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.1584, allocations: 3.984 kB / 0.6802 GB, free: 400 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.1585, allocations: 11.98 kB / 0.6802 GB, free: 388 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.781e-05/0.1585, allocations: 18.95 kB / 0.6802 GB, free: 372 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.46e-05/0.1586, allocations: 15.88 kB / 0.6802 GB, free: 356 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.596e-05/0.1587, allocations: 35.83 kB / 0.6803 GB, free: 320 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1587, allocations: 0 / 0.6803 GB, free: 320 kB / 478.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.1587, allocations: 0 / 0.6803 GB, free: 320 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.367e-06/0.1587, allocations: 3.938 kB / 0.6803 GB, free: 316 kB / 478.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.0003393/0.159, allocations: 345.7 kB / 0.6806 GB, free: 15.92 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1591, allocations: 8.812 kB / 0.6806 GB, free: 15.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.1591, allocations: 8.844 kB / 0.6806 GB, free: 15.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.221e-05/0.1592, allocations: 162.1 kB / 0.6808 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1592, allocations: 8.375 kB / 0.6808 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.1593, allocations: 4.375 kB / 0.6808 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.1594, allocations: 62.22 kB / 0.6809 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.1594, allocations: 0.8438 kB / 0.6809 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.1594, allocations: 3.938 kB / 0.6809 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1594, allocations: 0.625 kB / 0.6809 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.1596, allocations: 104.7 kB / 0.681 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001709/0.1598, allocations: 169.7 kB / 0.6811 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.1599, allocations: 76.16 kB / 0.6812 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.916e-05/0.1599, allocations: 32.84 kB / 0.6812 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.1603, allocations: 406.5 kB / 0.6816 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1603, allocations: 38.56 kB / 0.6817 GB, free: 14.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.1603, allocations: 0 / 0.6817 GB, free: 14.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002489/0.1606, allocations: 113.5 kB / 0.6818 GB, free: 14.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.1606, allocations: 55.41 kB / 0.6818 GB, free: 14.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.139e-05/0.1607, allocations: 97.98 kB / 0.6819 GB, free: 14.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.1607, allocations: 25.7 kB / 0.6819 GB, free: 14.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.603e-05/0.1607, allocations: 84.08 kB / 0.682 GB, free: 14.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.1608, allocations: 23.73 kB / 0.682 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.1608, allocations: 33.7 kB / 0.6821 GB, free: 14.19 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1609, allocations: 314.8 kB / 0.6824 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.891e-05/0.161, allocations: 19.98 kB / 0.6824 GB, free: 13.86 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-05/0.161, allocations: 23.98 kB / 0.6824 GB, free: 13.83 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.211e-05/0.1611, allocations: 61.48 kB / 0.6825 GB, free: 13.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1611, allocations: 0 / 0.6825 GB, free: 13.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001501/0.1613, allocations: 105.4 kB / 0.6826 GB, free: 13.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.1613, allocations: 4 kB / 0.6826 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1613, allocations: 7.938 kB / 0.6826 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1613, allocations: 0 / 0.6826 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.1614, allocations: 23.98 kB / 0.6826 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1615, allocations: 0 / 0.6826 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/0.1615, allocations: 7.875 kB / 0.6826 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1615, allocations: 4 kB / 0.6826 GB, free: 13.61 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.0001194/0.1616, allocations: 127.1 kB / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.1616, allocations: 3.906 kB / 0.6827 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.1619, allocations: 125.5 kB / 0.6829 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1619, allocations: 4 kB / 0.6829 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1619, allocations: 7.922 kB / 0.6829 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1619, allocations: 0 / 0.6829 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.162, allocations: 173.5 kB / 0.683 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.162, allocations: 0 / 0.683 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.954e-05/0.1621, allocations: 27.92 kB / 0.6831 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.1621, allocations: 3.938 kB / 0.6831 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.1621, allocations: 4 kB / 0.6831 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1621, allocations: 0 / 0.6831 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1621, allocations: 0 / 0.6831 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.1623, allocations: 117.1 kB / 0.6832 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.1624, allocations: 92.89 kB / 0.6833 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1624, allocations: 4 kB / 0.6833 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.431e-05/0.1624, allocations: 0 / 0.6833 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.415e-05/0.1624, allocations: 7.984 kB / 0.6833 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.1624, allocations: 4 kB / 0.6833 GB, free: 12.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.75e-05/0.1625, allocations: 79.22 kB / 0.6834 GB, free: 12.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1625, allocations: 4 kB / 0.6834 GB, free: 12.74 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.1627, allocations: 16 kB / 0.6834 GB, free: 12.73 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.0001589/0.1629, allocations: 115.2 kB / 0.6835 GB, free: 12.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001328/0.163, allocations: 55.97 kB / 0.6835 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.163, allocations: 0 / 0.6835 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/0.1631, allocations: 39.91 kB / 0.6836 GB, free: 12.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.1632, allocations: 14.84 kB / 0.6836 GB, free: 12.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002326/0.1634, allocations: 150.7 kB / 0.6837 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1637, allocations: 0.6809 MB / 0.6844 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.449e-05/0.1638, allocations: 39.92 kB / 0.6844 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.27e-05/0.1638, allocations: 15.44 kB / 0.6845 GB, free: 11.57 MB / 494.1 MB Notification: Performance of SimCode: time 2e-07/0.1638, allocations: 0 / 0.6845 GB, free: 11.57 MB / 494.1 MB Notification: Performance of Templates: time 0.002442/0.1663, allocations: 0.599 MB / 0.685 GB, free: 10.97 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)