Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7758/0.7758, allocations: 143.4 MB / 159.2 MB, free: 4.891 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 188.5 kB / 191.9 MB, free: 5.703 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 447.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009586/0.0009586, allocations: 99 kB / 0.517 GB, free: 3.723 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001952/0.001952, allocations: 281.4 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 83.88 kB / 0.6886 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.355, allocations: 81.29 MB / 0.7679 GB, free: 27.65 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001677/0.3567, allocations: 0.6361 MB / 0.7686 GB, free: 27.02 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002691/0.357, allocations: 63.03 kB / 0.7686 GB, free: 26.96 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.432e-05/0.3571, allocations: 0 / 0.7686 GB, free: 26.96 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 3.266e-05/0.3571, allocations: 0 / 0.7686 GB, free: 26.96 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.3571, allocations: 4 kB / 0.7686 GB, free: 26.96 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.3573, allocations: 15.98 kB / 0.7686 GB, free: 26.94 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 6.732e-05/0.3574, allocations: 23.98 kB / 0.7687 GB, free: 26.92 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.803e-05/0.3575, allocations: 6.047 kB / 0.7687 GB, free: 26.91 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.725e-05/0.3575, allocations: 15.98 kB / 0.7687 GB, free: 26.9 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.342e-05/0.3575, allocations: 11.98 kB / 0.7687 GB, free: 26.89 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.3575, allocations: 4 kB / 0.7687 GB, free: 26.88 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.3576, allocations: 11.94 kB / 0.7687 GB, free: 26.87 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 2.401e-05/0.3576, allocations: 19.91 kB / 0.7687 GB, free: 26.85 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.3577, allocations: 11.94 kB / 0.7688 GB, free: 26.84 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 7.798e-05/0.3577, allocations: 35.89 kB / 0.7688 GB, free: 26.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3578, allocations: 4 kB / 0.7688 GB, free: 26.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.3578, allocations: 0 / 0.7688 GB, free: 26.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.3578, allocations: 0 / 0.7688 GB, free: 26.8 MB / 458.7 MB 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.0002414/0.358, allocations: 342.2 kB / 0.7691 GB, free: 26.42 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.358, allocations: 8.031 kB / 0.7691 GB, free: 26.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.3581, allocations: 4.844 kB / 0.7691 GB, free: 26.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.143e-05/0.3581, allocations: 164.4 kB / 0.7693 GB, free: 26.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3582, allocations: 4.375 kB / 0.7693 GB, free: 26.2 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.3582, allocations: 4.375 kB / 0.7693 GB, free: 26.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3583, allocations: 66.22 kB / 0.7694 GB, free: 26.13 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3583, allocations: 192 / 0.7694 GB, free: 26.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.3583, allocations: 11.88 kB / 0.7694 GB, free: 26.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3583, allocations: 0 / 0.7694 GB, free: 26.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.3585, allocations: 103.8 kB / 0.7695 GB, free: 26.02 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.3586, allocations: 173.6 kB / 0.7696 GB, free: 25.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.766e-05/0.3587, allocations: 70.55 kB / 0.7697 GB, free: 25.72 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.845e-05/0.3587, allocations: 28.84 kB / 0.7697 GB, free: 25.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002632/0.359, allocations: 413.5 kB / 0.7701 GB, free: 25.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.359, allocations: 38.56 kB / 0.7702 GB, free: 25.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.359, allocations: 0 / 0.7702 GB, free: 25.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001999/0.3592, allocations: 121.7 kB / 0.7703 GB, free: 25.02 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.513e-05/0.3593, allocations: 51.41 kB / 0.7703 GB, free: 24.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.928e-05/0.3593, allocations: 93.86 kB / 0.7704 GB, free: 24.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.323e-06/0.3593, allocations: 29.7 kB / 0.7704 GB, free: 24.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.445e-06/0.3593, allocations: 84.12 kB / 0.7705 GB, free: 24.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.3593, allocations: 27.66 kB / 0.7705 GB, free: 24.71 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.3594, allocations: 29.7 kB / 0.7706 GB, free: 24.67 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 3.593e-05/0.3594, allocations: 314.8 kB / 0.7709 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.07e-05/0.3594, allocations: 19.98 kB / 0.7709 GB, free: 24.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.8e-05/0.3595, allocations: 19.98 kB / 0.7709 GB, free: 24.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.565e-05/0.3596, allocations: 65.48 kB / 0.771 GB, free: 24.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3596, allocations: 3.938 kB / 0.771 GB, free: 24.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001021/0.3597, allocations: 97.55 kB / 0.7711 GB, free: 24.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3597, allocations: 4 kB / 0.7711 GB, free: 24.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3597, allocations: 7.938 kB / 0.7711 GB, free: 24.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.3597, allocations: 3.938 kB / 0.7711 GB, free: 24.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.85e-05/0.3598, allocations: 19.98 kB / 0.7711 GB, free: 24.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.3598, allocations: 0 / 0.7711 GB, free: 24.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.692e-05/0.3599, allocations: 4 kB / 0.7711 GB, free: 24.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.3599, allocations: 0 / 0.7711 GB, free: 24.11 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * 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.000108/0.36, allocations: 129.1 kB / 0.7712 GB, free: 23.97 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.135e-05/0.36, allocations: 7.906 kB / 0.7712 GB, free: 23.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.3602, allocations: 129.5 kB / 0.7714 GB, free: 23.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3602, allocations: 0 / 0.7714 GB, free: 23.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3602, allocations: 0 / 0.7714 GB, free: 23.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.3602, allocations: 4 kB / 0.7714 GB, free: 23.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.527e-05/0.3603, allocations: 177.5 kB / 0.7715 GB, free: 23.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3603, allocations: 0 / 0.7715 GB, free: 23.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.083e-05/0.3603, allocations: 27.92 kB / 0.7716 GB, free: 23.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3604, allocations: 3.938 kB / 0.7716 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.3604, allocations: 4 kB / 0.7716 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3604, allocations: 4 kB / 0.7716 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3604, allocations: 0 / 0.7716 GB, free: 23.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002554/0.3606, allocations: 0.6903 MB / 0.7723 GB, free: 22.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.3607, allocations: 81.02 kB / 0.7723 GB, free: 22.72 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.3607, allocations: 4 kB / 0.7723 GB, free: 22.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.411e-05/0.3607, allocations: 4 kB / 0.7723 GB, free: 22.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.3607, allocations: 11.98 kB / 0.7723 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.3608, allocations: 4 kB / 0.7724 GB, free: 22.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 1.173e-05/0.3608, allocations: 75.28 kB / 0.7724 GB, free: 22.62 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3608, allocations: 0 / 0.7724 GB, free: 22.62 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.3611, allocations: 15.94 kB / 0.7724 GB, free: 22.61 MB / 458.7 MB 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.00013/0.3612, allocations: 112.8 kB / 0.7725 GB, free: 22.49 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.3613, allocations: 71.84 kB / 0.7726 GB, free: 22.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3613, allocations: 0 / 0.7726 GB, free: 22.42 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 4.086e-05/0.3614, allocations: 31.97 kB / 0.7726 GB, free: 22.39 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.3615, allocations: 13.81 kB / 0.7727 GB, free: 22.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002686/0.3618, allocations: 273.6 kB / 0.7729 GB, free: 22.07 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.3619, allocations: 0.6888 MB / 0.7736 GB, free: 21.35 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.159e-05/0.362, allocations: 39.92 kB / 0.7736 GB, free: 21.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.049e-05/0.362, allocations: 11.44 kB / 0.7736 GB, free: 21.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.31e-07/0.362, allocations: 0 / 0.7736 GB, free: 21.3 MB / 458.7 MB Notification: Performance of Templates: time 0.002244/0.3643, allocations: 0.6062 MB / 0.7742 GB, free: 20.7 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)