Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.283/1.283, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009452/0.0009453, allocations: 181 kB / 327.6 MB, free: 2.148 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.4 MB / 0.5785 GB, free: 20.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007031/0.0007032, allocations: 94.28 kB / 0.6831 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003646/0.0003647, allocations: 14.03 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1786, allocations: 106.3 MB / 0.9012 GB, free: 63.69 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.3275, allocations: 132 MB / 1.03 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000222/0.3278, allocations: 67.97 kB / 1.03 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002618/0.3304, allocations: 0.9305 MB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.337e-06/0.3305, allocations: 4 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.3305, allocations: 0 / 1.031 GB, free: 10.52 MB / 0.6823 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.0004532/0.3309, allocations: 355.4 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.331, allocations: 12.03 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.331, allocations: 0.9375 kB / 1.031 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.3312, allocations: 176.3 kB / 1.032 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.3312, allocations: 384 / 1.032 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.3313, allocations: 4.312 kB / 1.032 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.3314, allocations: 66.23 kB / 1.032 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.3315, allocations: 192 / 1.032 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3315, allocations: 3.938 kB / 1.032 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3315, allocations: 4 kB / 1.032 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.3317, allocations: 47.95 kB / 1.032 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005175/0.3322, allocations: 281 kB / 1.032 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003172/0.3326, allocations: 70.41 kB / 1.032 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.442e-05/0.3327, allocations: 28.91 kB / 1.032 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001173/0.3328, allocations: 85.11 kB / 1.032 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.3328, allocations: 38.53 kB / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.3328, allocations: 0 / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0003601/0.3332, allocations: 105.6 kB / 1.032 GB, free: 9.078 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3333, allocations: 59.28 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.631e-05/0.3333, allocations: 101.8 kB / 1.032 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.3334, allocations: 29.7 kB / 1.032 GB, free: 8.863 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.3334, allocations: 95.98 kB / 1.033 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.3334, allocations: 3.906 kB / 1.033 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.537e-06/0.3334, allocations: 0 / 1.033 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3336, allocations: 314.8 kB / 1.033 GB, free: 8.445 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.361e-05/0.3337, allocations: 23.98 kB / 1.033 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.558e-05/0.3337, allocations: 27.98 kB / 1.033 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001689/0.3339, allocations: 52.81 kB / 1.033 GB, free: 8.34 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3339, allocations: 3.938 kB / 1.033 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002138/0.3341, allocations: 93.58 kB / 1.033 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.3342, allocations: 4 kB / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3342, allocations: 0 / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.3342, allocations: 0 / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.927e-05/0.3343, allocations: 19.98 kB / 1.033 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3343, allocations: 4 kB / 1.033 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.744e-05/0.3344, allocations: 8 kB / 1.033 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.3344, allocations: 0 / 1.033 GB, free: 8.203 MB / 0.6823 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.y,fac.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.175e-05/0.3345, allocations: 119.5 kB / 1.033 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.476e-05/0.3345, allocations: 4 kB / 1.033 GB, free: 8.074 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.3348, allocations: 89.14 kB / 1.033 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.3348, allocations: 4 kB / 1.033 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3348, allocations: 3.938 kB / 1.033 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3348, allocations: 0 / 1.033 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.335, allocations: 165.6 kB / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.335, allocations: 4 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.686e-05/0.3351, allocations: 15.98 kB / 1.034 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3351, allocations: 0 / 1.034 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3351, allocations: 0 / 1.034 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3351, allocations: 0 / 1.034 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.3351, allocations: 7.938 kB / 1.034 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.3354, allocations: 183.9 kB / 1.034 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.3355, allocations: 85.03 kB / 1.034 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.3355, allocations: 0 / 1.034 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.114e-05/0.3356, allocations: 12 kB / 1.034 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.3356, allocations: 7.984 kB / 1.034 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.3356, allocations: 48 / 1.034 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.384e-05/0.3357, allocations: 87.25 kB / 1.034 GB, free: 7.328 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3357, allocations: 7.938 kB / 1.034 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002166/0.3359, allocations: 12 kB / 1.034 GB, free: 7.309 MB / 0.6823 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,fac.u) * 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 (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.0001657/0.3361, allocations: 103.2 kB / 1.034 GB, free: 7.199 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002068/0.3363, allocations: 63.89 kB / 1.034 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3363, allocations: 0 / 1.034 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.349e-05/0.3364, allocations: 27.97 kB / 1.034 GB, free: 7.109 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.3367, allocations: 10 kB / 1.034 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.337, allocations: 124.6 kB / 1.034 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.3373, allocations: 0.6809 MB / 1.035 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.339e-05/0.3373, allocations: 4 kB / 1.035 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.556e-05/0.3373, allocations: 11.44 kB / 1.035 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of SimCode: time 3.01e-07/0.3373, allocations: 0 / 1.035 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of Templates: time 0.002577/0.3399, allocations: 0.5932 MB / 1.035 GB, free: 5.641 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)