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.001007/0.001007, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001022/0.001022, allocations: 191.6 kB / 16.14 MB, free: 6.711 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.333/1.333, allocations: 205.1 MB / 222 MB, free: 4.762 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.635/1.635, allocations: 292.2 MB / 0.5484 GB, free: 13.63 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.002233/0.002233, allocations: 70.08 kB / 0.6708 GB, free: 26.4 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.215, allocations: 114.5 MB / 0.7827 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002296/0.2173, allocations: 0.6548 MB / 0.7833 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003095/0.2177, allocations: 51.86 kB / 0.7834 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.041e-05/0.2177, allocations: 0 / 0.7834 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.2177, allocations: 3.938 kB / 0.7834 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.761e-06/0.2178, allocations: 0 / 0.7834 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.2179, allocations: 7.984 kB / 0.7834 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 5.568e-05/0.218, allocations: 0 / 0.7834 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.36e-05/0.2181, allocations: 0 / 0.7834 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.646e-05/0.2181, allocations: 11.98 kB / 0.7834 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.062e-05/0.2181, allocations: 3.938 kB / 0.7834 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.2181, allocations: 0 / 0.7834 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.799e-05/0.2182, allocations: 8 kB / 0.7834 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.2182, allocations: 0 / 0.7834 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.2183, allocations: 11.98 kB / 0.7834 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.348e-05/0.2183, allocations: 0 / 0.7834 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.2184, allocations: 7.938 kB / 0.7834 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.61e-07/0.2184, allocations: 0 / 0.7834 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.2184, allocations: 0 / 0.7834 GB, free: 13.21 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.0003438/0.2187, allocations: 319.6 kB / 0.7837 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.2188, allocations: 8.031 kB / 0.7837 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.2188, allocations: 0.9375 kB / 0.7837 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.2189, allocations: 164.4 kB / 0.7839 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.2189, allocations: 4.375 kB / 0.7839 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.219, allocations: 4.312 kB / 0.7839 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.2191, allocations: 38.19 kB / 0.7839 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2191, allocations: 192 / 0.7839 GB, free: 12.59 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.2191, allocations: 3.938 kB / 0.7839 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.2191, allocations: 0 / 0.7839 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.922e-05/0.2192, allocations: 4 kB / 0.7839 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.2193, allocations: 157.7 kB / 0.7841 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.343e-05/0.2194, allocations: 22.61 kB / 0.7841 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.882e-05/0.2194, allocations: 8.922 kB / 0.7841 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000175/0.2196, allocations: 85.09 kB / 0.7842 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.2197, allocations: 38.5 kB / 0.7842 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.2197, allocations: 0 / 0.7842 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001724/0.2199, allocations: 41.77 kB / 0.7843 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.2199, allocations: 55.41 kB / 0.7843 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.725e-05/0.22, allocations: 93.86 kB / 0.7844 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.22, allocations: 25.7 kB / 0.7845 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.89e-05/0.22, allocations: 84.12 kB / 0.7845 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.22, allocations: 3.906 kB / 0.7845 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.2201, allocations: 17.72 kB / 0.7846 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2202, allocations: 310.8 kB / 0.7848 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.2202, allocations: 0 / 0.7848 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.31e-05/0.2202, allocations: 8 kB / 0.7849 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.81e-05/0.2203, allocations: 16.8 kB / 0.7849 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2203, allocations: 0 / 0.7849 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.548e-05/0.2204, allocations: 37.69 kB / 0.7849 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2204, allocations: 4 kB / 0.7849 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2204, allocations: 4 kB / 0.7849 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2204, allocations: 3.938 kB / 0.7849 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.392e-05/0.2205, allocations: 0 / 0.7849 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.2205, allocations: 8.094 kB / 0.7849 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.2205, allocations: 4.281 kB / 0.7849 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.2205, allocations: 3.984 kB / 0.7849 GB, free: 11.41 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 7.091e-05/0.2206, allocations: 114.4 kB / 0.785 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.2206, allocations: 0 / 0.785 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.891e-05/0.2207, allocations: 56.62 kB / 0.7851 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2208, allocations: 0 / 0.7851 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.2208, allocations: 7.938 kB / 0.7851 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2208, allocations: 32 / 0.7851 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.2209, allocations: 145.7 kB / 0.7852 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2209, allocations: 0 / 0.7852 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.782e-05/0.2209, allocations: 7.984 kB / 0.7853 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.221, allocations: 0 / 0.7853 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.221, allocations: 3.938 kB / 0.7853 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.221, allocations: 0 / 0.7853 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.221, allocations: 0 / 0.7853 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.133e-05/0.2211, allocations: 69.08 kB / 0.7853 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.2211, allocations: 81.09 kB / 0.7854 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.2211, allocations: 3.938 kB / 0.7854 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.28e-05/0.2212, allocations: 4 kB / 0.7854 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.2212, allocations: 4 kB / 0.7854 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.2212, allocations: 0 / 0.7854 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 2.961e-05/0.2212, allocations: 75.28 kB / 0.7855 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2212, allocations: 0 / 0.7855 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001968/0.2214, allocations: 4 kB / 0.7855 GB, free: 10.74 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.0002007/0.2217, allocations: 107.3 kB / 0.7856 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.887e-05/0.2217, allocations: 8 kB / 0.7856 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2218, allocations: 0 / 0.7856 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.208e-05/0.2218, allocations: 11.94 kB / 0.7856 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.2219, allocations: 3.234 kB / 0.7856 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/0.2222, allocations: 90.59 kB / 0.7857 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.2224, allocations: 0.6731 MB / 0.7864 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.56e-05/0.2225, allocations: 4.125 kB / 0.7864 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.2225, allocations: 15.44 kB / 0.7864 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.2225, allocations: 0 / 0.7864 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of Templates: time 0.00267/0.2252, allocations: 317.7 kB / 0.7867 GB, free: 9.465 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (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)