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 loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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") 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.204/2.204, allocations: 251.3 MB / 266.2 MB, free: 11.5 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.002855/0.002854, allocations: 188.9 kB / 325.8 MB, free: 2.758 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.386/2.386, allocations: 205.4 MB / 0.5767 GB, free: 20.67 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.0009537/0.0009536, allocations: 96.61 kB / 0.6813 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00046/0.0004602, allocations: 11.81 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2186, allocations: 106.3 MB / 0.8991 GB, free: 65.35 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007504/0.2194, allocations: 322.2 kB / 0.8994 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000239/0.2196, allocations: 47.91 kB / 0.8994 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.011e-05/0.2197, allocations: 0 / 0.8994 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.2197, allocations: 0 / 0.8994 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.134e-06/0.2197, allocations: 0 / 0.8994 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.2199, allocations: 8 kB / 0.8994 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.85e-05/0.22, allocations: 3.938 kB / 0.8994 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.37e-05/0.22, allocations: 4 kB / 0.8994 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.825e-05/0.22, allocations: 15.91 kB / 0.8994 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.509e-05/0.2201, allocations: 3.938 kB / 0.8994 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.2201, allocations: 0 / 0.8994 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.368e-05/0.2202, allocations: 4 kB / 0.8994 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.2202, allocations: 4 kB / 0.8994 GB, free: 64.94 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.791e-05/0.2202, allocations: 29.7 kB / 0.8995 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.897e-05/0.2203, allocations: 7.984 kB / 0.8995 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2203, allocations: 0 / 0.8995 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2203, allocations: 0 / 0.8995 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.2203, allocations: 0 / 0.8995 GB, free: 64.9 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.0002258/0.2206, allocations: 308.7 kB / 0.8998 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2206, allocations: 12.09 kB / 0.8998 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.2206, allocations: 4.844 kB / 0.8998 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.542e-05/0.2207, allocations: 164.4 kB / 0.8999 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2207, allocations: 4.375 kB / 0.9 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2208, allocations: 384 / 0.9 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.728e-05/0.2209, allocations: 38.2 kB / 0.9 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2209, allocations: 192 / 0.9 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.2209, allocations: 3.938 kB / 0.9 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2209, allocations: 0 / 0.9 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.004e-05/0.221, allocations: 4 kB / 0.9 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001156/0.2211, allocations: 149.7 kB / 0.9001 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.896e-05/0.2212, allocations: 26.58 kB / 0.9002 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.997e-05/0.2212, allocations: 4.859 kB / 0.9002 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001597/0.2214, allocations: 89.14 kB / 0.9003 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2214, allocations: 34.5 kB / 0.9003 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.2214, allocations: 0 / 0.9003 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001431/0.2216, allocations: 49.62 kB / 0.9003 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.2216, allocations: 55.53 kB / 0.9004 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.863e-05/0.2216, allocations: 89.86 kB / 0.9005 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.857e-06/0.2216, allocations: 29.64 kB / 0.9005 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.44e-05/0.2217, allocations: 84.14 kB / 0.9006 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.59e-05/0.2217, allocations: 0 / 0.9006 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-06/0.2217, allocations: 0 / 0.9006 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.205e-05/0.2218, allocations: 310.8 kB / 0.9009 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.271e-05/0.2218, allocations: 4 kB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.969e-06/0.2218, allocations: 0 / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.403e-05/0.2218, allocations: 8.062 kB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2219, allocations: 0 / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.802e-05/0.2219, allocations: 45.62 kB / 0.9009 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.222, allocations: 4 kB / 0.9009 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.222, allocations: 0 / 0.9009 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.222, allocations: 7.938 kB / 0.9009 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.161e-05/0.2221, allocations: 3.938 kB / 0.9009 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2221, allocations: 0 / 0.9009 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.2221, allocations: 4 kB / 0.901 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.2221, allocations: 0 / 0.901 GB, free: 63.16 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 5.357e-05/0.2222, allocations: 113.9 kB / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.2222, allocations: 4 kB / 0.9011 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.2223, allocations: 52.59 kB / 0.9011 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2223, allocations: 0 / 0.9011 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2223, allocations: 0 / 0.9011 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.2223, allocations: 4 kB / 0.9011 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.813e-05/0.2224, allocations: 149.7 kB / 0.9013 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2224, allocations: 0 / 0.9013 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.301e-05/0.2225, allocations: 8.031 kB / 0.9013 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2225, allocations: 3.984 kB / 0.9013 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.2225, allocations: 7.938 kB / 0.9013 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2225, allocations: 0 / 0.9013 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2225, allocations: 0 / 0.9013 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.551e-05/0.2226, allocations: 61.14 kB / 0.9013 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.04e-05/0.2226, allocations: 85.03 kB / 0.9014 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.2227, allocations: 3.938 kB / 0.9014 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.521e-05/0.2227, allocations: 4.031 kB / 0.9014 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.2227, allocations: 0 / 0.9014 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.2227, allocations: 4 kB / 0.9014 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.549e-05/0.2228, allocations: 79.22 kB / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.21e-07/0.2228, allocations: 0 / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002241/0.223, allocations: 8 kB / 0.9015 GB, free: 62.48 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.0001486/0.2232, allocations: 107.2 kB / 0.9016 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 7.202e-05/0.2232, allocations: 12 kB / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2233, allocations: 0 / 0.9016 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.916e-05/0.2233, allocations: 4 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001737/0.2235, allocations: 3.938 kB / 0.9016 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001764/0.2237, allocations: 86.69 kB / 0.9017 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.2238, allocations: 0.6692 MB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.684e-05/0.2238, allocations: 4 kB / 0.9024 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.581e-05/0.2238, allocations: 7.438 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of SimCode: time 6.21e-07/0.2238, allocations: 4.125 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of Templates: time 0.002509/0.2264, allocations: 301.4 kB / 0.9027 GB, free: 61.23 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)