Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005173/0.005173, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001273/0.001273, allocations: 188 kB / 16.67 MB, free: 5.977 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002178/0.002178, allocations: 286.8 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9466/0.9466, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 99.84 kB / 0.6815 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1615, allocations: 86.97 MB / 0.7664 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001626/0.1632, allocations: 0.5866 MB / 0.767 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002675/0.1634, allocations: 43.86 kB / 0.767 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.1635, allocations: 3.938 kB / 0.767 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.1635, allocations: 0 / 0.767 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.1635, allocations: 0 / 0.767 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.1637, allocations: 15.97 kB / 0.7671 GB, free: 7.738 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.564e-05/0.1638, allocations: 12 kB / 0.7671 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.282e-05/0.1638, allocations: 0 / 0.7671 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.498e-05/0.1638, allocations: 7.938 kB / 0.7671 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.1639, allocations: 0 / 0.7671 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.386e-06/0.1639, allocations: 0 / 0.7671 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.093e-05/0.164, allocations: 11.98 kB / 0.7671 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.136e-06/0.164, allocations: 0 / 0.7671 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.747e-05/0.164, allocations: 3.984 kB / 0.7671 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.513e-05/0.1641, allocations: 7.984 kB / 0.7671 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1641, allocations: 4 kB / 0.7671 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.532e-06/0.1641, allocations: 7.938 kB / 0.7671 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.1641, allocations: 0 / 0.7671 GB, free: 7.684 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002735/0.1644, allocations: 315.5 kB / 0.7674 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1644, allocations: 8.031 kB / 0.7674 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.1645, allocations: 4.938 kB / 0.7674 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.82e-05/0.1646, allocations: 168.3 kB / 0.7676 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.1646, allocations: 4.375 kB / 0.7676 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.1646, allocations: 384 / 0.7676 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.759e-05/0.1647, allocations: 34.27 kB / 0.7676 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1647, allocations: 192 / 0.7676 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1647, allocations: 7.938 kB / 0.7676 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1647, allocations: 0 / 0.7676 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.359e-05/0.1648, allocations: 7.984 kB / 0.7676 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.1649, allocations: 141.7 kB / 0.7678 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.588e-05/0.165, allocations: 26.55 kB / 0.7678 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.662e-05/0.165, allocations: 12.91 kB / 0.7678 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.1651, allocations: 85.11 kB / 0.7679 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1652, allocations: 30.56 kB / 0.7679 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 2.745e-06/0.1652, allocations: 3.984 kB / 0.7679 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001347/0.1653, allocations: 49.56 kB / 0.768 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.1654, allocations: 51.41 kB / 0.768 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.568e-05/0.1654, allocations: 97.77 kB / 0.7681 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.1654, allocations: 25.7 kB / 0.7681 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.926e-05/0.1655, allocations: 84.27 kB / 0.7682 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.827e-05/0.1655, allocations: 7.938 kB / 0.7682 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.1655, allocations: 13.72 kB / 0.7682 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.1656, allocations: 310.8 kB / 0.7685 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.376e-05/0.1656, allocations: 3.984 kB / 0.7685 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.768e-06/0.1657, allocations: 4 kB / 0.7685 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.494e-05/0.1657, allocations: 12.86 kB / 0.7686 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1657, allocations: 0 / 0.7686 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.301e-05/0.1658, allocations: 45.7 kB / 0.7686 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1658, allocations: 5.875 kB / 0.7686 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1658, allocations: 7.984 kB / 0.7686 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1658, allocations: 7.875 kB / 0.7686 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.956e-05/0.1659, allocations: 0 / 0.7686 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1659, allocations: 4 kB / 0.7686 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.361e-05/0.1659, allocations: 0 / 0.7686 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-06/0.1659, allocations: 0 / 0.7686 GB, free: 5.891 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.77e-05/0.166, allocations: 106.5 kB / 0.7687 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.166, allocations: 4.031 kB / 0.7687 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.192e-05/0.1661, allocations: 48.75 kB / 0.7688 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1661, allocations: 0 / 0.7688 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1661, allocations: 4 kB / 0.7688 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1661, allocations: 0 / 0.7688 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.879e-05/0.1662, allocations: 145.7 kB / 0.7689 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1662, allocations: 3.938 kB / 0.7689 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.427e-05/0.1662, allocations: 7.938 kB / 0.7689 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1663, allocations: 0 / 0.7689 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.1663, allocations: 7.969 kB / 0.7689 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1663, allocations: 4 kB / 0.7689 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1663, allocations: 4 kB / 0.7689 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.409e-05/0.1664, allocations: 65.12 kB / 0.769 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.512e-05/0.1664, allocations: 81.02 kB / 0.7691 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.1664, allocations: 3.938 kB / 0.7691 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.06e-05/0.1664, allocations: 0 / 0.7691 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.405e-05/0.1665, allocations: 4 kB / 0.7691 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.1665, allocations: 8.016 kB / 0.7691 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.282e-05/0.1665, allocations: 75.28 kB / 0.7692 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.1665, allocations: 0 / 0.7692 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001847/0.1667, allocations: 4 kB / 0.7692 GB, free: 5.227 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001414/0.1668, allocations: 103.2 kB / 0.7693 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.409e-05/0.1669, allocations: 12 kB / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1669, allocations: 0 / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.594e-05/0.167, allocations: 12.05 kB / 0.7693 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1671, allocations: 4 kB / 0.7693 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001842/0.1673, allocations: 78.83 kB / 0.7694 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.1675, allocations: 0.6806 MB / 0.77 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.228e-05/0.1675, allocations: 0 / 0.77 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.1675, allocations: 11.44 kB / 0.77 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of SimCode: time 2e-07/0.1675, allocations: 0 / 0.77 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of Templates: time 0.002143/0.1697, allocations: 329.1 kB / 0.7704 GB, free: 3.945 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)