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.001074/0.001074, allocations: 110.2 kB / 15.99 MB, free: 6.352 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.001086/0.001086, allocations: 199.5 kB / 16.91 MB, free: 6.188 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.429/1.429, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.645/1.645, allocations: 292.3 MB / 0.5492 GB, free: 13.62 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.001383/0.001383, allocations: 72.97 kB / 0.6717 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2289, allocations: 114.5 MB / 0.7835 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001779/0.2307, allocations: 0.6586 MB / 0.7842 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002379/0.231, allocations: 47.84 kB / 0.7842 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.309e-05/0.231, allocations: 0 / 0.7842 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/0.231, allocations: 0 / 0.7842 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.414e-06/0.231, allocations: 0 / 0.7842 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.2313, allocations: 11.94 kB / 0.7842 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.933e-05/0.2313, allocations: 4 kB / 0.7842 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.107e-05/0.2314, allocations: 7.984 kB / 0.7842 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.425e-05/0.2314, allocations: 0 / 0.7842 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 1.99e-05/0.2314, allocations: 3.984 kB / 0.7842 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.2314, allocations: 0 / 0.7842 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.95e-05/0.2315, allocations: 16 kB / 0.7843 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.2315, allocations: 0 / 0.7843 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.835e-05/0.2315, allocations: 3.938 kB / 0.7843 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 6.204e-05/0.2316, allocations: 7.984 kB / 0.7843 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2316, allocations: 0 / 0.7843 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2316, allocations: 0 / 0.7843 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.126e-06/0.2316, allocations: 0 / 0.7843 GB, free: 13.13 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.0003103/0.2319, allocations: 311.6 kB / 0.7846 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.232, allocations: 8.031 kB / 0.7846 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.749e-05/0.232, allocations: 0.9375 kB / 0.7846 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.208e-05/0.2321, allocations: 172.4 kB / 0.7847 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-06/0.2321, allocations: 384 / 0.7847 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.2321, allocations: 384 / 0.7847 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.312e-05/0.2322, allocations: 34.2 kB / 0.7848 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2323, allocations: 192 / 0.7848 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.2323, allocations: 3.938 kB / 0.7848 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.2323, allocations: 0 / 0.7848 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.86e-05/0.2323, allocations: 11.98 kB / 0.7848 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.2325, allocations: 153.6 kB / 0.7849 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.126e-05/0.2325, allocations: 34.61 kB / 0.785 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.785e-05/0.2326, allocations: 4.859 kB / 0.785 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.2327, allocations: 85.16 kB / 0.785 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.2327, allocations: 34.5 kB / 0.7851 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.2327, allocations: 0 / 0.7851 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001576/0.2329, allocations: 45.62 kB / 0.7851 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.233, allocations: 59.53 kB / 0.7852 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.06e-05/0.233, allocations: 89.86 kB / 0.7853 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.233, allocations: 25.7 kB / 0.7853 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.2331, allocations: 84.08 kB / 0.7854 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.2331, allocations: 3.906 kB / 0.7854 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.2331, allocations: 17.72 kB / 0.7854 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2332, allocations: 310.8 kB / 0.7857 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.2333, allocations: 0 / 0.7857 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-06/0.2333, allocations: 11.98 kB / 0.7857 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.399e-05/0.2333, allocations: 16.8 kB / 0.7857 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2333, allocations: 0 / 0.7857 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.128e-05/0.2334, allocations: 33.7 kB / 0.7857 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2334, allocations: 8 kB / 0.7858 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2334, allocations: 0 / 0.7858 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.2334, allocations: 3.938 kB / 0.7858 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.802e-05/0.2335, allocations: 7.984 kB / 0.7858 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.2335, allocations: 0 / 0.7858 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.34e-05/0.2335, allocations: 4.375 kB / 0.7858 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-06/0.2335, allocations: 0 / 0.7858 GB, free: 11.34 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 (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.73e-05/0.2336, allocations: 113.8 kB / 0.7859 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.2336, allocations: 4 kB / 0.7859 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.543e-05/0.2337, allocations: 48.69 kB / 0.7859 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2337, allocations: 4 kB / 0.7859 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2337, allocations: 0 / 0.7859 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.2337, allocations: 0 / 0.7859 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.457e-05/0.2338, allocations: 149.7 kB / 0.7861 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2339, allocations: 0 / 0.7861 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.056e-05/0.2339, allocations: 4 kB / 0.7861 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2339, allocations: 0 / 0.7861 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.2339, allocations: 3.938 kB / 0.7861 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.2339, allocations: 4 kB / 0.7861 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2339, allocations: 0 / 0.7861 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.429e-05/0.234, allocations: 65.06 kB / 0.7861 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.234, allocations: 81.14 kB / 0.7862 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.245e-05/0.234, allocations: 7.938 kB / 0.7862 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.2341, allocations: 7.922 kB / 0.7862 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.2341, allocations: 8 kB / 0.7862 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.2341, allocations: 0 / 0.7862 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.021e-05/0.2341, allocations: 79.27 kB / 0.7863 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2341, allocations: 3.938 kB / 0.7863 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002035/0.2344, allocations: 8 kB / 0.7863 GB, free: 10.66 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 (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.0001488/0.2345, allocations: 103.2 kB / 0.7864 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 6.937e-05/0.2346, allocations: 8 kB / 0.7864 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.2346, allocations: 0 / 0.7864 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.424e-05/0.2346, allocations: 15.92 kB / 0.7865 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.2347, allocations: 4 kB / 0.7865 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001963/0.2349, allocations: 113.2 kB / 0.7866 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.2352, allocations: 0.669 MB / 0.7872 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.527e-05/0.2353, allocations: 15.55 kB / 0.7872 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2353, allocations: 0 / 0.7872 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of Templates: time 0.001575/0.2368, allocations: 457.1 kB / 0.7877 GB, free: 9.219 MB / 0.6075 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)