Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.825/0.825, allocations: 143.4 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 183.4 kB / 191.5 MB, free: 5.75 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.2 MB / 447.7 MB, free: 4.797 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009294/0.000929, allocations: 92.33 kB / 0.5188 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001694/0.001693, allocations: 270.6 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004361, allocations: 19.69 kB / 0.6929 GB, free: 59.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1706, allocations: 82.8 MB / 0.7737 GB, free: 13.82 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.3302, allocations: 107.9 MB / 0.8791 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.3305, allocations: 77.98 kB / 0.8792 GB, free: 1.676 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.001115/0.3316, allocations: 0.5281 MB / 0.8797 GB, free: 1.145 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3316, allocations: 0 / 0.8797 GB, free: 1.145 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.3316, allocations: 0 / 0.8797 GB, free: 1.145 MB / 0.5417 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.0002793/0.3319, allocations: 319.4 kB / 0.88 GB, free: 0.7852 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.332, allocations: 8.562 kB / 0.88 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.332, allocations: 8 kB / 0.88 GB, free: 0.7695 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.002e-05/0.3321, allocations: 159.1 kB / 0.8802 GB, free: 0.5742 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3321, allocations: 3.953 kB / 0.8802 GB, free: 0.5703 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-06/0.3322, allocations: 0 / 0.8802 GB, free: 0.5703 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.3323, allocations: 33.69 kB / 0.8802 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.3323, allocations: 0 / 0.8802 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.3323, allocations: 0 / 0.8802 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3323, allocations: 0 / 0.8802 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.275e-05/0.3323, allocations: 11.94 kB / 0.8802 GB, free: 0.5195 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001445/0.3325, allocations: 149.7 kB / 0.8804 GB, free: 332 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.385e-05/0.3326, allocations: 22.61 kB / 0.8804 GB, free: 300 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.3327, allocations: 85.06 kB / 0.8805 GB, free: 196 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.3327, allocations: 38.62 kB / 0.8805 GB, free: 148 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3327, allocations: 0 / 0.8805 GB, free: 148 kB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001335/0.3329, allocations: 45.62 kB / 0.8806 GB, free: 96 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.3329, allocations: 51.41 kB / 0.8806 GB, free: 32 kB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2869/0.6198, allocations: 89 kB / 0.8807 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.6199, allocations: 25.7 kB / 0.8807 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.344e-05/0.6199, allocations: 80.14 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.6199, allocations: 2.219 kB / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.62, allocations: 0 / 0.8808 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.114e-05/0.62, allocations: 312.6 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.287e-05/0.6201, allocations: 5.141 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.425e-05/0.6201, allocations: 2.312 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.691e-05/0.6201, allocations: 6.109 kB / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6201, allocations: 0 / 0.8811 GB, free: 109 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001057/0.6203, allocations: 39.84 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.6203, allocations: 5.125 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.6203, allocations: 2.797 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.6203, allocations: 4.094 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.018e-05/0.6204, allocations: 4.75 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.6204, allocations: 0.6562 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.6205, allocations: 0.6562 kB / 0.8812 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.6205, allocations: 2.75 kB / 0.8812 GB, free: 108.9 MB / 0.5417 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 6.267e-05/0.6205, allocations: 115 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.6206, allocations: 10.31 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.6207, allocations: 41.94 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.6207, allocations: 3.344 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.6207, allocations: 0 / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.6207, allocations: 4.188 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.101e-05/0.6208, allocations: 149.2 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6208, allocations: 2.641 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.235e-05/0.6208, allocations: 7.531 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.6208, allocations: 0 / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.6208, allocations: 5.328 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.6208, allocations: 0.9688 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6208, allocations: 0.6094 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.816e-05/0.6209, allocations: 60.06 kB / 0.8816 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.372e-05/0.6209, allocations: 82.5 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.621, allocations: 1.328 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.366e-05/0.621, allocations: 7.094 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.796e-05/0.621, allocations: 2.422 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.621, allocations: 0.9688 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.16e-05/0.621, allocations: 80.09 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.621, allocations: 0 / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002436/0.6213, allocations: 14.19 kB / 0.8817 GB, free: 108.4 MB / 0.5417 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.0001499/0.6214, allocations: 113.1 kB / 0.8818 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 6.988e-05/0.6215, allocations: 8.984 kB / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.6215, allocations: 0 / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.64e-05/0.6215, allocations: 11.53 kB / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.833e-05/0.6216, allocations: 2.234 kB / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001623/0.6218, allocations: 79.17 kB / 0.8819 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.128e-05/0.6219, allocations: 0.6752 MB / 0.8826 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.809e-05/0.6219, allocations: 2.203 kB / 0.8826 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.42e-05/0.622, allocations: 9.828 kB / 0.8826 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of SimCode: time 3e-07/0.622, allocations: 4.281 kB / 0.8826 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.002028/0.624, allocations: 309 kB / 0.8829 GB, free: 107.4 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)