Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.395/1.395, allocations: 252 MB / 268 MB, free: 10.86 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.001105/0.001105, allocations: 171 kB / 327.6 MB, free: 2.102 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.909/1.909, allocations: 205.4 MB / 0.5786 GB, free: 20.12 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.0008655/0.0008655, allocations: 88.2 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003297, allocations: 11.16 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.234, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0009549/0.235, allocations: 334.3 kB / 0.9018 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003964/0.2355, allocations: 57.06 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.675e-05/0.2355, allocations: 0 / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 5.834e-05/0.2356, allocations: 3.984 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.855e-06/0.2356, allocations: 3.938 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.236, allocations: 8 kB / 0.9018 GB, free: 63.08 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.2361, allocations: 31.97 kB / 0.9019 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.282e-05/0.2362, allocations: 0 / 0.9019 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 3.63e-05/0.2363, allocations: 11.98 kB / 0.9019 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.603e-05/0.2363, allocations: 11.98 kB / 0.9019 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.167e-05/0.2363, allocations: 4 kB / 0.9019 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2365, allocations: 19.98 kB / 0.9019 GB, free: 63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.2365, allocations: 7.984 kB / 0.9019 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.268e-05/0.2366, allocations: 41.58 kB / 0.902 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.993e-05/0.2367, allocations: 23.95 kB / 0.902 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.2367, allocations: 0 / 0.902 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of FrontEnd: time 4.358e-06/0.2367, allocations: 0 / 0.902 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.2367, allocations: 0 / 0.902 GB, free: 62.92 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003797/0.2371, allocations: 327.5 kB / 0.9023 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.429e-05/0.2372, allocations: 12.03 kB / 0.9023 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.2373, allocations: 0.9375 kB / 0.9023 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.2374, allocations: 172.3 kB / 0.9025 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2374, allocations: 8.375 kB / 0.9025 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.2374, allocations: 4.375 kB / 0.9025 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.2376, allocations: 58.23 kB / 0.9026 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2376, allocations: 192 / 0.9026 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2376, allocations: 3.938 kB / 0.9026 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.2377, allocations: 4 kB / 0.9026 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.2378, allocations: 103.9 kB / 0.9027 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001801/0.238, allocations: 177.7 kB / 0.9028 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.2381, allocations: 82.47 kB / 0.9029 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.39e-05/0.2382, allocations: 32.84 kB / 0.9029 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00036/0.2385, allocations: 397.5 kB / 0.9033 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.2386, allocations: 34.56 kB / 0.9034 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.2386, allocations: 4 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0002619/0.2388, allocations: 117.8 kB / 0.9035 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.2389, allocations: 59.34 kB / 0.9035 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.613e-05/0.2389, allocations: 101.8 kB / 0.9036 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.239, allocations: 25.7 kB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.467e-05/0.239, allocations: 80.14 kB / 0.9037 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.239, allocations: 23.73 kB / 0.9037 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/0.2391, allocations: 4 kB / 0.9037 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2392, allocations: 318.8 kB / 0.9041 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.922e-05/0.2392, allocations: 19.98 kB / 0.9041 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.305e-05/0.2393, allocations: 19.98 kB / 0.9041 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.177e-05/0.2394, allocations: 61.5 kB / 0.9041 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2394, allocations: 0 / 0.9041 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001276/0.2395, allocations: 105.4 kB / 0.9042 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2395, allocations: 4 kB / 0.9043 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2395, allocations: 3.938 kB / 0.9043 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.025e-05/0.2396, allocations: 0 / 0.9043 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.2397, allocations: 19.98 kB / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.2398, allocations: 0 / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.348e-05/0.2398, allocations: 8 kB / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.2398, allocations: 0 / 0.9043 GB, free: 60.27 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001744/0.24, allocations: 125.8 kB / 0.9044 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.24, allocations: 7.906 kB / 0.9044 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.2403, allocations: 125.4 kB / 0.9045 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.2403, allocations: 4 kB / 0.9045 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2403, allocations: 0 / 0.9045 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2403, allocations: 0 / 0.9045 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.2404, allocations: 177.6 kB / 0.9047 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2404, allocations: 0 / 0.9047 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.386e-05/0.2405, allocations: 19.98 kB / 0.9047 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2405, allocations: 3.938 kB / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.2405, allocations: 4 kB / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2405, allocations: 0 / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2405, allocations: 0 / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.2407, allocations: 124.9 kB / 0.9048 GB, free: 59.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.2407, allocations: 85.05 kB / 0.9049 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.2408, allocations: 7.938 kB / 0.9049 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.467e-05/0.2408, allocations: 0 / 0.9049 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.452e-05/0.2408, allocations: 11.98 kB / 0.9049 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.2408, allocations: 7.984 kB / 0.905 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.299e-05/0.2409, allocations: 75.28 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.2409, allocations: 0 / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000205/0.2411, allocations: 16 kB / 0.905 GB, free: 59.38 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002037/0.2413, allocations: 125.2 kB / 0.9052 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.2414, allocations: 63.91 kB / 0.9052 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2414, allocations: 0 / 0.9052 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 3.915e-05/0.2415, allocations: 35.92 kB / 0.9053 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.2416, allocations: 14.34 kB / 0.9053 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.242, allocations: 176.3 kB / 0.9054 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001641/0.2421, allocations: 0.6917 MB / 0.9061 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.787e-05/0.2422, allocations: 19.42 kB / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2422, allocations: 4 kB / 0.9061 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.00256/0.2447, allocations: 0.9359 MB / 0.9071 GB, free: 57.27 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)