Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001101/0.001101, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 188.1 kB / 16.62 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.102/1.102, allocations: 205.1 MB / 222.5 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.482/1.482, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 74.88 kB / 0.6723 GB, free: 25.91 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1607, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001496/0.1622, allocations: 0.5936 MB / 0.7847 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0002076/0.1624, allocations: 51.78 kB / 0.7847 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.387e-05/0.1624, allocations: 4 kB / 0.7848 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.1625, allocations: 0 / 0.7848 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.208e-06/0.1625, allocations: 3.938 kB / 0.7848 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.1627, allocations: 7.984 kB / 0.7848 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.114e-05/0.1627, allocations: 0 / 0.7848 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.953e-05/0.1627, allocations: 4 kB / 0.7848 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.185e-05/0.1628, allocations: 4 kB / 0.7848 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 1.576e-05/0.1628, allocations: 0 / 0.7848 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.504e-06/0.1628, allocations: 4 kB / 0.7848 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.1628, allocations: 11.98 kB / 0.7848 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.1629, allocations: 11.98 kB / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.5e-05/0.1629, allocations: 3.938 kB / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 6.043e-05/0.1629, allocations: 4 kB / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.163, allocations: 0 / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.192e-06/0.163, allocations: 0 / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.163, allocations: 0 / 0.7848 GB, free: 12.05 MB / 0.6075 GB 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.0002246/0.1632, allocations: 319.6 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.1632, allocations: 8.031 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.259e-05/0.1633, allocations: 8.938 kB / 0.7851 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.926e-05/0.1633, allocations: 164.3 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-06/0.1633, allocations: 384 / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-06/0.1634, allocations: 4.359 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.442e-05/0.1634, allocations: 30.27 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-06/0.1635, allocations: 192 / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-06/0.1635, allocations: 3.938 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.1635, allocations: 0 / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.629e-05/0.1635, allocations: 8 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001065/0.1636, allocations: 149.7 kB / 0.7855 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.419e-05/0.1637, allocations: 30.55 kB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.542e-05/0.1637, allocations: 4.859 kB / 0.7855 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001271/0.1638, allocations: 89.09 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.1638, allocations: 30.56 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1638, allocations: 0 / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001161/0.164, allocations: 49.64 kB / 0.7857 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.164, allocations: 55.39 kB / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.987e-05/0.164, allocations: 89.86 kB / 0.7858 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.164, allocations: 29.64 kB / 0.7858 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.1641, allocations: 80.14 kB / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.1641, allocations: 3.906 kB / 0.7859 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.1641, allocations: 17.72 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.98e-05/0.1642, allocations: 310.8 kB / 0.7862 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.1642, allocations: 16.06 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.512e-06/0.1642, allocations: 0 / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.706e-05/0.1643, allocations: 16.84 kB / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1643, allocations: 0 / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.889e-05/0.1643, allocations: 33.7 kB / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.1643, allocations: 8 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.1643, allocations: 0 / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.1644, allocations: 3.938 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.835e-05/0.1644, allocations: 11.92 kB / 0.7863 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1644, allocations: 4.094 kB / 0.7863 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.286e-05/0.1644, allocations: 4 kB / 0.7863 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-06/0.1644, allocations: 0 / 0.7863 GB, free: 10.25 MB / 0.6075 GB 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 4.757e-05/0.1645, allocations: 114.4 kB / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-06/0.1645, allocations: 0 / 0.7864 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.008e-05/0.1646, allocations: 48.75 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1646, allocations: 0 / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.1646, allocations: 0 / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1646, allocations: 8.016 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.98e-05/0.1647, allocations: 145.7 kB / 0.7866 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1647, allocations: 4 kB / 0.7866 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.897e-05/0.1647, allocations: 3.984 kB / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1647, allocations: 0 / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.1647, allocations: 11.88 kB / 0.7866 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1647, allocations: 0 / 0.7866 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1647, allocations: 0 / 0.7866 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.268e-05/0.1648, allocations: 69.06 kB / 0.7867 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.491e-05/0.1648, allocations: 81.11 kB / 0.7868 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-06/0.1648, allocations: 3.938 kB / 0.7868 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.126e-05/0.1649, allocations: 4 kB / 0.7868 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.006e-05/0.1649, allocations: 0 / 0.7868 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.1649, allocations: 0 / 0.7868 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 1.97e-05/0.1649, allocations: 75.28 kB / 0.7869 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1649, allocations: 0 / 0.7869 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001841/0.1651, allocations: 4 kB / 0.7869 GB, free: 9.582 MB / 0.6075 GB 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.000116/0.1652, allocations: 111.3 kB / 0.787 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 5.899e-05/0.1653, allocations: 11.94 kB / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.1653, allocations: 0 / 0.787 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.27e-05/0.1653, allocations: 4 kB / 0.787 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001114/0.1654, allocations: 6.656 kB / 0.787 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001439/0.1656, allocations: 99.95 kB / 0.7871 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.1658, allocations: 0.673 MB / 0.7877 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.079e-05/0.1658, allocations: 11.94 kB / 0.7878 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.1658, allocations: 11.42 kB / 0.7878 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.1658, allocations: 0 / 0.7878 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of Templates: time 0.001675/0.1675, allocations: 317.7 kB / 0.7881 GB, free: 8.289 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)