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.001007/0.001008, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001029/0.001029, allocations: 177.3 kB / 15.94 MB, free: 228 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.564/1.564, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.773/1.773, allocations: 292.5 MB / 0.5497 GB, free: 14.61 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.0007978/0.000798, allocations: 18.88 kB / 0.6736 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3005, allocations: 116.3 MB / 0.7871 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0008573/0.3014, allocations: 317.8 kB / 0.7874 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002677/0.3017, allocations: 45.55 kB / 0.7875 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.711e-05/0.3017, allocations: 0 / 0.7875 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.3017, allocations: 7.938 kB / 0.7875 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.3018, allocations: 0 / 0.7875 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.302, allocations: 4 kB / 0.7875 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.742e-05/0.302, allocations: 4 kB / 0.7875 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.261e-05/0.3021, allocations: 0 / 0.7875 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.914e-05/0.3021, allocations: 0 / 0.7875 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.041e-05/0.3022, allocations: 4 kB / 0.7875 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.3022, allocations: 4 kB / 0.7875 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.835e-05/0.3023, allocations: 11.92 kB / 0.7875 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.827e-06/0.3023, allocations: 3.984 kB / 0.7875 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.3023, allocations: 25.7 kB / 0.7875 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.217e-05/0.3024, allocations: 4 kB / 0.7875 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3024, allocations: 4 kB / 0.7875 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.344e-06/0.3024, allocations: 0 / 0.7875 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.3024, allocations: 0 / 0.7875 GB, free: 11.52 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.0003759/0.3028, allocations: 311.4 kB / 0.7878 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.3029, allocations: 16.09 kB / 0.7879 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.3029, allocations: 0 / 0.7879 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.3031, allocations: 167 kB / 0.788 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.3031, allocations: 0 / 0.788 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.3031, allocations: 0 / 0.788 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.3033, allocations: 37.69 kB / 0.788 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3033, allocations: 0 / 0.788 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3033, allocations: 3.938 kB / 0.788 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.3033, allocations: 0 / 0.788 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.038e-05/0.3034, allocations: 4 kB / 0.7881 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002166/0.3036, allocations: 161.6 kB / 0.7882 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.89e-05/0.3037, allocations: 22.55 kB / 0.7882 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002049/0.3039, allocations: 85.16 kB / 0.7883 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.3039, allocations: 30.56 kB / 0.7883 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.3039, allocations: 0 / 0.7883 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001897/0.3041, allocations: 37.7 kB / 0.7884 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.3042, allocations: 55.53 kB / 0.7884 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.124e-05/0.3042, allocations: 89.86 kB / 0.7885 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3042, allocations: 25.7 kB / 0.7885 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.995e-05/0.3043, allocations: 88.08 kB / 0.7886 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.3043, allocations: 7.891 kB / 0.7886 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.3043, allocations: 4 kB / 0.7886 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3045, allocations: 310.8 kB / 0.7889 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.3045, allocations: 3.938 kB / 0.7889 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.743e-06/0.3045, allocations: 8 kB / 0.7889 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.444e-05/0.3045, allocations: 4 kB / 0.7889 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3045, allocations: 0 / 0.7889 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.385e-05/0.3046, allocations: 45.64 kB / 0.789 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3046, allocations: 4 kB / 0.789 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3046, allocations: 0 / 0.789 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3047, allocations: 0 / 0.789 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.484e-05/0.3047, allocations: 7.984 kB / 0.789 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3047, allocations: 3.984 kB / 0.789 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.3048, allocations: 4.375 kB / 0.789 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.3048, allocations: 4 kB / 0.789 GB, free: 9.773 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.402e-05/0.3049, allocations: 117.7 kB / 0.7891 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-06/0.3049, allocations: 3.953 kB / 0.7891 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.973e-05/0.305, allocations: 44.81 kB / 0.7892 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.305, allocations: 0 / 0.7892 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.305, allocations: 0 / 0.7892 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.305, allocations: 0 / 0.7892 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.3051, allocations: 153.7 kB / 0.7893 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3051, allocations: 4.031 kB / 0.7893 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.858e-05/0.3052, allocations: 0 / 0.7893 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.3052, allocations: 4 kB / 0.7893 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.3052, allocations: 3.953 kB / 0.7893 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3052, allocations: 0 / 0.7893 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3052, allocations: 0 / 0.7893 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.242e-05/0.3053, allocations: 65.06 kB / 0.7894 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.362e-05/0.3053, allocations: 81.08 kB / 0.7895 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.3053, allocations: 8 kB / 0.7895 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.3054, allocations: 3.953 kB / 0.7895 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.3054, allocations: 3.984 kB / 0.7895 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.3054, allocations: 0 / 0.7895 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.705e-05/0.3054, allocations: 75.28 kB / 0.7896 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3054, allocations: 0 / 0.7896 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002137/0.3057, allocations: 4 kB / 0.7896 GB, free: 9.105 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.0001765/0.3058, allocations: 111.2 kB / 0.7897 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 6.987e-05/0.3059, allocations: 15.92 kB / 0.7897 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3059, allocations: 0 / 0.7897 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.449e-05/0.3059, allocations: 4 kB / 0.7897 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.079e-05/0.306, allocations: 4 kB / 0.7897 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001827/0.3062, allocations: 74.77 kB / 0.7898 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.3065, allocations: 0.677 MB / 0.7904 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.544e-05/0.3065, allocations: 4 kB / 0.7904 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.644e-05/0.3065, allocations: 11.56 kB / 0.7904 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.3065, allocations: 0 / 0.7904 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of Templates: time 0.002169/0.3087, allocations: 301.1 kB / 0.7907 GB, free: 7.852 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: