Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001156, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001322/0.001323, allocations: 196.3 kB / 16.14 MB, free: 6.016 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 278.6 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.095/1.095, allocations: 178.6 MB / 0.5068 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002823/0.002823, allocations: 99.91 kB / 0.6057 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1632, allocations: 89.14 MB / 0.6928 GB, free: 4.844 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001735/0.165, allocations: 0.652 MB / 0.6934 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002534/0.1652, allocations: 51.78 kB / 0.6935 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.017e-06/0.1652, allocations: 0 / 0.6935 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.1653, allocations: 0 / 0.6935 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.588e-06/0.1653, allocations: 0 / 0.6935 GB, free: 4.141 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1654, allocations: 8 kB / 0.6935 GB, free: 4.133 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.347e-05/0.1655, allocations: 8 kB / 0.6935 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.1655, allocations: 3.984 kB / 0.6935 GB, free: 4.121 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.147e-05/0.1656, allocations: 0 / 0.6935 GB, free: 4.121 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.85e-05/0.1656, allocations: 4 kB / 0.6935 GB, free: 4.117 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.886e-06/0.1656, allocations: 7.938 kB / 0.6935 GB, free: 4.109 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.748e-05/0.1657, allocations: 8 kB / 0.6935 GB, free: 4.102 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.004e-05/0.1657, allocations: 3.984 kB / 0.6935 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.1657, allocations: 3.938 kB / 0.6935 GB, free: 4.094 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.727e-05/0.1658, allocations: 11.98 kB / 0.6935 GB, free: 4.082 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1658, allocations: 0 / 0.6935 GB, free: 4.082 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1658, allocations: 0 / 0.6935 GB, free: 4.082 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.745e-06/0.1658, allocations: 0 / 0.6935 GB, free: 4.082 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003084/0.1661, allocations: 315.6 kB / 0.6938 GB, free: 3.723 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1661, allocations: 16.03 kB / 0.6939 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.1662, allocations: 0.9375 kB / 0.6939 GB, free: 3.707 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.1663, allocations: 160.4 kB / 0.694 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-06/0.1663, allocations: 384 / 0.694 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.1663, allocations: 384 / 0.694 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.572e-05/0.1664, allocations: 38.25 kB / 0.6941 GB, free: 3.469 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1664, allocations: 192 / 0.6941 GB, free: 3.469 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.1664, allocations: 3.938 kB / 0.6941 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1664, allocations: 0 / 0.6941 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.923e-05/0.1665, allocations: 11.94 kB / 0.6941 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.1667, allocations: 149.7 kB / 0.6942 GB, free: 3.258 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.195e-05/0.1667, allocations: 22.59 kB / 0.6942 GB, free: 3.227 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.012e-05/0.1667, allocations: 8.922 kB / 0.6942 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.1669, allocations: 81.05 kB / 0.6943 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.1669, allocations: 38.56 kB / 0.6944 GB, free: 3.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.167, allocations: 4 kB / 0.6944 GB, free: 3.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001324/0.1671, allocations: 45.56 kB / 0.6944 GB, free: 3.016 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.1671, allocations: 51.41 kB / 0.6945 GB, free: 2.953 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.124e-05/0.1672, allocations: 93.86 kB / 0.6945 GB, free: 2.852 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1672, allocations: 29.64 kB / 0.6946 GB, free: 2.816 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.1672, allocations: 80.14 kB / 0.6946 GB, free: 2.734 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.1673, allocations: 4.188 kB / 0.6947 GB, free: 2.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/0.1673, allocations: 17.7 kB / 0.6947 GB, free: 2.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1674, allocations: 315 kB / 0.695 GB, free: 2.391 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.51e-05/0.1674, allocations: 8 kB / 0.695 GB, free: 2.383 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.1675, allocations: 0 / 0.695 GB, free: 2.383 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.1675, allocations: 12.86 kB / 0.695 GB, free: 2.367 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1675, allocations: 0 / 0.695 GB, free: 2.367 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.585e-05/0.1676, allocations: 49.61 kB / 0.695 GB, free: 2.312 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1676, allocations: 4 kB / 0.695 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1676, allocations: 0 / 0.695 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1676, allocations: 4.031 kB / 0.695 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.745e-05/0.1677, allocations: 8 kB / 0.6951 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1677, allocations: 0 / 0.6951 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.1677, allocations: 3.938 kB / 0.6951 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.1677, allocations: 4 kB / 0.6951 GB, free: 2.289 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.367e-05/0.1678, allocations: 109.8 kB / 0.6952 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.1678, allocations: 0 / 0.6952 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.851e-05/0.1679, allocations: 52.69 kB / 0.6952 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1679, allocations: 0 / 0.6952 GB, free: 2.117 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1679, allocations: 4.031 kB / 0.6952 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1679, allocations: 0 / 0.6952 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.168, allocations: 153.7 kB / 0.6954 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.168, allocations: 0 / 0.6954 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.473e-05/0.1681, allocations: 4 kB / 0.6954 GB, free: 1.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1681, allocations: 0 / 0.6954 GB, free: 1.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.1681, allocations: 3.938 kB / 0.6954 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1681, allocations: 0 / 0.6954 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1681, allocations: 0 / 0.6954 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.926e-05/0.1682, allocations: 65.12 kB / 0.6954 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.049e-05/0.1682, allocations: 77.11 kB / 0.6955 GB, free: 1.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.1682, allocations: 7.938 kB / 0.6955 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.223e-05/0.1683, allocations: 3.984 kB / 0.6955 GB, free: 1.719 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.1683, allocations: 3.938 kB / 0.6955 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.1683, allocations: 0 / 0.6955 GB, free: 1.715 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.015e-05/0.1683, allocations: 85.05 kB / 0.6956 GB, free: 1.633 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1683, allocations: 0 / 0.6956 GB, free: 1.633 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001797/0.1685, allocations: 8.031 kB / 0.6956 GB, free: 1.625 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 (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 (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.0001444/0.1687, allocations: 111.2 kB / 0.6957 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.41e-05/0.1688, allocations: 11.98 kB / 0.6957 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1688, allocations: 0 / 0.6957 GB, free: 1.492 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.447e-05/0.1688, allocations: 4 kB / 0.6957 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001224/0.1689, allocations: 0 / 0.6957 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001768/0.1691, allocations: 90.78 kB / 0.6958 GB, free: 1.375 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1694, allocations: 0.6731 MB / 0.6965 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.208e-05/0.1694, allocations: 4 kB / 0.6965 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.1694, allocations: 7.438 kB / 0.6965 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1694, allocations: 0 / 0.6965 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of Templates: time 0.002438/0.1719, allocations: 316.5 kB / 0.6968 GB, free: 364 kB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)