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.001334/0.001334, allocations: 104 kB / 16.27 MB, free: 5.973 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.001705/0.001706, allocations: 193.3 kB / 17.2 MB, free: 5.598 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.593/1.593, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.745/1.745, allocations: 292.3 MB / 0.5495 GB, free: 17.41 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.002774/0.002774, allocations: 74.34 kB / 0.6722 GB, free: 6.559 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3065, allocations: 114.6 MB / 0.784 GB, free: 3.887 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003506/0.31, allocations: 1.501 MB / 0.7855 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0003997/0.3104, allocations: 124.5 kB / 0.7856 GB, free: 2.242 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.374e-05/0.3105, allocations: 4 kB / 0.7856 GB, free: 2.238 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.3106, allocations: 3.938 kB / 0.7856 GB, free: 2.234 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.197e-05/0.3106, allocations: 4 kB / 0.7856 GB, free: 2.23 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.3109, allocations: 23.91 kB / 0.7856 GB, free: 2.207 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.859e-05/0.311, allocations: 31.86 kB / 0.7857 GB, free: 2.176 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.3111, allocations: 11.98 kB / 0.7857 GB, free: 2.164 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 4.228e-05/0.3111, allocations: 8 kB / 0.7857 GB, free: 2.156 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.706e-05/0.3112, allocations: 23.91 kB / 0.7857 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.3112, allocations: 4 kB / 0.7857 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.786e-05/0.3113, allocations: 15.98 kB / 0.7857 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.3113, allocations: 0 / 0.7857 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.3113, allocations: 11.94 kB / 0.7857 GB, free: 2.102 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.3115, allocations: 39.88 kB / 0.7858 GB, free: 2.062 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.3115, allocations: 3.938 kB / 0.7858 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3115, allocations: 0 / 0.7858 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.3115, allocations: 0 / 0.7858 GB, free: 2.059 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.0005/0.312, allocations: 347.7 kB / 0.7861 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3121, allocations: 16.03 kB / 0.7861 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.3121, allocations: 0.9375 kB / 0.7861 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.3122, allocations: 164.4 kB / 0.7863 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.3122, allocations: 4.375 kB / 0.7863 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.3123, allocations: 384 / 0.7863 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.3125, allocations: 62.17 kB / 0.7864 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3125, allocations: 4.125 kB / 0.7864 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3125, allocations: 3.938 kB / 0.7864 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3125, allocations: 0 / 0.7864 GB, free: 1.375 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.3127, allocations: 43.95 kB / 0.7864 GB, free: 1.332 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003848/0.3131, allocations: 264.9 kB / 0.7867 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.3135, allocations: 66.41 kB / 0.7867 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.798e-05/0.3136, allocations: 24.91 kB / 0.7867 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.3137, allocations: 85.11 kB / 0.7868 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.3137, allocations: 34.55 kB / 0.7869 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3137, allocations: 0 / 0.7869 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0004115/0.3142, allocations: 85.64 kB / 0.7869 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.3142, allocations: 55.41 kB / 0.787 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.3143, allocations: 109.8 kB / 0.7871 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.3143, allocations: 25.7 kB / 0.7871 GB, free: 484 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.3144, allocations: 84.14 kB / 0.7872 GB, free: 396 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.3144, allocations: 7.844 kB / 0.7872 GB, free: 388 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.516e-05/0.3145, allocations: 17.7 kB / 0.7872 GB, free: 364 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3146, allocations: 314.8 kB / 0.7875 GB, free: 40 kB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/0.3147, allocations: 15.98 kB / 0.7875 GB, free: 24 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4577/0.7724, allocations: 25.86 kB / 0.7876 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.7728, allocations: 43.53 kB / 0.7876 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-06/0.7728, allocations: 3.75 kB / 0.7876 GB, free: 48.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002744/0.7731, allocations: 77.2 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.7731, allocations: 2.719 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.7731, allocations: 4.094 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.7732, allocations: 2.719 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.7733, allocations: 20.47 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.7733, allocations: 0 / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.906e-05/0.7733, allocations: 3.062 kB / 0.7877 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.7734, allocations: 2.906 kB / 0.7877 GB, free: 48.45 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 8.605e-05/0.7735, allocations: 117.4 kB / 0.7878 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.7735, allocations: 2.219 kB / 0.7878 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.7738, allocations: 80.81 kB / 0.7879 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.7738, allocations: 2.812 kB / 0.7879 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.7738, allocations: 4.719 kB / 0.7879 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7738, allocations: 0 / 0.7879 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.774, allocations: 166.6 kB / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.774, allocations: 3.438 kB / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.076e-05/0.7741, allocations: 13.39 kB / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.7741, allocations: 5.438 kB / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.7741, allocations: 1.594 kB / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.7741, allocations: 0 / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.7741, allocations: 0 / 0.7881 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.7743, allocations: 176.7 kB / 0.7883 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.979e-05/0.7744, allocations: 80.3 kB / 0.7883 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.7744, allocations: 5.375 kB / 0.7883 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.15e-05/0.7745, allocations: 5.766 kB / 0.7884 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.815e-05/0.7746, allocations: 9.531 kB / 0.7884 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.7746, allocations: 5.406 kB / 0.7884 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.482e-05/0.7746, allocations: 78.03 kB / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7746, allocations: 2.75 kB / 0.7884 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002297/0.7748, allocations: 9.344 kB / 0.7885 GB, free: 47.81 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 0.0001557/0.775, allocations: 103.2 kB / 0.7886 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.7752, allocations: 48.89 kB / 0.7886 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7753, allocations: 1.938 kB / 0.7886 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.908e-05/0.7753, allocations: 24.25 kB / 0.7886 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.7757, allocations: 4.719 kB / 0.7886 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003789/0.7761, allocations: 140.3 kB / 0.7888 GB, free: 47.6 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.7762, allocations: 0.6786 MB / 0.7894 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/0.7763, allocations: 16.06 kB / 0.7894 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of SimCode: time 6.41e-07/0.7763, allocations: 0 / 0.7894 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of Templates: time 0.002147/0.7784, allocations: 0.7234 MB / 0.7901 GB, free: 46.9 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)