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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002096/0.002096, allocations: 190.7 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 239.9 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 287 kB / 290.4 MB, free: 2.039 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9359/0.9359, allocations: 169.2 MB / 0.4978 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 98.22 kB / 0.5947 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1547, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001628/0.1564, allocations: 0.6361 MB / 0.6803 GB, free: 440 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002347/0.1566, allocations: 55.84 kB / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.595e-05/0.1567, allocations: 0 / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.1567, allocations: 0 / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.1567, allocations: 0.75 kB / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.157, allocations: 19.92 kB / 0.6803 GB, free: 364 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.623e-05/0.157, allocations: 32.55 kB / 0.6804 GB, free: 332 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.172e-05/0.1571, allocations: 4 kB / 0.6804 GB, free: 328 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.1571, allocations: 10.34 kB / 0.6804 GB, free: 320 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.738e-05/0.1571, allocations: 19.97 kB / 0.6804 GB, free: 300 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.1571, allocations: 0 / 0.6804 GB, free: 300 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.071e-05/0.1572, allocations: 19.98 kB / 0.6804 GB, free: 280 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.194e-05/0.1572, allocations: 11.94 kB / 0.6804 GB, free: 268 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.292e-05/0.1573, allocations: 15.88 kB / 0.6804 GB, free: 252 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.082e-05/0.1574, allocations: 38.06 kB / 0.6805 GB, free: 216 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1574, allocations: 0 / 0.6805 GB, free: 216 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1574, allocations: 0 / 0.6805 GB, free: 216 kB / 478.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1574, allocations: 0 / 0.6805 GB, free: 216 kB / 478.1 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.000296/0.1577, allocations: 339.8 kB / 0.6808 GB, free: 15.83 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1577, allocations: 12.81 kB / 0.6808 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.1578, allocations: 4.844 kB / 0.6808 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.864e-05/0.1579, allocations: 162.1 kB / 0.681 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1579, allocations: 8.375 kB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.1579, allocations: 4.375 kB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.158, allocations: 66.16 kB / 0.681 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.158, allocations: 1.062 kB / 0.681 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1581, allocations: 7.938 kB / 0.6811 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1581, allocations: 3.984 kB / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.1582, allocations: 104.5 kB / 0.6812 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.1584, allocations: 166.9 kB / 0.6813 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.1585, allocations: 83.36 kB / 0.6814 GB, free: 15.12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.206e-05/0.1585, allocations: 36.84 kB / 0.6814 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002911/0.1588, allocations: 402.1 kB / 0.6818 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.1589, allocations: 34.56 kB / 0.6818 GB, free: 14.55 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.1589, allocations: 0 / 0.6818 GB, free: 14.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0002166/0.1591, allocations: 113.5 kB / 0.682 GB, free: 14.44 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.1591, allocations: 59.39 kB / 0.682 GB, free: 14.37 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.819e-05/0.1592, allocations: 97.98 kB / 0.6821 GB, free: 14.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.1592, allocations: 25.7 kB / 0.6821 GB, free: 14.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.1592, allocations: 84.08 kB / 0.6822 GB, free: 14.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.1593, allocations: 19.75 kB / 0.6822 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.1593, allocations: 37.7 kB / 0.6823 GB, free: 14.08 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.909e-05/0.1594, allocations: 314.8 kB / 0.6826 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.1595, allocations: 23.92 kB / 0.6826 GB, free: 13.74 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.09e-05/0.1595, allocations: 15.98 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.272e-05/0.1596, allocations: 60.83 kB / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1596, allocations: 0 / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001265/0.1597, allocations: 97.52 kB / 0.6828 GB, free: 13.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.1598, allocations: 8 kB / 0.6828 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1598, allocations: 7.922 kB / 0.6828 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.1598, allocations: 4 kB / 0.6828 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.103e-05/0.1599, allocations: 23.88 kB / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.1599, allocations: 0 / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.1599, allocations: 3.938 kB / 0.6828 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1599, allocations: 7.984 kB / 0.6828 GB, free: 13.51 MB / 494.1 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.0001196/0.1601, allocations: 119.7 kB / 0.6829 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.1601, allocations: 3.906 kB / 0.6829 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.1603, allocations: 137.5 kB / 0.6831 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.1603, allocations: 0 / 0.6831 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1603, allocations: 3.938 kB / 0.6831 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1603, allocations: 0 / 0.6831 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.1604, allocations: 173.6 kB / 0.6832 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1604, allocations: 7.984 kB / 0.6832 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.1605, allocations: 12 kB / 0.6832 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.1605, allocations: 7.938 kB / 0.6833 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1605, allocations: 0 / 0.6833 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.1605, allocations: 7.984 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.1606, allocations: 0 / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001504/0.1607, allocations: 117.9 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.1608, allocations: 88.89 kB / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1608, allocations: 7.984 kB / 0.6835 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.1608, allocations: 0 / 0.6835 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.759e-05/0.1608, allocations: 8 kB / 0.6835 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.1608, allocations: 3.984 kB / 0.6835 GB, free: 12.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.177e-05/0.1609, allocations: 83.22 kB / 0.6836 GB, free: 12.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1609, allocations: 0 / 0.6836 GB, free: 12.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001982/0.1611, allocations: 16 kB / 0.6836 GB, free: 12.62 MB / 494.1 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.0001546/0.1612, allocations: 114.1 kB / 0.6837 GB, free: 12.51 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001449/0.1614, allocations: 75.94 kB / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1614, allocations: 0 / 0.6838 GB, free: 12.43 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.022e-05/0.1615, allocations: 35.92 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.1616, allocations: 9.312 kB / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.1619, allocations: 153 kB / 0.6839 GB, free: 12.21 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1621, allocations: 0.6807 MB / 0.6846 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.085e-05/0.1622, allocations: 35.94 kB / 0.6846 GB, free: 11.47 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.1622, allocations: 23.44 kB / 0.6847 GB, free: 11.45 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1622, allocations: 3.938 kB / 0.6847 GB, free: 11.45 MB / 494.1 MB Notification: Performance of Templates: time 0.002414/0.1646, allocations: 0.6104 MB / 0.6853 GB, free: 10.84 MB / 494.1 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)