Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009864/0.0009864, allocations: 107.1 kB / 16.29 MB, free: 6.43 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.0009987/0.0009987, allocations: 184 kB / 17.22 MB, free: 5.934 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.191/1.191, 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.625/1.625, allocations: 292.3 MB / 0.5495 GB, free: 17.48 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.001419/0.001419, allocations: 71.91 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1818, allocations: 114.6 MB / 0.7841 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00251/0.1844, allocations: 1.502 MB / 0.7855 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002983/0.1847, allocations: 124.5 kB / 0.7857 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.22e-05/0.1847, allocations: 0 / 0.7857 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.554e-05/0.1848, allocations: 7.922 kB / 0.7857 GB, free: 2.207 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.598e-05/0.1848, allocations: 4 kB / 0.7857 GB, free: 2.203 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.185, allocations: 19.92 kB / 0.7857 GB, free: 2.184 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.183e-05/0.1851, allocations: 31.86 kB / 0.7857 GB, free: 2.152 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 7.817e-05/0.1852, allocations: 15.98 kB / 0.7857 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 4.372e-05/0.1852, allocations: 11.98 kB / 0.7857 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.1853, allocations: 19.92 kB / 0.7858 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.1853, allocations: 0 / 0.7858 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 5.305e-05/0.1853, allocations: 12 kB / 0.7858 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.309e-05/0.1853, allocations: 3.984 kB / 0.7858 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.1854, allocations: 15.92 kB / 0.7858 GB, free: 2.074 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 9.274e-05/0.1855, allocations: 35.89 kB / 0.7858 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1855, allocations: 0 / 0.7858 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.332e-06/0.1855, allocations: 0 / 0.7858 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.1855, allocations: 8 kB / 0.7858 GB, free: 2.031 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003952/0.1859, allocations: 343.7 kB / 0.7862 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.1859, allocations: 15.97 kB / 0.7862 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.559e-05/0.186, allocations: 0.9375 kB / 0.7862 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.801e-05/0.1861, allocations: 168.4 kB / 0.7863 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.1861, allocations: 384 / 0.7863 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.1861, allocations: 384 / 0.7863 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001644/0.1863, allocations: 66.17 kB / 0.7864 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.1863, allocations: 192 / 0.7864 GB, free: 1.355 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.1863, allocations: 3.938 kB / 0.7864 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1863, allocations: 0 / 0.7864 GB, free: 1.352 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.1865, allocations: 39.95 kB / 0.7864 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000303/0.1868, allocations: 264.9 kB / 0.7867 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.1871, allocations: 62.42 kB / 0.7868 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.652e-05/0.1872, allocations: 28.89 kB / 0.7868 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-05/0.1873, allocations: 85.09 kB / 0.7869 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.953e-05/0.1873, allocations: 38.56 kB / 0.7869 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1873, allocations: 0 / 0.7869 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003232/0.1877, allocations: 93.62 kB / 0.787 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.1877, allocations: 55.34 kB / 0.787 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.454e-05/0.1878, allocations: 109.8 kB / 0.7872 GB, free: 484 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1878, allocations: 25.7 kB / 0.7872 GB, free: 452 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.1878, allocations: 80.14 kB / 0.7873 GB, free: 368 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.1879, allocations: 11.84 kB / 0.7873 GB, free: 356 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.1879, allocations: 17.7 kB / 0.7873 GB, free: 332 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.188, allocations: 322.8 kB / 0.7876 GB, free: 0 / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2835/0.4715, allocations: 12.86 kB / 0.7876 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.81e-05/0.4716, allocations: 20.94 kB / 0.7876 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.4718, allocations: 44.73 kB / 0.7877 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4718, allocations: 3.188 kB / 0.7877 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001879/0.472, allocations: 76.14 kB / 0.7877 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.472, allocations: 8.844 kB / 0.7877 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.472, allocations: 1.406 kB / 0.7877 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.472, allocations: 2.719 kB / 0.7878 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.066e-05/0.4721, allocations: 8.547 kB / 0.7878 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.4721, allocations: 3.047 kB / 0.7878 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.947e-05/0.4722, allocations: 5.656 kB / 0.7878 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.79e-06/0.4722, allocations: 0 / 0.7878 GB, free: 48.49 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 (rea2Int.y,fac.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 4.953e-05/0.4722, allocations: 120.3 kB / 0.7879 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.4723, allocations: 2.656 kB / 0.7879 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.4725, allocations: 87.75 kB / 0.788 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4725, allocations: 0 / 0.788 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.4725, allocations: 2.375 kB / 0.788 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.4725, allocations: 0 / 0.788 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.4726, allocations: 165.3 kB / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.4726, allocations: 0 / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.28e-05/0.4727, allocations: 12.94 kB / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4727, allocations: 0 / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.4727, allocations: 6.344 kB / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.4727, allocations: 1.5 kB / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.4727, allocations: 1 kB / 0.7881 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.4729, allocations: 174.3 kB / 0.7883 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 1.295e-05/0.4729, allocations: 77.11 kB / 0.7884 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.473, allocations: 2.781 kB / 0.7884 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.361e-05/0.473, allocations: 6.812 kB / 0.7884 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.4731, allocations: 10.05 kB / 0.7884 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.4731, allocations: 4.328 kB / 0.7884 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.972e-05/0.4731, allocations: 85.53 kB / 0.7885 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4731, allocations: 0.8438 kB / 0.7885 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002093/0.4733, allocations: 14.97 kB / 0.7885 GB, free: 47.85 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.y,rea2Int.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 9.628e-05/0.4734, allocations: 101.5 kB / 0.7886 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001862/0.4736, allocations: 47.11 kB / 0.7887 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4736, allocations: 0 / 0.7887 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 7.674e-05/0.4737, allocations: 29 kB / 0.7887 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.474, allocations: 0.5 kB / 0.7887 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002157/0.4742, allocations: 114.3 kB / 0.7888 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.637e-05/0.4743, allocations: 0.6788 MB / 0.7895 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.47e-05/0.4743, allocations: 3.688 kB / 0.7895 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.177e-05/0.4744, allocations: 10.06 kB / 0.7895 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.4744, allocations: 3.344 kB / 0.7895 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of Templates: time 0.002192/0.4766, allocations: 0.7028 MB / 0.7902 GB, free: 46.97 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)