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.514/1.514, allocations: 252 MB / 267.6 MB, free: 10.89 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.0009508/0.0009509, allocations: 177.5 kB / 327.3 MB, free: 2.199 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.872/1.872, allocations: 205.4 MB / 0.5783 GB, free: 20.51 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.0007572/0.0007575, allocations: 90.91 kB / 0.6829 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000452/0.0004521, allocations: 16.69 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2226, allocations: 106.3 MB / 0.9008 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007458/0.2234, allocations: 322.5 kB / 0.9011 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002558/0.2237, allocations: 47.89 kB / 0.9012 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.418e-05/0.2237, allocations: 0 / 0.9012 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.147e-05/0.2237, allocations: 4 kB / 0.9012 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.943e-06/0.2237, allocations: 0 / 0.9012 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.224, allocations: 11.98 kB / 0.9012 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 4.621e-05/0.224, allocations: 7.938 kB / 0.9012 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.183e-05/0.2241, allocations: 1.156 kB / 0.9012 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.2241, allocations: 0 / 0.9012 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.276e-05/0.2241, allocations: 0 / 0.9012 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.2242, allocations: 3.938 kB / 0.9012 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.806e-05/0.2242, allocations: 12 kB / 0.9012 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.2242, allocations: 7.922 kB / 0.9012 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.333e-05/0.2243, allocations: 29.69 kB / 0.9013 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.683e-05/0.2243, allocations: 4 kB / 0.9013 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2244, allocations: 4 kB / 0.9013 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.264e-06/0.2244, allocations: 0 / 0.9013 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.2244, allocations: 0 / 0.9013 GB, free: 63.82 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.0002323/0.2246, allocations: 315.3 kB / 0.9016 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2247, allocations: 12.09 kB / 0.9016 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.295e-05/0.2247, allocations: 4 kB / 0.9016 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.773e-05/0.2248, allocations: 163 kB / 0.9017 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2248, allocations: 0 / 0.9017 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.2248, allocations: 0 / 0.9017 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.2249, allocations: 37.69 kB / 0.9018 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2249, allocations: 0 / 0.9018 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.225, allocations: 4 kB / 0.9018 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.225, allocations: 0 / 0.9018 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.189e-05/0.225, allocations: 7.938 kB / 0.9018 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.2252, allocations: 153.6 kB / 0.9019 GB, free: 63 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.956e-05/0.2252, allocations: 22.59 kB / 0.902 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.2252, allocations: 16.92 kB / 0.902 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.2254, allocations: 77.11 kB / 0.9021 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.2255, allocations: 34.56 kB / 0.9021 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.472e-06/0.2255, allocations: 0 / 0.9021 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001543/0.2256, allocations: 45.62 kB / 0.9021 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.2257, allocations: 51.41 kB / 0.9022 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.534e-05/0.2257, allocations: 89.86 kB / 0.9023 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.2257, allocations: 33.77 kB / 0.9023 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.31e-05/0.2257, allocations: 80.14 kB / 0.9024 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.2258, allocations: 0 / 0.9024 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-06/0.2258, allocations: 0 / 0.9024 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.2258, allocations: 318.8 kB / 0.9027 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.013e-05/0.2258, allocations: 3.984 kB / 0.9027 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-06/0.2258, allocations: 4 kB / 0.9027 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.281e-05/0.2259, allocations: 0 / 0.9027 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2259, allocations: 3.953 kB / 0.9027 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.85e-05/0.2259, allocations: 49.69 kB / 0.9027 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.226, allocations: 8 kB / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.226, allocations: 0 / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.936e-05/0.226, allocations: 3.984 kB / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.35e-05/0.2261, allocations: 0 / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.2261, allocations: 7.938 kB / 0.9028 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.593e-05/0.2261, allocations: 0 / 0.9028 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.2262, allocations: 0 / 0.9028 GB, free: 62.07 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.931e-05/0.2262, allocations: 109.9 kB / 0.9029 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.2262, allocations: 11.86 kB / 0.9029 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.753e-05/0.2263, allocations: 40.81 kB / 0.9029 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.2263, allocations: 0 / 0.9029 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2263, allocations: 7.938 kB / 0.9029 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2264, allocations: 0 / 0.9029 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.416e-05/0.2264, allocations: 145.7 kB / 0.9031 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2264, allocations: 0 / 0.9031 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.2265, allocations: 7.953 kB / 0.9031 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.2265, allocations: 0 / 0.9031 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.2265, allocations: 4.031 kB / 0.9031 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2265, allocations: 0 / 0.9031 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2265, allocations: 4 kB / 0.9031 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.975e-05/0.2266, allocations: 65.12 kB / 0.9031 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.703e-05/0.2266, allocations: 77.11 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.2266, allocations: 3.953 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.186e-05/0.2266, allocations: 0 / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.2267, allocations: 4 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.2267, allocations: 12.02 kB / 0.9032 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.437e-05/0.2267, allocations: 79.22 kB / 0.9033 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.41e-07/0.2267, allocations: 0 / 0.9033 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002279/0.2269, allocations: 7.938 kB / 0.9033 GB, free: 61.4 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.0001532/0.2271, allocations: 99.25 kB / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 7.755e-05/0.2272, allocations: 12 kB / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2272, allocations: 0 / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.919e-06/0.2272, allocations: 8.062 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.2273, allocations: 6.562 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002103/0.2276, allocations: 104.5 kB / 0.9035 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.2277, allocations: 0.677 MB / 0.9042 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.461e-05/0.2277, allocations: 7.438 kB / 0.9042 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of SimCode: time 7.01e-07/0.2277, allocations: 0 / 0.9042 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of Templates: time 0.001772/0.2295, allocations: 447.6 kB / 0.9046 GB, free: 59.98 MB / 0.6042 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)