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.418/1.418, allocations: 252 MB / 268 MB, free: 10.85 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.001009/0.001009, allocations: 163.8 kB / 327.6 MB, free: 2.09 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.976/1.976, allocations: 205.4 MB / 0.5786 GB, free: 20.42 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.0007681/0.0007681, allocations: 90.95 kB / 0.6832 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003706, allocations: 11.16 kB / 0.7976 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2643, allocations: 106.3 MB / 0.9014 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002641/0.267, allocations: 1.244 MB / 0.9027 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00057/0.2676, allocations: 132.4 kB / 0.9028 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.193e-05/0.2677, allocations: 0 / 0.9028 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.681e-05/0.2677, allocations: 0 / 0.9028 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.019e-05/0.2678, allocations: 0 / 0.9028 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.2681, allocations: 19.91 kB / 0.9028 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.494e-05/0.2682, allocations: 23.98 kB / 0.9028 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.2684, allocations: 11.98 kB / 0.9028 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.861e-05/0.2684, allocations: 11.94 kB / 0.9028 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.978e-05/0.2685, allocations: 19.91 kB / 0.9029 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.2686, allocations: 4 kB / 0.9029 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.398e-05/0.2687, allocations: 12 kB / 0.9029 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.2687, allocations: 7.922 kB / 0.9029 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.047e-05/0.2688, allocations: 37.64 kB / 0.9029 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.2689, allocations: 19.95 kB / 0.9029 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2689, allocations: 4 kB / 0.9029 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.605e-06/0.2689, allocations: 0 / 0.9029 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.2689, allocations: 0 / 0.9029 GB, free: 62.26 MB / 0.6042 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.0005501/0.2695, allocations: 339.5 kB / 0.9033 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.2696, allocations: 12.03 kB / 0.9033 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.2696, allocations: 0.9375 kB / 0.9033 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.2698, allocations: 168.5 kB / 0.9034 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.2698, allocations: 8.375 kB / 0.9035 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.2698, allocations: 384 / 0.9035 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002919/0.2702, allocations: 66.22 kB / 0.9035 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.2702, allocations: 192 / 0.9035 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.2702, allocations: 3.938 kB / 0.9035 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.2702, allocations: 0 / 0.9035 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.2706, allocations: 59.88 kB / 0.9036 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004613/0.271, allocations: 265 kB / 0.9038 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.2716, allocations: 66.47 kB / 0.9039 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.2717, allocations: 32.91 kB / 0.9039 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.2719, allocations: 85.09 kB / 0.904 GB, free: 61 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.272, allocations: 34.5 kB / 0.904 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 3.616e-06/0.272, allocations: 0 / 0.904 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0006374/0.2726, allocations: 117.6 kB / 0.9042 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.2727, allocations: 51.41 kB / 0.9042 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.78e-05/0.2728, allocations: 101.8 kB / 0.9043 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2728, allocations: 25.7 kB / 0.9043 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.2729, allocations: 88.12 kB / 0.9044 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.2729, allocations: 7.906 kB / 0.9044 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.2729, allocations: 7.938 kB / 0.9044 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.625e-05/0.273, allocations: 310.8 kB / 0.9047 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.2732, allocations: 23.98 kB / 0.9047 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.2734, allocations: 27.91 kB / 0.9048 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.2737, allocations: 60.81 kB / 0.9048 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.2737, allocations: 3.938 kB / 0.9048 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003787/0.2741, allocations: 85.66 kB / 0.9049 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.2741, allocations: 4 kB / 0.9049 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2742, allocations: 0 / 0.9049 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2742, allocations: 4 kB / 0.9049 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.2743, allocations: 11.98 kB / 0.9049 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.2744, allocations: 0 / 0.9049 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2745, allocations: 15.98 kB / 0.9049 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.2745, allocations: 0 / 0.9049 GB, free: 59.98 MB / 0.6042 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,rea2Int.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.783e-05/0.2746, allocations: 121.7 kB / 0.9051 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.2747, allocations: 0 / 0.9051 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003972/0.2751, allocations: 93.14 kB / 0.9052 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2751, allocations: 0 / 0.9052 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2751, allocations: 0.5625 kB / 0.9052 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.2751, allocations: 0 / 0.9052 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.2753, allocations: 173.4 kB / 0.9053 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2753, allocations: 0 / 0.9053 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.2755, allocations: 15.98 kB / 0.9053 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2755, allocations: 0 / 0.9053 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.2755, allocations: 8 kB / 0.9053 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2756, allocations: 4 kB / 0.9053 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2756, allocations: 0 / 0.9053 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003812/0.276, allocations: 187.4 kB / 0.9055 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.276, allocations: 85.05 kB / 0.9056 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.276, allocations: 4 kB / 0.9056 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.2762, allocations: 7.984 kB / 0.9056 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.2763, allocations: 8 kB / 0.9056 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.2763, allocations: 3.984 kB / 0.9056 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.126e-05/0.2764, allocations: 79.28 kB / 0.9057 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.5e-07/0.2764, allocations: 0 / 0.9057 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004053/0.2768, allocations: 8 kB / 0.9057 GB, free: 59.09 MB / 0.6042 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,rea2Int.y) * 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 (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.0001778/0.277, allocations: 103.2 kB / 0.9058 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003924/0.2774, allocations: 55.89 kB / 0.9059 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2774, allocations: 0 / 0.9059 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.2776, allocations: 35.97 kB / 0.9059 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.2781, allocations: 14.28 kB / 0.9059 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003935/0.2785, allocations: 142.6 kB / 0.906 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2786, allocations: 0.6809 MB / 0.9067 GB, free: 58 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.2787, allocations: 7.438 kB / 0.9067 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of SimCode: time 6.01e-07/0.2787, allocations: 4 kB / 0.9067 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of Templates: time 0.003286/0.282, allocations: 0.7287 MB / 0.9074 GB, free: 57.26 MB / 0.6042 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)