Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json 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/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008865/0.0008864, allocations: 91.14 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00725/0.00725, allocations: 173.4 kB / 16.27 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.4 MB / 222.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.777/1.777, allocations: 292.7 MB / 0.5502 GB, free: 14.48 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005277/0.0005277, allocations: 16.78 kB / 0.6743 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2211, allocations: 116.3 MB / 0.7879 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006287/0.2217, allocations: 323.5 kB / 0.7882 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002319/0.222, allocations: 59.8 kB / 0.7883 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.544e-06/0.222, allocations: 0 / 0.7883 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.107e-06/0.222, allocations: 0 / 0.7883 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.797e-06/0.222, allocations: 0 / 0.7883 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.2222, allocations: 4 kB / 0.7883 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.477e-05/0.2222, allocations: 8 kB / 0.7883 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 2.945e-05/0.2223, allocations: 0 / 0.7883 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.344e-05/0.2223, allocations: 3.984 kB / 0.7883 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 1.994e-05/0.2223, allocations: 3.984 kB / 0.7883 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.2223, allocations: 4 kB / 0.7883 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.663e-05/0.2224, allocations: 4 kB / 0.7883 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.347e-06/0.2224, allocations: 8 kB / 0.7883 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.2224, allocations: 29.64 kB / 0.7883 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 6.242e-05/0.2225, allocations: 7.984 kB / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2225, allocations: 0 / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2225, allocations: 0 / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.985e-06/0.2225, allocations: 0 / 0.7883 GB, free: 11.14 MB / 0.6075 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.0002381/0.2228, allocations: 311.6 kB / 0.7886 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2228, allocations: 8.031 kB / 0.7886 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.2228, allocations: 4.938 kB / 0.7886 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.486e-05/0.2229, allocations: 168.3 kB / 0.7888 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.223, allocations: 8.375 kB / 0.7888 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-06/0.223, allocations: 384 / 0.7888 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.693e-05/0.223, allocations: 30.27 kB / 0.7888 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-06/0.2231, allocations: 192 / 0.7888 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-06/0.2231, allocations: 3.938 kB / 0.7888 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2231, allocations: 0 / 0.7888 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.991e-05/0.2231, allocations: 7.984 kB / 0.7888 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001214/0.2232, allocations: 149.6 kB / 0.789 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.5e-05/0.2233, allocations: 34.59 kB / 0.789 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.2233, allocations: 12.84 kB / 0.789 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000135/0.2235, allocations: 81.11 kB / 0.7891 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2235, allocations: 34.5 kB / 0.7891 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.2235, allocations: 0 / 0.7891 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001191/0.2236, allocations: 45.62 kB / 0.7892 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2237, allocations: 55.53 kB / 0.7892 GB, free: 10 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.216e-05/0.2237, allocations: 97.77 kB / 0.7893 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.103e-05/0.2237, allocations: 25.7 kB / 0.7894 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.294e-05/0.2238, allocations: 80.14 kB / 0.7894 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.2238, allocations: 3.984 kB / 0.7894 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.057e-05/0.2238, allocations: 13.66 kB / 0.7894 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.2239, allocations: 318.8 kB / 0.7898 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-06/0.2239, allocations: 4 kB / 0.7898 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-06/0.2239, allocations: 3.984 kB / 0.7898 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.925e-05/0.224, allocations: 20.92 kB / 0.7898 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.224, allocations: 0 / 0.7898 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.771e-05/0.224, allocations: 33.7 kB / 0.7898 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.2241, allocations: 4 kB / 0.7898 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2241, allocations: 0 / 0.7898 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.2241, allocations: 3.938 kB / 0.7898 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.156e-05/0.2241, allocations: 7.984 kB / 0.7898 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.2242, allocations: 3.938 kB / 0.7898 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.32e-05/0.2242, allocations: 288 / 0.7898 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-06/0.2242, allocations: 4.031 kB / 0.7898 GB, free: 9.348 MB / 0.6075 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 (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 6.434e-05/0.2243, allocations: 118.4 kB / 0.7899 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-06/0.2243, allocations: 0 / 0.7899 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.871e-05/0.2244, allocations: 44.75 kB / 0.79 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2244, allocations: 0 / 0.79 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2244, allocations: 0 / 0.79 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2244, allocations: 0 / 0.79 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.834e-05/0.2245, allocations: 153.7 kB / 0.7901 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2245, allocations: 0 / 0.7901 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.249e-05/0.2245, allocations: 8.031 kB / 0.7901 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.2245, allocations: 0 / 0.7901 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2245, allocations: 3.938 kB / 0.7901 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.2245, allocations: 4 kB / 0.7902 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2245, allocations: 3.938 kB / 0.7902 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.418e-05/0.2246, allocations: 61.12 kB / 0.7902 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.253e-05/0.2247, allocations: 84.95 kB / 0.7903 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.2247, allocations: 11.97 kB / 0.7903 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.156e-05/0.2247, allocations: 3.938 kB / 0.7903 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.207e-05/0.2247, allocations: 0 / 0.7903 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.2247, allocations: 0 / 0.7903 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.969e-05/0.2248, allocations: 79.27 kB / 0.7904 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2248, allocations: 4 kB / 0.7904 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000181/0.225, allocations: 8 kB / 0.7904 GB, free: 8.664 MB / 0.6075 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 (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.0001297/0.2251, allocations: 99.25 kB / 0.7905 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 6.102e-05/0.2252, allocations: 15.94 kB / 0.7905 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.2252, allocations: 0 / 0.7905 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.473e-05/0.2252, allocations: 7.984 kB / 0.7905 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.2253, allocations: 0 / 0.7905 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001766/0.2255, allocations: 86.14 kB / 0.7906 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.2257, allocations: 0.6692 MB / 0.7912 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.643e-05/0.2257, allocations: 7.984 kB / 0.7913 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.332e-05/0.2258, allocations: 7.438 kB / 0.7913 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2258, allocations: 4.125 kB / 0.7913 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of Templates: time 0.00199/0.2278, allocations: 305.6 kB / 0.7916 GB, free: 7.414 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: