Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001154/0.001154, allocations: 100.6 kB / 16.27 MB, free: 6.418 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.001096/0.001096, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.816/1.816, allocations: 292.3 MB / 0.5495 GB, free: 17.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 67.91 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2285, allocations: 114.5 MB / 0.784 GB, free: 3.867 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001825/0.2304, allocations: 0.5864 MB / 0.7846 GB, free: 3.27 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002587/0.2307, allocations: 47.86 kB / 0.7847 GB, free: 3.223 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.017e-05/0.2307, allocations: 0 / 0.7847 GB, free: 3.223 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.2307, allocations: 3.938 kB / 0.7847 GB, free: 3.219 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.729e-06/0.2308, allocations: 0 / 0.7847 GB, free: 3.219 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.231, allocations: 19.92 kB / 0.7847 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 3.992e-05/0.231, allocations: 0 / 0.7847 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.497e-05/0.2311, allocations: 4 kB / 0.7847 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.01e-05/0.2311, allocations: 3.984 kB / 0.7847 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 2.156e-05/0.2311, allocations: 0 / 0.7847 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 9.889e-06/0.2312, allocations: 0 / 0.7847 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.003e-05/0.2312, allocations: 19.98 kB / 0.7847 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.648e-06/0.2313, allocations: 0 / 0.7847 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.072e-05/0.2313, allocations: 3.938 kB / 0.7847 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 8.601e-05/0.2314, allocations: 15.97 kB / 0.7847 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2314, allocations: 0 / 0.7847 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.422e-06/0.2314, allocations: 0 / 0.7847 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.2314, allocations: 0 / 0.7847 GB, free: 3.152 MB / 0.6544 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.0002942/0.2317, allocations: 311.6 kB / 0.785 GB, free: 2.797 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2317, allocations: 12.03 kB / 0.785 GB, free: 2.785 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.114e-05/0.2318, allocations: 0.9375 kB / 0.785 GB, free: 2.785 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.427e-05/0.2319, allocations: 168.4 kB / 0.7852 GB, free: 2.582 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.2319, allocations: 384 / 0.7852 GB, free: 2.582 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.2319, allocations: 4.375 kB / 0.7852 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.867e-05/0.232, allocations: 34.2 kB / 0.7852 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.232, allocations: 192 / 0.7852 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.232, allocations: 3.938 kB / 0.7852 GB, free: 2.535 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.2321, allocations: 0 / 0.7852 GB, free: 2.535 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.122e-05/0.2321, allocations: 7.984 kB / 0.7852 GB, free: 2.527 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000148/0.2322, allocations: 153.7 kB / 0.7854 GB, free: 2.328 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.867e-05/0.2323, allocations: 18.61 kB / 0.7854 GB, free: 2.301 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.015e-05/0.2323, allocations: 16.91 kB / 0.7854 GB, free: 2.281 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001638/0.2325, allocations: 77.11 kB / 0.7855 GB, free: 2.188 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2325, allocations: 38.5 kB / 0.7855 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 1.313e-06/0.2325, allocations: 3.938 kB / 0.7855 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.000143/0.2327, allocations: 41.62 kB / 0.7856 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.2327, allocations: 59.53 kB / 0.7856 GB, free: 2.02 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.88e-05/0.2328, allocations: 89.86 kB / 0.7857 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.2328, allocations: 25.7 kB / 0.7857 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 2.759e-05/0.2328, allocations: 80.14 kB / 0.7858 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2329, allocations: 3.906 kB / 0.7858 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.2329, allocations: 13.72 kB / 0.7858 GB, free: 1.785 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.233, allocations: 314.8 kB / 0.7861 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.369e-05/0.233, allocations: 7.984 kB / 0.7861 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-06/0.233, allocations: 4 kB / 0.7861 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.69e-05/0.2331, allocations: 20.73 kB / 0.7862 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2331, allocations: 0 / 0.7862 GB, free: 1.434 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.571e-05/0.2331, allocations: 37.7 kB / 0.7862 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2332, allocations: 4 kB / 0.7862 GB, free: 1.387 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.2332, allocations: 4 kB / 0.7862 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2332, allocations: 7.922 kB / 0.7862 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.542e-05/0.2333, allocations: 4 kB / 0.7862 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.2333, allocations: 4.094 kB / 0.7862 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.2333, allocations: 288 / 0.7862 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.2333, allocations: 0 / 0.7862 GB, free: 1.367 MB / 0.6544 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.536e-05/0.2334, allocations: 117.8 kB / 0.7863 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.2334, allocations: 0 / 0.7863 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.744e-05/0.2335, allocations: 48.69 kB / 0.7864 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2335, allocations: 0 / 0.7864 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.2335, allocations: 0 / 0.7864 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2335, allocations: 0 / 0.7864 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.276e-05/0.2336, allocations: 157.7 kB / 0.7865 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2336, allocations: 0 / 0.7865 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.964e-05/0.2336, allocations: 0 / 0.7865 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.2336, allocations: 4 kB / 0.7865 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.2336, allocations: 3.938 kB / 0.7865 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2337, allocations: 0 / 0.7865 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2337, allocations: 0 / 0.7865 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.572e-05/0.2337, allocations: 65.06 kB / 0.7866 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.928e-05/0.2338, allocations: 81.14 kB / 0.7867 GB, free: 0.7969 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.2338, allocations: 11.88 kB / 0.7867 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.2338, allocations: 0 / 0.7867 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.2338, allocations: 0 / 0.7867 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.2338, allocations: 3.984 kB / 0.7867 GB, free: 0.7812 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.827e-05/0.2339, allocations: 75.28 kB / 0.7868 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2339, allocations: 0 / 0.7868 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001816/0.2341, allocations: 8 kB / 0.7868 GB, free: 0.6992 MB / 0.6544 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.0001544/0.2342, allocations: 110.1 kB / 0.7869 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 7.823e-05/0.2343, allocations: 8 kB / 0.7869 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2343, allocations: 0 / 0.7869 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.325e-05/0.2343, allocations: 11.92 kB / 0.7869 GB, free: 0.5664 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.2345, allocations: 6.812 kB / 0.7869 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001907/0.2347, allocations: 98.69 kB / 0.787 GB, free: 444 kB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3246/0.5592, allocations: 0.6711 MB / 0.7877 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.5593, allocations: 10.12 kB / 0.7877 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of SimCode: time 9.02e-07/0.5593, allocations: 0 / 0.7877 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of Templates: time 0.001701/0.561, allocations: 460.8 kB / 0.7881 GB, free: 48.06 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)