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.001285/0.001285, allocations: 111.2 kB / 16.37 MB, free: 6.48 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.00123/0.00123, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.233/1.233, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002142/0.002142, allocations: 274.1 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8861/0.8861, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 98.39 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1725, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001868/0.1745, allocations: 0.572 MB / 0.6822 GB, free: 6.879 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002563/0.1747, allocations: 59.91 kB / 0.6822 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.5e-05/0.1748, allocations: 3.938 kB / 0.6822 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.286e-05/0.1748, allocations: 4 kB / 0.6822 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.94e-06/0.1748, allocations: 0 / 0.6822 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.175, allocations: 11.98 kB / 0.6823 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.104e-05/0.1751, allocations: 4 kB / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.768e-05/0.1751, allocations: 0 / 0.6823 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.608e-05/0.1752, allocations: 4 kB / 0.6823 GB, free: 6.793 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.015e-05/0.1752, allocations: 0 / 0.6823 GB, free: 6.793 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.1752, allocations: 3.984 kB / 0.6823 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.25e-05/0.1753, allocations: 11.98 kB / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.1753, allocations: 0 / 0.6823 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.913e-05/0.1753, allocations: 7.938 kB / 0.6823 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.782e-05/0.1754, allocations: 11.98 kB / 0.6823 GB, free: 6.758 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1754, allocations: 4 kB / 0.6823 GB, free: 6.754 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.586e-06/0.1754, allocations: 0 / 0.6823 GB, free: 6.754 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1754, allocations: 3.938 kB / 0.6823 GB, free: 6.75 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002881/0.1757, allocations: 311.6 kB / 0.6826 GB, free: 6.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1758, allocations: 8.031 kB / 0.6826 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.1758, allocations: 0.9375 kB / 0.6826 GB, free: 6.387 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.751e-05/0.1759, allocations: 164.4 kB / 0.6828 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.1759, allocations: 8.375 kB / 0.6828 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.1759, allocations: 384 / 0.6828 GB, free: 6.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.146e-05/0.176, allocations: 34.27 kB / 0.6828 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.176, allocations: 192 / 0.6828 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.176, allocations: 3.938 kB / 0.6828 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.176, allocations: 0 / 0.6828 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.134e-05/0.1761, allocations: 7.984 kB / 0.6828 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.1762, allocations: 145.7 kB / 0.683 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.622e-05/0.1763, allocations: 26.55 kB / 0.683 GB, free: 5.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.972e-05/0.1763, allocations: 16.84 kB / 0.683 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001493/0.1765, allocations: 81.17 kB / 0.6831 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.1765, allocations: 30.56 kB / 0.6831 GB, free: 5.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.524e-06/0.1765, allocations: 0 / 0.6831 GB, free: 5.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001324/0.1766, allocations: 53.5 kB / 0.6832 GB, free: 5.688 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1767, allocations: 55.41 kB / 0.6832 GB, free: 5.621 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.735e-05/0.1767, allocations: 89.86 kB / 0.6833 GB, free: 5.523 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.1767, allocations: 29.83 kB / 0.6833 GB, free: 5.488 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.406e-05/0.1768, allocations: 80.14 kB / 0.6834 GB, free: 5.406 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.1768, allocations: 3.938 kB / 0.6834 GB, free: 5.402 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.1768, allocations: 17.72 kB / 0.6834 GB, free: 5.379 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.1769, allocations: 310.8 kB / 0.6837 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.207e-05/0.177, allocations: 3.984 kB / 0.6837 GB, free: 5.062 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.346e-06/0.177, allocations: 7.938 kB / 0.6837 GB, free: 5.055 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.022e-05/0.177, allocations: 16.92 kB / 0.6837 GB, free: 5.035 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.177, allocations: 0 / 0.6837 GB, free: 5.035 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.552e-05/0.1771, allocations: 41.55 kB / 0.6838 GB, free: 4.988 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1771, allocations: 10.34 kB / 0.6838 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1771, allocations: 3.984 kB / 0.6838 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1771, allocations: 3.938 kB / 0.6838 GB, free: 4.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.955e-05/0.1772, allocations: 4 kB / 0.6838 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1772, allocations: 0 / 0.6838 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.189e-05/0.1772, allocations: 0 / 0.6838 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-06/0.1772, allocations: 0 / 0.6838 GB, free: 4.969 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 (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 7.988e-05/0.1773, allocations: 113.9 kB / 0.6839 GB, free: 4.848 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-06/0.1773, allocations: 4 kB / 0.6839 GB, free: 4.844 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.113e-05/0.1774, allocations: 48.73 kB / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1774, allocations: 4 kB / 0.684 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1774, allocations: 0 / 0.684 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1774, allocations: 0 / 0.684 GB, free: 4.785 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.567e-05/0.1775, allocations: 153.6 kB / 0.6841 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.1775, allocations: 0 / 0.6841 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.199e-05/0.1776, allocations: 4 kB / 0.6841 GB, free: 4.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1776, allocations: 4.031 kB / 0.6841 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1776, allocations: 7.938 kB / 0.6841 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.1776, allocations: 0 / 0.6841 GB, free: 4.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1776, allocations: 4 kB / 0.6841 GB, free: 4.566 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.674e-05/0.1777, allocations: 61.12 kB / 0.6842 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.757e-05/0.1777, allocations: 77.11 kB / 0.6843 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.1777, allocations: 3.938 kB / 0.6843 GB, free: 4.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.1777, allocations: 7.969 kB / 0.6843 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.436e-05/0.1778, allocations: 4 kB / 0.6843 GB, free: 4.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.1778, allocations: 3.984 kB / 0.6843 GB, free: 4.375 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.594e-05/0.1778, allocations: 79.28 kB / 0.6844 GB, free: 4.297 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1778, allocations: 0 / 0.6844 GB, free: 4.297 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001807/0.178, allocations: 4 kB / 0.6844 GB, free: 4.293 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 (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.0001388/0.1781, allocations: 106.1 kB / 0.6845 GB, free: 4.18 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.881e-05/0.1782, allocations: 8 kB / 0.6845 GB, free: 4.172 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.1782, allocations: 4.062 kB / 0.6845 GB, free: 4.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.479e-05/0.1783, allocations: 7.984 kB / 0.6845 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.1784, allocations: 8 kB / 0.6845 GB, free: 4.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001792/0.1786, allocations: 73.08 kB / 0.6846 GB, free: 4.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.1788, allocations: 0.6768 MB / 0.6852 GB, free: 3.352 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.166e-05/0.1788, allocations: 0 / 0.6852 GB, free: 3.352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.376e-05/0.1789, allocations: 15.38 kB / 0.6852 GB, free: 3.336 MB / 494.1 MB Notification: Performance of SimCode: time 1.512e-06/0.1789, allocations: 0 / 0.6852 GB, free: 3.336 MB / 494.1 MB Notification: Performance of Templates: time 0.001987/0.1809, allocations: 328.6 kB / 0.6855 GB, free: 3.016 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)