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.0009233/0.0009233, allocations: 108 kB / 15.6 MB, free: 132 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.0008947/0.0008947, allocations: 191 kB / 16.53 MB, free: 6.391 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.084/1.084, allocations: 205.1 MB / 222.4 MB, free: 4.562 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.462/1.462, allocations: 292.3 MB / 0.5489 GB, free: 13.52 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.001262/0.001262, allocations: 71.72 kB / 0.6715 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1627, allocations: 114.5 MB / 0.7834 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001585/0.1643, allocations: 0.5783 MB / 0.7839 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0001966/0.1645, allocations: 55.83 kB / 0.784 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.355e-05/0.1645, allocations: 0 / 0.784 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.107e-06/0.1646, allocations: 0 / 0.784 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.646e-06/0.1646, allocations: 0 / 0.784 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000159/0.1647, allocations: 19.92 kB / 0.784 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 3.161e-05/0.1648, allocations: 4 kB / 0.784 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.703e-05/0.1648, allocations: 0 / 0.784 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.01e-05/0.1648, allocations: 0 / 0.784 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 1.703e-05/0.1648, allocations: 4 kB / 0.784 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.484e-06/0.1649, allocations: 0 / 0.784 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.462e-05/0.1649, allocations: 11.98 kB / 0.784 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.1649, allocations: 3.984 kB / 0.784 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.423e-05/0.1649, allocations: 3.938 kB / 0.784 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 5.87e-05/0.165, allocations: 8 kB / 0.784 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.686e-06/0.165, allocations: 0 / 0.784 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.62e-07/0.165, allocations: 4 kB / 0.784 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.165, allocations: 3.938 kB / 0.7841 GB, free: 12.87 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.0002155/0.1653, allocations: 323.6 kB / 0.7844 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.698e-05/0.1653, allocations: 8.031 kB / 0.7844 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.05e-05/0.1653, allocations: 0.9375 kB / 0.7844 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.237e-05/0.1654, allocations: 160.4 kB / 0.7845 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.1654, allocations: 4.312 kB / 0.7845 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-06/0.1654, allocations: 4.375 kB / 0.7845 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.361e-05/0.1655, allocations: 38.25 kB / 0.7846 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.1655, allocations: 192 / 0.7846 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.1655, allocations: 7.938 kB / 0.7846 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1655, allocations: 0 / 0.7846 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.229e-05/0.1655, allocations: 0 / 0.7846 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.1657, allocations: 153.7 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 3.802e-05/0.1657, allocations: 22.55 kB / 0.7847 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.1657, allocations: 8.922 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/0.1658, allocations: 93.03 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.1659, allocations: 34.56 kB / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1659, allocations: 0 / 0.7849 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001019/0.166, allocations: 37.64 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.166, allocations: 51.41 kB / 0.785 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.911e-05/0.166, allocations: 93.86 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.1661, allocations: 29.69 kB / 0.7851 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.003e-05/0.1661, allocations: 88.27 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.1661, allocations: 3.906 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.1661, allocations: 9.719 kB / 0.7852 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.1662, allocations: 318.8 kB / 0.7855 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.858e-06/0.1662, allocations: 4 kB / 0.7855 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-06/0.1662, allocations: 4 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.523e-05/0.1663, allocations: 12.84 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.1663, allocations: 0 / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.957e-05/0.1663, allocations: 41.77 kB / 0.7855 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.1663, allocations: 4 kB / 0.7855 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.1663, allocations: 0 / 0.7855 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.1664, allocations: 3.938 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.042e-05/0.1664, allocations: 4 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1664, allocations: 7.922 kB / 0.7856 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.219e-05/0.1664, allocations: 4.266 kB / 0.7856 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-06/0.1664, allocations: 4 kB / 0.7856 GB, free: 11.07 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.885e-05/0.1665, allocations: 114.5 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-06/0.1665, allocations: 0 / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.973e-05/0.1666, allocations: 52.75 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.1666, allocations: 0 / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.1666, allocations: 3.938 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.1666, allocations: 0 / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.957e-05/0.1667, allocations: 153.7 kB / 0.7859 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1667, allocations: 0 / 0.7859 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.158e-05/0.1667, allocations: 7.984 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1667, allocations: 0 / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.1667, allocations: 7.969 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1667, allocations: 0 / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1667, allocations: 3.938 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.993e-05/0.1668, allocations: 69.06 kB / 0.786 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.425e-05/0.1668, allocations: 77.11 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.107e-06/0.1668, allocations: 3.938 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.1669, allocations: 0 / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.1669, allocations: 32 / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-06/0.1669, allocations: 8 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 1.886e-05/0.1669, allocations: 75.28 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.1669, allocations: 0 / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001674/0.1671, allocations: 4 kB / 0.7861 GB, free: 10.4 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.0001112/0.1672, allocations: 107.2 kB / 0.7862 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 5.54e-05/0.1673, allocations: 11.94 kB / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.1673, allocations: 0 / 0.7862 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.248e-05/0.1673, allocations: 8.062 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.1674, allocations: 2.656 kB / 0.7862 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001387/0.1675, allocations: 95.78 kB / 0.7863 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.1677, allocations: 0.6729 MB / 0.787 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.067e-06/0.1677, allocations: 0 / 0.787 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.079e-05/0.1677, allocations: 7.438 kB / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1677, allocations: 0 / 0.787 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of Templates: time 0.001643/0.1694, allocations: 329.6 kB / 0.7873 GB, free: 9.117 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)