Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 105.4 kB / 15.7 MB, free: 20 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.001289/0.001289, allocations: 193.6 kB / 16.64 MB, free: 6.578 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.268/1.268, allocations: 205.1 MB / 222.5 MB, free: 4.59 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.651/1.651, 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.001348/0.001348, allocations: 68.02 kB / 0.6723 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1993, allocations: 114.6 MB / 0.7841 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002733/0.2021, allocations: 1.498 MB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003518/0.2025, allocations: 124.5 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.2026, allocations: 4 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.084e-05/0.2026, allocations: 7.875 kB / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.766e-05/0.2026, allocations: 0 / 0.7857 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.2029, allocations: 31.89 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.087e-05/0.203, allocations: 27.92 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2031, allocations: 8 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.365e-05/0.2031, allocations: 15.98 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.587e-05/0.2032, allocations: 19.92 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.2032, allocations: 4 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.168e-05/0.2033, allocations: 8 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.2033, allocations: 15.92 kB / 0.7858 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.2034, allocations: 11.92 kB / 0.7859 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.2035, allocations: 27.91 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2035, allocations: 4 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2035, allocations: 0 / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2035, allocations: 0 / 0.7859 GB, free: 10.89 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000494/0.204, allocations: 351.4 kB / 0.7862 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2041, allocations: 8.031 kB / 0.7862 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.2041, allocations: 0.9375 kB / 0.7862 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.2042, allocations: 172.3 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.2042, allocations: 4.312 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.2042, allocations: 4.375 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.2044, allocations: 58.22 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-06/0.2044, allocations: 192 / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.2045, allocations: 3.938 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2045, allocations: 8 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.2046, allocations: 43.89 kB / 0.7865 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003365/0.205, allocations: 253 kB / 0.7868 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.2053, allocations: 66.41 kB / 0.7868 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.2054, allocations: 32.91 kB / 0.7869 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.2055, allocations: 85.09 kB / 0.7869 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.888e-05/0.2056, allocations: 30.56 kB / 0.787 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2056, allocations: 0 / 0.787 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003672/0.2059, allocations: 93.56 kB / 0.7871 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.206, allocations: 55.41 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.204e-05/0.2061, allocations: 101.9 kB / 0.7872 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2061, allocations: 25.7 kB / 0.7872 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.314e-05/0.2061, allocations: 92.03 kB / 0.7873 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.2062, allocations: 7.938 kB / 0.7873 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.2062, allocations: 13.72 kB / 0.7873 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.2063, allocations: 314.8 kB / 0.7876 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.608e-05/0.2064, allocations: 19.97 kB / 0.7877 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.536e-05/0.2065, allocations: 19.98 kB / 0.7877 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.2066, allocations: 45.28 kB / 0.7877 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2067, allocations: 11.88 kB / 0.7877 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002084/0.2069, allocations: 81.48 kB / 0.7878 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.2069, allocations: 4 kB / 0.7878 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2069, allocations: 4 kB / 0.7878 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2069, allocations: 7.984 kB / 0.7878 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.944e-05/0.207, allocations: 8 kB / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.207, allocations: 0 / 0.7878 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.492e-05/0.2071, allocations: 7.984 kB / 0.7878 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-06/0.2071, allocations: 0 / 0.7878 GB, free: 8.648 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 (rea2Int.y,fac.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 0.0001244/0.2072, allocations: 113.8 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.2072, allocations: 4 kB / 0.7879 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002515/0.2075, allocations: 85.08 kB / 0.788 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2075, allocations: 3.984 kB / 0.788 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2075, allocations: 0 / 0.788 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2075, allocations: 4 kB / 0.788 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.2077, allocations: 157.6 kB / 0.7882 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2077, allocations: 3.984 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.025e-05/0.2078, allocations: 8 kB / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2078, allocations: 0 / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2078, allocations: 7.984 kB / 0.7882 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2078, allocations: 8 kB / 0.7882 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2078, allocations: 3.984 kB / 0.7882 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.2081, allocations: 171.4 kB / 0.7884 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.2082, allocations: 77.11 kB / 0.7885 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.2082, allocations: 7.922 kB / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.803e-05/0.2083, allocations: 8 kB / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.2083, allocations: 15.98 kB / 0.7885 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.2083, allocations: 3.938 kB / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.323e-05/0.2084, allocations: 79.28 kB / 0.7886 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2084, allocations: 0 / 0.7886 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002172/0.2086, allocations: 8 kB / 0.7886 GB, free: 7.789 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.y,rea2Int.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.0001475/0.2088, allocations: 103.2 kB / 0.7887 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.209, allocations: 47.95 kB / 0.7887 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.209, allocations: 3.938 kB / 0.7887 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.315e-05/0.2091, allocations: 23.98 kB / 0.7887 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.2094, allocations: 7.922 kB / 0.7887 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.2096, allocations: 122.8 kB / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.2099, allocations: 0.6768 MB / 0.7895 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.706e-05/0.2099, allocations: 4 kB / 0.7895 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.29e-05/0.2099, allocations: 11.44 kB / 0.7895 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.2099, allocations: 0 / 0.7895 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of Templates: time 0.00266/0.2126, allocations: 0.7031 MB / 0.7902 GB, free: 6.027 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)