Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.732/1.732, allocations: 288.3 MB / 303.2 MB, free: 8.137 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001299/0.001299, allocations: 173.1 kB / 371.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.846/1.846, allocations: 205.4 MB / 0.6306 GB, free: 10.03 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000899/0.0008991, allocations: 105.9 kB / 0.7439 GB, free: 5.961 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004691/0.0004694, allocations: 17.31 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.234, allocations: 115.3 MB / 0.9794 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000717/0.2348, allocations: 322 kB / 0.9797 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002103/0.235, allocations: 45.55 kB / 0.9798 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.273e-05/0.2351, allocations: 4 kB / 0.9798 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.656e-06/0.2351, allocations: 0 / 0.9798 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.318e-06/0.2351, allocations: 0 / 0.9798 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.2353, allocations: 3.984 kB / 0.9798 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.927e-05/0.2353, allocations: 4 kB / 0.9798 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.264e-05/0.2354, allocations: 4 kB / 0.9798 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.399e-05/0.2354, allocations: 4 kB / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.2354, allocations: 4 kB / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.977e-06/0.2354, allocations: 0 / 0.9798 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.118e-05/0.2355, allocations: 11.92 kB / 0.9798 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.2355, allocations: 7.922 kB / 0.9798 GB, free: 27.31 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.681e-05/0.2355, allocations: 25.7 kB / 0.9798 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.488e-05/0.2356, allocations: 4 kB / 0.9798 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.2356, allocations: 0 / 0.9798 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.794e-06/0.2356, allocations: 0 / 0.9798 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.317e-06/0.2356, allocations: 0 / 0.9798 GB, free: 27.27 MB / 0.6198 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.0002227/0.2359, allocations: 316.5 kB / 0.9801 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2359, allocations: 12.03 kB / 0.9802 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.2359, allocations: 0 / 0.9802 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.401e-05/0.236, allocations: 163 kB / 0.9803 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.236, allocations: 0 / 0.9803 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.236, allocations: 0 / 0.9803 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.871e-05/0.2361, allocations: 37.67 kB / 0.9804 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.2361, allocations: 0 / 0.9804 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.2361, allocations: 0 / 0.9804 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2362, allocations: 8 kB / 0.9804 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.426e-05/0.2362, allocations: 7.938 kB / 0.9804 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001146/0.2364, allocations: 153.6 kB / 0.9805 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.2364, allocations: 22.61 kB / 0.9805 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.2366, allocations: 81.17 kB / 0.9806 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.2366, allocations: 30.56 kB / 0.9806 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.2366, allocations: 4 kB / 0.9806 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001136/0.2367, allocations: 45.62 kB / 0.9807 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.2367, allocations: 51.41 kB / 0.9807 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.098e-05/0.2368, allocations: 89.86 kB / 0.9808 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.362e-06/0.2368, allocations: 29.7 kB / 0.9809 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.342e-05/0.2368, allocations: 80.14 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.2368, allocations: 3.906 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-06/0.2368, allocations: 3.938 kB / 0.9809 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.2369, allocations: 319 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.2369, allocations: 11.92 kB / 0.9813 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-06/0.2369, allocations: 0 / 0.9813 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.704e-05/0.2369, allocations: 4 kB / 0.9813 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2369, allocations: 0 / 0.9813 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.886e-05/0.237, allocations: 41.66 kB / 0.9813 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.237, allocations: 7.938 kB / 0.9813 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.237, allocations: 0 / 0.9813 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.237, allocations: 3.984 kB / 0.9813 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.536e-05/0.2371, allocations: 8.094 kB / 0.9813 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.2371, allocations: 0 / 0.9813 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.393e-05/0.2371, allocations: 288 / 0.9813 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-06/0.2371, allocations: 0 / 0.9813 GB, free: 25.54 MB / 0.6198 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 4.762e-05/0.2372, allocations: 113.8 kB / 0.9814 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-06/0.2372, allocations: 3.953 kB / 0.9814 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.615e-05/0.2373, allocations: 48.81 kB / 0.9815 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2373, allocations: 0 / 0.9815 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2373, allocations: 0 / 0.9815 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.2373, allocations: 4.031 kB / 0.9815 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.892e-05/0.2374, allocations: 149.7 kB / 0.9816 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.2374, allocations: 0 / 0.9816 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-05/0.2374, allocations: 7.938 kB / 0.9816 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2374, allocations: 0 / 0.9816 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.2374, allocations: 3.953 kB / 0.9816 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.2374, allocations: 0 / 0.9816 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2374, allocations: 0 / 0.9816 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.817e-05/0.2375, allocations: 69.12 kB / 0.9817 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.2375, allocations: 77.11 kB / 0.9818 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.2375, allocations: 4 kB / 0.9818 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.122e-05/0.2376, allocations: 3.953 kB / 0.9818 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.2376, allocations: 0 / 0.9818 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.2376, allocations: 3.984 kB / 0.9818 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.423e-05/0.2376, allocations: 75.28 kB / 0.9819 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.2376, allocations: 0 / 0.9819 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00019/0.2378, allocations: 4 kB / 0.9819 GB, free: 24.88 MB / 0.6198 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.0001431/0.238, allocations: 111.2 kB / 0.982 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.965e-05/0.238, allocations: 11.94 kB / 0.982 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2381, allocations: 0 / 0.982 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.368e-05/0.2381, allocations: 7.984 kB / 0.982 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.217e-05/0.2382, allocations: 4 kB / 0.982 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.2383, allocations: 74.7 kB / 0.9821 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.2385, allocations: 0.6811 MB / 0.9827 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.345e-05/0.2385, allocations: 4 kB / 0.9827 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/0.2385, allocations: 11.44 kB / 0.9827 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.2385, allocations: 0 / 0.9827 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of Templates: time 0.001971/0.2405, allocations: 305 kB / 0.983 GB, free: 23.62 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)