Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.291/1.291, allocations: 252 MB / 267.9 MB, free: 10.93 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.0008971/0.000897, allocations: 189.9 kB / 327.6 MB, free: 2.16 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.404/1.404, allocations: 205.4 MB / 0.5785 GB, free: 20.2 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.0007619/0.0007621, allocations: 92.55 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.0003351, allocations: 13.66 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1784, allocations: 106.3 MB / 0.9012 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.324, allocations: 131 MB / 1.029 GB, free: 12.51 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/0.3244, allocations: 71.95 kB / 1.029 GB, free: 12.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001197/0.3256, allocations: 0.5289 MB / 1.03 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.935e-06/0.3256, allocations: 0 / 1.03 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.3256, allocations: 0 / 1.03 GB, free: 11.91 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002854/0.3259, allocations: 315.6 kB / 1.03 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.326, allocations: 8.031 kB / 1.03 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.326, allocations: 0.9375 kB / 1.03 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.3261, allocations: 164.3 kB / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.3262, allocations: 4.375 kB / 1.03 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.3262, allocations: 8.375 kB / 1.03 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.3263, allocations: 34.25 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3263, allocations: 8.172 kB / 1.03 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-06/0.3263, allocations: 3.938 kB / 1.03 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3263, allocations: 0 / 1.03 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.006e-05/0.3264, allocations: 7.938 kB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.3265, allocations: 149.7 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 4.297e-05/0.3266, allocations: 18.61 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.813e-05/0.3266, allocations: 16.92 kB / 1.03 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.3267, allocations: 85.09 kB / 1.031 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.3268, allocations: 30.56 kB / 1.031 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3268, allocations: 0 / 1.031 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.000135/0.3269, allocations: 49.48 kB / 1.031 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.327, allocations: 51.41 kB / 1.031 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.174e-05/0.327, allocations: 93.84 kB / 1.031 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.327, allocations: 25.7 kB / 1.031 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.453e-05/0.3271, allocations: 84.27 kB / 1.031 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.3271, allocations: 4 kB / 1.031 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.3271, allocations: 0 / 1.031 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.179e-05/0.3272, allocations: 310.8 kB / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.606e-06/0.3272, allocations: 0 / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.457e-06/0.3272, allocations: 8 kB / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.96e-05/0.3272, allocations: 8.859 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3273, allocations: 64 / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.001e-05/0.3273, allocations: 49.62 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.3273, allocations: 4 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3274, allocations: 4 kB / 1.031 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.3274, allocations: 7.875 kB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.129e-05/0.3274, allocations: 0 / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.3274, allocations: 4 kB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.231e-05/0.3275, allocations: 3.938 kB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.3275, allocations: 0 / 1.031 GB, free: 10.14 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,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 7.464e-05/0.3275, allocations: 113.9 kB / 1.031 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-06/0.3276, allocations: 0 / 1.031 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.776e-05/0.3277, allocations: 48.7 kB / 1.031 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3277, allocations: 0 / 1.031 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3277, allocations: 4 kB / 1.031 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3277, allocations: 3.984 kB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.479e-05/0.3278, allocations: 145.7 kB / 1.032 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3278, allocations: 0 / 1.032 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-05/0.3278, allocations: 4 kB / 1.032 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3278, allocations: 0 / 1.032 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3278, allocations: 7.969 kB / 1.032 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3278, allocations: 3.984 kB / 1.032 GB, free: 9.746 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3278, allocations: 0 / 1.032 GB, free: 9.746 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.64e-05/0.3279, allocations: 65.05 kB / 1.032 GB, free: 9.664 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.328, allocations: 77.11 kB / 1.032 GB, free: 9.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.328, allocations: 11.86 kB / 1.032 GB, free: 9.559 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.328, allocations: 4 kB / 1.032 GB, free: 9.555 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.328, allocations: 8.031 kB / 1.032 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.328, allocations: 0 / 1.032 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.471e-05/0.3281, allocations: 75.28 kB / 1.032 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3281, allocations: 0 / 1.032 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001976/0.3283, allocations: 4 kB / 1.032 GB, free: 9.469 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,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.0001627/0.3284, allocations: 112 kB / 1.032 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 5.74e-05/0.3285, allocations: 8 kB / 1.032 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3285, allocations: 4 kB / 1.032 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 1.335e-05/0.3285, allocations: 8.062 kB / 1.032 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.3287, allocations: 0 / 1.032 GB, free: 9.328 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001941/0.3289, allocations: 86.94 kB / 1.032 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.3291, allocations: 0.6692 MB / 1.033 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.431e-05/0.3291, allocations: 4 kB / 1.033 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.209e-05/0.3291, allocations: 7.438 kB / 1.033 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of SimCode: time 2.41e-07/0.3291, allocations: 0 / 1.033 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of Templates: time 0.00179/0.3309, allocations: 313.2 kB / 1.033 GB, free: 8.203 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)