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.0007736/0.0007735, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008555/0.0008556, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.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.827/1.827, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0006504/0.0006508, allocations: 20.86 kB / 0.6737 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2701, allocations: 116.3 MB / 0.7873 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0009119/0.2711, allocations: 323.5 kB / 0.7876 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002944/0.2714, allocations: 35.91 kB / 0.7876 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.469e-05/0.2714, allocations: 0 / 0.7876 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.2715, allocations: 0 / 0.7876 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.883e-06/0.2715, allocations: 4 kB / 0.7876 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.2717, allocations: 12 kB / 0.7877 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.359e-05/0.2718, allocations: 11.97 kB / 0.7877 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.396e-05/0.2719, allocations: 0 / 0.7877 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.214e-05/0.2719, allocations: 3.938 kB / 0.7877 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.434e-05/0.2719, allocations: 4 kB / 0.7877 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.2719, allocations: 0 / 0.7877 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.516e-05/0.272, allocations: 8 kB / 0.7877 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.111e-06/0.2721, allocations: 0 / 0.7877 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.2721, allocations: 25.7 kB / 0.7877 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.894e-05/0.2722, allocations: 7.984 kB / 0.7877 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2722, allocations: 4 kB / 0.7877 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.234e-06/0.2722, allocations: 0 / 0.7877 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.2722, allocations: 0 / 0.7877 GB, free: 11.48 MB / 0.6075 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.0003378/0.2725, allocations: 315.4 kB / 0.788 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.2726, allocations: 8.031 kB / 0.788 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.2726, allocations: 0 / 0.788 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.2728, allocations: 167 kB / 0.7882 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.2728, allocations: 0 / 0.7882 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.2728, allocations: 4 kB / 0.7882 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.2729, allocations: 33.64 kB / 0.7882 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2729, allocations: 4 kB / 0.7882 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.273, allocations: 4 kB / 0.7882 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.273, allocations: 0 / 0.7882 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.662e-05/0.273, allocations: 7.984 kB / 0.7882 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.2732, allocations: 149.6 kB / 0.7884 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.314e-05/0.2733, allocations: 26.55 kB / 0.7884 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.397e-05/0.2733, allocations: 16.91 kB / 0.7884 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001849/0.2735, allocations: 81.09 kB / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.2735, allocations: 38.5 kB / 0.7885 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.073e-06/0.2735, allocations: 0 / 0.7885 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001548/0.2737, allocations: 41.69 kB / 0.7886 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.2737, allocations: 51.41 kB / 0.7886 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.817e-05/0.2738, allocations: 89.86 kB / 0.7887 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.2738, allocations: 25.7 kB / 0.7887 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.2738, allocations: 84.27 kB / 0.7888 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.2739, allocations: 7.906 kB / 0.7888 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-06/0.2739, allocations: 0 / 0.7888 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.274, allocations: 314.8 kB / 0.7891 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-06/0.274, allocations: 0 / 0.7891 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.274, allocations: 4 kB / 0.7891 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.493e-05/0.274, allocations: 11.92 kB / 0.7891 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2741, allocations: 0 / 0.7891 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.656e-05/0.2741, allocations: 45.72 kB / 0.7892 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.2741, allocations: 8 kB / 0.7892 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.2742, allocations: 0 / 0.7892 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.2742, allocations: 0 / 0.7892 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.659e-05/0.2742, allocations: 4 kB / 0.7892 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2743, allocations: 7.922 kB / 0.7892 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.479e-05/0.2743, allocations: 288 / 0.7892 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-06/0.2743, allocations: 0 / 0.7892 GB, free: 9.727 MB / 0.6075 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.72e-05/0.2744, allocations: 114.4 kB / 0.7893 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-06/0.2744, allocations: 7.984 kB / 0.7893 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.2745, allocations: 48.75 kB / 0.7894 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2745, allocations: 0 / 0.7894 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2746, allocations: 0 / 0.7894 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2746, allocations: 0 / 0.7894 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.2747, allocations: 145.7 kB / 0.7895 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2747, allocations: 0 / 0.7895 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.558e-05/0.2747, allocations: 7.984 kB / 0.7895 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.2747, allocations: 3.953 kB / 0.7895 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.2747, allocations: 4 kB / 0.7895 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2747, allocations: 4.031 kB / 0.7895 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2748, allocations: 0 / 0.7895 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.764e-05/0.2748, allocations: 65.06 kB / 0.7896 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.2749, allocations: 77.11 kB / 0.7897 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.2749, allocations: 3.953 kB / 0.7897 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/0.2749, allocations: 0 / 0.7897 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.275, allocations: 7.938 kB / 0.7897 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.275, allocations: 12.02 kB / 0.7897 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.907e-05/0.275, allocations: 75.28 kB / 0.7897 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.11e-07/0.275, allocations: 0 / 0.7897 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002027/0.2752, allocations: 4 kB / 0.7898 GB, free: 9.051 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001686/0.2754, allocations: 103.2 kB / 0.7899 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.294e-05/0.2755, allocations: 12 kB / 0.7899 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2755, allocations: 0 / 0.7899 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.66e-05/0.2755, allocations: 8 kB / 0.7899 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2757, allocations: 6.875 kB / 0.7899 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000203/0.2759, allocations: 90.59 kB / 0.79 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.2762, allocations: 0.6731 MB / 0.7906 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.797e-05/0.2762, allocations: 3.984 kB / 0.7906 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.684e-05/0.2762, allocations: 11.44 kB / 0.7906 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.2762, allocations: 0 / 0.7906 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of Templates: time 0.002137/0.2783, allocations: 301 kB / 0.7909 GB, free: 7.793 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: