Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.263/2.263, allocations: 251.1 MB / 266.1 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001519/0.001519, allocations: 183.4 kB / 325.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.445/2.445, allocations: 205.4 MB / 0.5766 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 88.28 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004755/0.0004756, allocations: 16.53 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2504, allocations: 106.3 MB / 0.8989 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0008777/0.2513, allocations: 329 kB / 0.8992 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002642/0.2516, allocations: 40.75 kB / 0.8992 GB, free: 65.12 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.628e-05/0.2516, allocations: 7.938 kB / 0.8992 GB, free: 65.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.2517, allocations: 3.938 kB / 0.8993 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.081e-06/0.2517, allocations: 4 kB / 0.8993 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002081/0.2519, allocations: 4 kB / 0.8993 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 4.137e-05/0.252, allocations: 7.984 kB / 0.8993 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.492e-05/0.252, allocations: 0 / 0.8993 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.558e-05/0.2521, allocations: 0 / 0.8993 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.13e-05/0.2521, allocations: 11.92 kB / 0.8993 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.2521, allocations: 0 / 0.8993 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.955e-05/0.2522, allocations: 4 kB / 0.8993 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.564e-06/0.2522, allocations: 0 / 0.8993 GB, free: 65.08 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.18e-05/0.2523, allocations: 29.7 kB / 0.8993 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.563e-05/0.2524, allocations: 7.984 kB / 0.8993 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2524, allocations: 4 kB / 0.8993 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.014e-06/0.2524, allocations: 0 / 0.8993 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.2524, allocations: 0 / 0.8993 GB, free: 65.04 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002595/0.2527, allocations: 307.4 kB / 0.8996 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.2527, allocations: 12.09 kB / 0.8996 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.2528, allocations: 7.891 kB / 0.8996 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.845e-05/0.2529, allocations: 167 kB / 0.8998 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.2529, allocations: 0 / 0.8998 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.2529, allocations: 0 / 0.8998 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.253, allocations: 37.7 kB / 0.8998 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2531, allocations: 0 / 0.8998 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.2531, allocations: 3.938 kB / 0.8998 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2531, allocations: 3.984 kB / 0.8998 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.205e-05/0.2532, allocations: 7.984 kB / 0.8998 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.2533, allocations: 153.6 kB / 0.9 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.858e-05/0.2534, allocations: 18.61 kB / 0.9 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001811/0.2536, allocations: 85.16 kB / 0.9001 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.2536, allocations: 34.56 kB / 0.9001 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.914e-06/0.2536, allocations: 0 / 0.9001 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001574/0.2538, allocations: 45.62 kB / 0.9002 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.2539, allocations: 51.41 kB / 0.9002 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.147e-05/0.2539, allocations: 89.86 kB / 0.9003 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.2539, allocations: 29.7 kB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.792e-05/0.254, allocations: 80.14 kB / 0.9004 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.254, allocations: 8.125 kB / 0.9004 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.254, allocations: 0 / 0.9004 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.607e-05/0.2541, allocations: 310.8 kB / 0.9007 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.2541, allocations: 4 kB / 0.9007 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.338e-05/0.2541, allocations: 0 / 0.9007 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.044e-05/0.2542, allocations: 7.953 kB / 0.9007 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2542, allocations: 3.938 kB / 0.9007 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.965e-05/0.2543, allocations: 45.62 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2543, allocations: 6.281 kB / 0.9008 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2544, allocations: 4 kB / 0.9008 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.2544, allocations: 0 / 0.9008 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.571e-05/0.2545, allocations: 4 kB / 0.9008 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.2545, allocations: 0 / 0.9008 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.448e-05/0.2545, allocations: 0 / 0.9008 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.2546, allocations: 3.984 kB / 0.9008 GB, free: 63.3 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,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.666e-05/0.2546, allocations: 114.9 kB / 0.9009 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/0.2547, allocations: 0 / 0.9009 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.2548, allocations: 60.66 kB / 0.901 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.2548, allocations: 3.938 kB / 0.901 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2548, allocations: 0 / 0.901 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2548, allocations: 0 / 0.901 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.396e-05/0.2549, allocations: 149.7 kB / 0.9011 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.255, allocations: 3.953 kB / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/0.255, allocations: 3.984 kB / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.255, allocations: 4 kB / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.2551, allocations: 0 / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2551, allocations: 0 / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2551, allocations: 0 / 0.9011 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.614e-05/0.2552, allocations: 61.17 kB / 0.9012 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.2552, allocations: 85.05 kB / 0.9013 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.2553, allocations: 4 kB / 0.9013 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.2553, allocations: 0 / 0.9013 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.2553, allocations: 0 / 0.9013 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.2554, allocations: 0 / 0.9013 GB, free: 62.72 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.794e-05/0.2554, allocations: 79.22 kB / 0.9013 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.31e-07/0.2554, allocations: 4.031 kB / 0.9013 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004206/0.2558, allocations: 4 kB / 0.9013 GB, free: 62.64 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,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.0001852/0.256, allocations: 111.2 kB / 0.9014 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 8.224e-05/0.2561, allocations: 4 kB / 0.9014 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2561, allocations: 0 / 0.9014 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 2.509e-05/0.2562, allocations: 4 kB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001544/0.2564, allocations: 2.016 kB / 0.9015 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001959/0.2566, allocations: 94.91 kB / 0.9015 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.2567, allocations: 0.677 MB / 0.9022 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.065e-05/0.2568, allocations: 3.938 kB / 0.9022 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.2568, allocations: 15.38 kB / 0.9022 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of SimCode: time 8.41e-07/0.2568, allocations: 0 / 0.9022 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of Templates: time 0.002753/0.2596, allocations: 284 kB / 0.9025 GB, free: 61.39 MB / 0.6042 GB