Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001205, allocations: 116.9 kB / 16.37 MB, free: 6.016 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.001199/0.001199, allocations: 189.7 kB / 17.3 MB, free: 5.613 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.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002108/0.002108, allocations: 286.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8921/0.8921, allocations: 169.2 MB / 0.4989 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 102.9 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1516, allocations: 86.98 MB / 0.6816 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002477/0.1541, allocations: 1.521 MB / 0.6831 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003125/0.1544, allocations: 128.5 kB / 0.6832 GB, free: 5.812 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.032e-05/0.1544, allocations: 4 kB / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.832e-05/0.1545, allocations: 11.92 kB / 0.6832 GB, free: 5.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.281e-05/0.1545, allocations: 3.938 kB / 0.6832 GB, free: 5.793 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002359/0.1548, allocations: 31.89 kB / 0.6833 GB, free: 5.762 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.187e-05/0.1548, allocations: 35.92 kB / 0.6833 GB, free: 5.727 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.1549, allocations: 11.94 kB / 0.6833 GB, free: 5.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.564e-05/0.155, allocations: 15.98 kB / 0.6833 GB, free: 5.699 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.68e-05/0.155, allocations: 19.91 kB / 0.6833 GB, free: 5.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.155, allocations: 4 kB / 0.6833 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.257e-05/0.1551, allocations: 19.98 kB / 0.6834 GB, free: 5.656 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.1551, allocations: 15.92 kB / 0.6834 GB, free: 5.641 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.1551, allocations: 19.94 kB / 0.6834 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.1552, allocations: 35.88 kB / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.1553, allocations: 7.984 kB / 0.6834 GB, free: 5.578 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1553, allocations: 0 / 0.6834 GB, free: 5.578 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1553, allocations: 0 / 0.6834 GB, free: 5.578 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003937/0.1557, allocations: 355.2 kB / 0.6838 GB, free: 5.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.1557, allocations: 8.031 kB / 0.6838 GB, free: 5.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1557, allocations: 8.938 kB / 0.6838 GB, free: 5.168 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.1559, allocations: 180.2 kB / 0.684 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.1559, allocations: 384 / 0.684 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.1559, allocations: 384 / 0.684 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.1561, allocations: 70.11 kB / 0.684 GB, free: 4.879 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-06/0.1561, allocations: 192 / 0.684 GB, free: 4.879 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.1561, allocations: 3.938 kB / 0.684 GB, free: 4.875 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1561, allocations: 0 / 0.684 GB, free: 4.875 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.1563, allocations: 47.95 kB / 0.6841 GB, free: 4.828 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.1566, allocations: 280.8 kB / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.1569, allocations: 62.47 kB / 0.6844 GB, free: 4.434 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.532e-05/0.157, allocations: 28.89 kB / 0.6844 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.1573, allocations: 397.5 kB / 0.6848 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1573, allocations: 38.56 kB / 0.6849 GB, free: 3.875 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1573, allocations: 0 / 0.6849 GB, free: 3.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003412/0.1577, allocations: 93.53 kB / 0.6849 GB, free: 3.777 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.1577, allocations: 55.34 kB / 0.685 GB, free: 3.711 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.1578, allocations: 113.8 kB / 0.6851 GB, free: 3.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.1578, allocations: 29.7 kB / 0.6851 GB, free: 3.555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.1579, allocations: 80.14 kB / 0.6852 GB, free: 3.473 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.1579, allocations: 7.906 kB / 0.6852 GB, free: 3.465 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.1579, allocations: 21.7 kB / 0.6852 GB, free: 3.438 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.158, allocations: 322.8 kB / 0.6855 GB, free: 3.113 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.1581, allocations: 15.97 kB / 0.6856 GB, free: 3.098 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.469e-05/0.1582, allocations: 19.98 kB / 0.6856 GB, free: 3.078 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.1584, allocations: 52.81 kB / 0.6856 GB, free: 3.023 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1584, allocations: 0 / 0.6856 GB, free: 3.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001963/0.1586, allocations: 73.59 kB / 0.6857 GB, free: 2.945 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.1586, allocations: 8 kB / 0.6857 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.1586, allocations: 0 / 0.6857 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.1586, allocations: 0 / 0.6857 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.655e-05/0.1587, allocations: 19.92 kB / 0.6857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.1587, allocations: 0 / 0.6857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.652e-05/0.1588, allocations: 11.89 kB / 0.6857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.1588, allocations: 0 / 0.6857 GB, free: 2.906 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: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.551e-05/0.1589, allocations: 117.8 kB / 0.6859 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.1589, allocations: 0 / 0.6859 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.1591, allocations: 81.55 kB / 0.6859 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1592, allocations: 4 kB / 0.6859 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1592, allocations: 3.938 kB / 0.6859 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1592, allocations: 0 / 0.6859 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001558/0.1593, allocations: 177.5 kB / 0.6861 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1593, allocations: 0 / 0.6861 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-05/0.1594, allocations: 11.98 kB / 0.6861 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1594, allocations: 0 / 0.6861 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.1594, allocations: 4 kB / 0.6861 GB, free: 2.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1595, allocations: 7.938 kB / 0.6861 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1595, allocations: 0 / 0.6861 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.1597, allocations: 175.7 kB / 0.6863 GB, free: 2.25 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.1597, allocations: 81.14 kB / 0.6864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1598, allocations: 3.984 kB / 0.6864 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.1599, allocations: 8 kB / 0.6864 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.326e-05/0.1599, allocations: 7.984 kB / 0.6864 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1599, allocations: 0 / 0.6864 GB, free: 2.133 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.019e-05/0.16, allocations: 99.56 kB / 0.6865 GB, free: 2.035 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.16, allocations: 3.938 kB / 0.6865 GB, free: 2.031 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.1602, allocations: 8 kB / 0.6865 GB, free: 2.023 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001193/0.1603, allocations: 99.25 kB / 0.6866 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002071/0.1606, allocations: 47.95 kB / 0.6866 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1606, allocations: 0 / 0.6866 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.1607, allocations: 27.97 kB / 0.6867 GB, free: 1.844 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.1609, allocations: 7.938 kB / 0.6867 GB, free: 1.836 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002632/0.1612, allocations: 128.6 kB / 0.6868 GB, free: 1.688 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.1614, allocations: 0.6807 MB / 0.6875 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.928e-05/0.1615, allocations: 7.984 kB / 0.6875 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.564e-05/0.1615, allocations: 15.44 kB / 0.6875 GB, free: 0.957 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1615, allocations: 3.938 kB / 0.6875 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of Templates: time 0.002634/0.1642, allocations: 0.7627 MB / 0.6882 GB, free: 196 kB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)