Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9792/0.9792, allocations: 143.4 MB / 158.3 MB, free: 5.82 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.001496/0.001495, allocations: 185 kB / 191.5 MB, free: 5.785 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.518/1.518, allocations: 223.2 MB / 447.7 MB, free: 4.828 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.0008935/0.0008935, allocations: 100.2 kB / 0.5188 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001798/0.001798, allocations: 269.2 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004776/0.0004777, allocations: 17.17 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1827, allocations: 82.79 MB / 0.7737 GB, free: 13.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1628/0.3455, allocations: 108.9 MB / 0.8801 GB, free: 0.8125 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.3459, allocations: 70 kB / 0.8801 GB, free: 0.7461 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.4238/0.7697, allocations: 0.9489 MB / 0.8811 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.809e-06/0.7698, allocations: 0.6875 kB / 0.8811 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.729e-05/0.7698, allocations: 1.094 kB / 0.8811 GB, free: 109.3 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006349/0.7705, allocations: 336.5 kB / 0.8814 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.7705, allocations: 10.5 kB / 0.8814 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.219e-05/0.7706, allocations: 5.281 kB / 0.8814 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.7707, allocations: 167.8 kB / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.7708, allocations: 8.391 kB / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.7708, allocations: 1.719 kB / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.771, allocations: 65.44 kB / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.771, allocations: 0 / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.7711, allocations: 1.844 kB / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.7711, allocations: 0 / 0.8816 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002329/0.7713, allocations: 60.36 kB / 0.8817 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/0.7719, allocations: 282.8 kB / 0.882 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.7722, allocations: 66.78 kB / 0.882 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.7724, allocations: 83.89 kB / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.7724, allocations: 35 kB / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.7724, allocations: 0 / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004526/0.7729, allocations: 111.2 kB / 0.8823 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.7729, allocations: 55.39 kB / 0.8823 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.971e-05/0.773, allocations: 93.22 kB / 0.8824 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.773, allocations: 31.52 kB / 0.8824 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.704e-05/0.7731, allocations: 80.89 kB / 0.8825 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.7731, allocations: 9.547 kB / 0.8825 GB, free: 108 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-06/0.7731, allocations: 0 / 0.8825 GB, free: 108 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.7732, allocations: 315.9 kB / 0.8828 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.7733, allocations: 29.95 kB / 0.8828 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.99e-05/0.7734, allocations: 21.28 kB / 0.8829 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.586e-05/0.7735, allocations: 30.23 kB / 0.8829 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7735, allocations: 0 / 0.8829 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002021/0.7737, allocations: 88.48 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.7737, allocations: 5.844 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.7737, allocations: 0 / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.7737, allocations: 2.969 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.372e-05/0.7738, allocations: 12.84 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.7738, allocations: 3.938 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.219e-05/0.7739, allocations: 15.72 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.7739, allocations: 0 / 0.883 GB, free: 107.6 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.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 7.141e-05/0.774, allocations: 112.8 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.774, allocations: 6.203 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.7743, allocations: 95.53 kB / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.7743, allocations: 3.938 kB / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7743, allocations: 3 kB / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.7743, allocations: 0 / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.7745, allocations: 161.3 kB / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7745, allocations: 3.953 kB / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.518e-05/0.7746, allocations: 17.72 kB / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.7746, allocations: 4 kB / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.7746, allocations: 0 / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.7746, allocations: 0 / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7746, allocations: 4.531 kB / 0.8834 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.7748, allocations: 181.9 kB / 0.8836 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.677e-05/0.7749, allocations: 84.34 kB / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.7749, allocations: 0 / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-05/0.775, allocations: 12.88 kB / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/0.7751, allocations: 4.438 kB / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.7751, allocations: 7.25 kB / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.408e-05/0.7751, allocations: 84.84 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7751, allocations: 0 / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002168/0.7753, allocations: 13.88 kB / 0.8838 GB, free: 106.9 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.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.0001609/0.7755, allocations: 118.1 kB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002379/0.7757, allocations: 46.88 kB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7757, allocations: 4 kB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.7759, allocations: 33.16 kB / 0.884 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.7761, allocations: 6.703 kB / 0.884 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.7765, allocations: 113 kB / 0.8841 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001801/0.7766, allocations: 0.6861 MB / 0.8848 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.84e-05/0.7767, allocations: 1.969 kB / 0.8848 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.614e-05/0.7767, allocations: 9.188 kB / 0.8848 GB, free: 106 MB / 0.5417 GB Notification: Performance of SimCode: time 3.11e-07/0.7767, allocations: 0 / 0.8848 GB, free: 106 MB / 0.5417 GB Notification: Performance of Templates: time 0.002629/0.7794, allocations: 0.5959 MB / 0.8854 GB, free: 106 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)