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.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001948/0.001948, allocations: 195.2 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.349/1.349, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001993/0.001993, allocations: 283 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9625/0.9625, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 89.56 kB / 0.5945 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1535, allocations: 86.99 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002534/0.1561, allocations: 1.583 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003683/0.1565, allocations: 133 kB / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.1565, allocations: 0 / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.421e-05/0.1566, allocations: 1.406 kB / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.937e-05/0.1566, allocations: 4 kB / 0.6811 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002199/0.1568, allocations: 27.92 kB / 0.6811 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.875e-05/0.1569, allocations: 40.55 kB / 0.6812 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.888e-05/0.157, allocations: 15.94 kB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.105e-05/0.157, allocations: 15.98 kB / 0.6812 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.631e-05/0.1571, allocations: 15.92 kB / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.1571, allocations: 4 kB / 0.6812 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.1572, allocations: 15.98 kB / 0.6813 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.548e-05/0.1572, allocations: 11.92 kB / 0.6813 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.689e-05/0.1572, allocations: 15.92 kB / 0.6813 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.827e-05/0.1573, allocations: 36.17 kB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1573, allocations: 0 / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1573, allocations: 4 kB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.1573, allocations: 0 / 0.6813 GB, free: 15.27 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.0004206/0.1578, allocations: 351.4 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.1578, allocations: 12.03 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.1578, allocations: 0.9375 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.55e-05/0.1579, allocations: 172.3 kB / 0.6818 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.158, allocations: 4.375 kB / 0.6818 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.158, allocations: 8.312 kB / 0.6818 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.1582, allocations: 70.16 kB / 0.6819 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.1582, allocations: 192 / 0.6819 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.1582, allocations: 3.938 kB / 0.6819 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.1582, allocations: 4 kB / 0.6819 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.1584, allocations: 43.95 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003667/0.1588, allocations: 284.8 kB / 0.6822 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.1591, allocations: 62.47 kB / 0.6823 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.499e-05/0.1592, allocations: 24.91 kB / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002525/0.1595, allocations: 401.5 kB / 0.6827 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.1595, allocations: 30.56 kB / 0.6827 GB, free: 13.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1595, allocations: 4 kB / 0.6827 GB, free: 13.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003737/0.1599, allocations: 97.53 kB / 0.6828 GB, free: 13.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.1599, allocations: 59.34 kB / 0.6829 GB, free: 13.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.165e-05/0.16, allocations: 106.1 kB / 0.683 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.16, allocations: 25.7 kB / 0.683 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.1601, allocations: 84.66 kB / 0.6831 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.286e-05/0.1601, allocations: 11.84 kB / 0.6831 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.1601, allocations: 21.72 kB / 0.6831 GB, free: 13.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.733e-05/0.1602, allocations: 318.8 kB / 0.6834 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.499e-05/0.1603, allocations: 19.98 kB / 0.6834 GB, free: 12.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-05/0.1604, allocations: 19.97 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.1606, allocations: 44.83 kB / 0.6835 GB, free: 12.72 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1606, allocations: 4 kB / 0.6835 GB, free: 12.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002122/0.1608, allocations: 77.58 kB / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1609, allocations: 4 kB / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1609, allocations: 0 / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.1609, allocations: 0 / 0.6836 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.161, allocations: 11.98 kB / 0.6836 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.161, allocations: 4.062 kB / 0.6836 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.352e-05/0.1611, allocations: 11.91 kB / 0.6836 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.1611, allocations: 8 kB / 0.6836 GB, free: 12.59 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 6.969e-05/0.1611, allocations: 115.1 kB / 0.6837 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.1612, allocations: 4 kB / 0.6837 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.1614, allocations: 85.48 kB / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1614, allocations: 0 / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1615, allocations: 4 kB / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1615, allocations: 0 / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.1616, allocations: 181.5 kB / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1616, allocations: 0 / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.787e-05/0.1617, allocations: 15.98 kB / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1617, allocations: 0 / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1617, allocations: 0 / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1617, allocations: 0 / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1617, allocations: 384 / 0.684 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.162, allocations: 183.3 kB / 0.6842 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.162, allocations: 77.11 kB / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.1621, allocations: 4 kB / 0.6843 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.1622, allocations: 7.984 kB / 0.6843 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.1622, allocations: 7.984 kB / 0.6843 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.1622, allocations: 4 kB / 0.6843 GB, free: 11.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.755e-05/0.1623, allocations: 83.28 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1623, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.1625, allocations: 8 kB / 0.6844 GB, free: 11.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: 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.0001449/0.1626, allocations: 115.2 kB / 0.6845 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.1629, allocations: 43.95 kB / 0.6845 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1629, allocations: 0 / 0.6845 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.853e-05/0.163, allocations: 23.98 kB / 0.6845 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.1633, allocations: 13.75 kB / 0.6846 GB, free: 11.53 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002756/0.1636, allocations: 135.2 kB / 0.6847 GB, free: 11.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.1638, allocations: 0.6809 MB / 0.6853 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.077e-05/0.1638, allocations: 4 kB / 0.6853 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.1638, allocations: 11.44 kB / 0.6854 GB, free: 10.65 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1638, allocations: 4 kB / 0.6854 GB, free: 10.64 MB / 494.1 MB Notification: Performance of Templates: time 0.002612/0.1665, allocations: 0.6708 MB / 0.686 GB, free: 9.977 MB / 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)