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.7905/0.7905, allocations: 143.4 MB / 159.2 MB, free: 4.918 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.001105/0.001105, allocations: 176.5 kB / 191.9 MB, free: 5.719 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.395/1.395, allocations: 222.9 MB / 447.3 MB, free: 5.855 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.0009757/0.0009755, allocations: 115.2 kB / 0.517 GB, free: 3.699 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001799/0.001799, allocations: 284.8 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 87.88 kB / 0.6886 GB, free: 3.805 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3273, allocations: 81.29 MB / 0.7679 GB, free: 27.63 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.00155/0.3289, allocations: 0.6328 MB / 0.7686 GB, free: 27 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002751/0.3292, allocations: 55.05 kB / 0.7686 GB, free: 26.95 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.229e-05/0.3293, allocations: 0 / 0.7686 GB, free: 26.95 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.3293, allocations: 0 / 0.7686 GB, free: 26.95 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.3293, allocations: 0 / 0.7686 GB, free: 26.95 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.3295, allocations: 15.92 kB / 0.7686 GB, free: 26.93 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 3.405e-05/0.3295, allocations: 4 kB / 0.7686 GB, free: 26.93 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.697e-05/0.3296, allocations: 4 kB / 0.7686 GB, free: 26.93 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.167e-05/0.3296, allocations: 4 kB / 0.7686 GB, free: 26.92 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.505e-05/0.3296, allocations: 7.922 kB / 0.7687 GB, free: 26.91 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.346e-06/0.3296, allocations: 0 / 0.7687 GB, free: 26.91 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.069e-05/0.3297, allocations: 8 kB / 0.7687 GB, free: 26.91 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 8.827e-06/0.3297, allocations: 0 / 0.7687 GB, free: 26.91 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 1.789e-05/0.3297, allocations: 11.92 kB / 0.7687 GB, free: 26.89 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 7.129e-05/0.3298, allocations: 7.984 kB / 0.7687 GB, free: 26.89 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3298, allocations: 0 / 0.7687 GB, free: 26.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3298, allocations: 0 / 0.7687 GB, free: 26.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.3298, allocations: 0 / 0.7687 GB, free: 26.89 MB / 458.7 MB 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.0002339/0.3301, allocations: 317.7 kB / 0.769 GB, free: 26.53 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3301, allocations: 8.031 kB / 0.769 GB, free: 26.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.3302, allocations: 4.922 kB / 0.769 GB, free: 26.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.386e-05/0.3302, allocations: 164.4 kB / 0.7692 GB, free: 26.32 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.3302, allocations: 4.375 kB / 0.7692 GB, free: 26.31 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.3302, allocations: 384 / 0.7692 GB, free: 26.31 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.621e-05/0.3303, allocations: 30.27 kB / 0.7692 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3303, allocations: 192 / 0.7692 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.3303, allocations: 3.938 kB / 0.7692 GB, free: 26.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3304, allocations: 4 kB / 0.7692 GB, free: 26.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.082e-05/0.3304, allocations: 15.92 kB / 0.7692 GB, free: 26.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.3305, allocations: 141.7 kB / 0.7693 GB, free: 26.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.82e-05/0.3305, allocations: 26.61 kB / 0.7694 GB, free: 26.03 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.626e-05/0.3306, allocations: 8.844 kB / 0.7694 GB, free: 26.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.3307, allocations: 81.17 kB / 0.7695 GB, free: 25.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.3307, allocations: 34.56 kB / 0.7695 GB, free: 25.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.3307, allocations: 0 / 0.7695 GB, free: 25.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001142/0.3309, allocations: 49.56 kB / 0.7695 GB, free: 25.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.619e-05/0.3309, allocations: 55.41 kB / 0.7696 GB, free: 25.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.974e-05/0.3309, allocations: 89.86 kB / 0.7697 GB, free: 25.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.773e-06/0.3309, allocations: 29.64 kB / 0.7697 GB, free: 25.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.077e-06/0.3309, allocations: 80.14 kB / 0.7698 GB, free: 25.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.331, allocations: 10.58 kB / 0.7698 GB, free: 25.54 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.331e-05/0.331, allocations: 13.84 kB / 0.7698 GB, free: 25.52 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.915e-05/0.331, allocations: 318.8 kB / 0.7701 GB, free: 25.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.3311, allocations: 0 / 0.7701 GB, free: 25.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.842e-06/0.3311, allocations: 4 kB / 0.7701 GB, free: 25.19 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.817e-05/0.3311, allocations: 12.86 kB / 0.7701 GB, free: 25.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3311, allocations: 3.938 kB / 0.7701 GB, free: 25.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.573e-05/0.3312, allocations: 37.7 kB / 0.7702 GB, free: 25.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.3312, allocations: 11.98 kB / 0.7702 GB, free: 25.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3312, allocations: 4.094 kB / 0.7702 GB, free: 25.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3312, allocations: 3.938 kB / 0.7702 GB, free: 25.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.019e-05/0.3313, allocations: 7.938 kB / 0.7702 GB, free: 25.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.3313, allocations: 0 / 0.7702 GB, free: 25.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.195e-05/0.3313, allocations: 0 / 0.7702 GB, free: 25.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-06/0.3313, allocations: 0 / 0.7702 GB, free: 25.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.3314, allocations: 106.4 kB / 0.7703 GB, free: 24.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.3314, allocations: 4 kB / 0.7703 GB, free: 24.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.185e-05/0.3315, allocations: 56.67 kB / 0.7703 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3315, allocations: 4 kB / 0.7703 GB, free: 24.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3315, allocations: 0 / 0.7703 GB, free: 24.92 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3315, allocations: 0 / 0.7703 GB, free: 24.92 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.026e-05/0.3315, allocations: 145.7 kB / 0.7705 GB, free: 24.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3315, allocations: 0 / 0.7705 GB, free: 24.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.022e-05/0.3316, allocations: 4 kB / 0.7705 GB, free: 24.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.3316, allocations: 0 / 0.7705 GB, free: 24.73 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.3316, allocations: 3.938 kB / 0.7705 GB, free: 24.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3316, allocations: 4 kB / 0.7705 GB, free: 24.72 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3316, allocations: 0 / 0.7705 GB, free: 24.72 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.3318, allocations: 0.6123 MB / 0.7711 GB, free: 24.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.396e-05/0.3318, allocations: 77.11 kB / 0.7712 GB, free: 23.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.08e-05/0.3318, allocations: 8 kB / 0.7712 GB, free: 23.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.106e-05/0.3318, allocations: 4 kB / 0.7712 GB, free: 23.94 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.3319, allocations: 0 / 0.7712 GB, free: 23.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.3319, allocations: 0 / 0.7712 GB, free: 23.94 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.215e-05/0.3319, allocations: 83.25 kB / 0.7713 GB, free: 23.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3319, allocations: 0 / 0.7713 GB, free: 23.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003028/0.3322, allocations: 8 kB / 0.7713 GB, free: 23.85 MB / 458.7 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001417/0.3324, allocations: 107.2 kB / 0.7714 GB, free: 23.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 5.617e-05/0.3324, allocations: 7.938 kB / 0.7714 GB, free: 23.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3324, allocations: 0 / 0.7714 GB, free: 23.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.349e-05/0.3324, allocations: 12 kB / 0.7714 GB, free: 23.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.3326, allocations: 12.05 kB / 0.7714 GB, free: 23.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002011/0.3328, allocations: 179 kB / 0.7716 GB, free: 23.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.969e-05/0.3329, allocations: 0.677 MB / 0.7722 GB, free: 22.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 1.431e-05/0.3329, allocations: 3.984 kB / 0.7722 GB, free: 22.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.192e-05/0.3329, allocations: 11.44 kB / 0.7722 GB, free: 22.77 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3329, allocations: 0 / 0.7722 GB, free: 22.77 MB / 458.7 MB Notification: Performance of Templates: time 0.001884/0.3348, allocations: 318 kB / 0.7726 GB, free: 22.46 MB / 458.7 MB 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)