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.001382/0.001383, allocations: 106.8 kB / 15.99 MB, free: 6.348 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.001513/0.001513, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.388/1.388, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.698/1.698, allocations: 292.3 MB / 0.5492 GB, free: 13.63 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.001409/0.001409, allocations: 73.25 kB / 0.6716 GB, free: 26.5 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003697/0.256, allocations: 1.571 MB / 0.785 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004435/0.2565, allocations: 129.5 kB / 0.7852 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.016e-05/0.2565, allocations: 0 / 0.7852 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.727e-05/0.2566, allocations: 0 / 0.7852 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.435e-05/0.2566, allocations: 0 / 0.7852 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.2569, allocations: 27.91 kB / 0.7852 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.008e-05/0.257, allocations: 23.98 kB / 0.7852 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.2572, allocations: 11.94 kB / 0.7852 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.271e-05/0.2572, allocations: 11.98 kB / 0.7852 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.059e-05/0.2573, allocations: 15.92 kB / 0.7853 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.2573, allocations: 8 kB / 0.7853 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.74e-05/0.2574, allocations: 11.94 kB / 0.7853 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.2574, allocations: 7.984 kB / 0.7853 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.139e-05/0.2574, allocations: 15.92 kB / 0.7853 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2575, allocations: 19.97 kB / 0.7853 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.2576, allocations: 4 kB / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.674e-06/0.2576, allocations: 0 / 0.7853 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.237e-05/0.2576, allocations: 0 / 0.7853 GB, free: 12.03 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.0008376/0.2584, allocations: 347.7 kB / 0.7857 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.826e-05/0.2585, allocations: 12.03 kB / 0.7857 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.2586, allocations: 0.9375 kB / 0.7857 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.2587, allocations: 176.2 kB / 0.7858 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.2588, allocations: 384 / 0.7858 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.2588, allocations: 4.375 kB / 0.7858 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.259, allocations: 58.17 kB / 0.7859 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.259, allocations: 192 / 0.7859 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2591, allocations: 3.938 kB / 0.7859 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2591, allocations: 4 kB / 0.7859 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.2592, allocations: 43.89 kB / 0.7859 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004012/0.2597, allocations: 265 kB / 0.7862 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.26, allocations: 58.47 kB / 0.7863 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.313e-05/0.2601, allocations: 28.91 kB / 0.7863 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.2602, allocations: 81.11 kB / 0.7864 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.2603, allocations: 50.47 kB / 0.7864 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.2603, allocations: 0 / 0.7864 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003784/0.2607, allocations: 85.64 kB / 0.7865 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.2607, allocations: 59.41 kB / 0.7865 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.833e-05/0.2608, allocations: 101.8 kB / 0.7866 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.2608, allocations: 25.7 kB / 0.7867 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.2609, allocations: 88.05 kB / 0.7867 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.2609, allocations: 7.938 kB / 0.7868 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.2609, allocations: 13.7 kB / 0.7868 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2611, allocations: 318.8 kB / 0.7871 GB, free: 10 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.764e-05/0.2612, allocations: 15.98 kB / 0.7871 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.456e-05/0.2613, allocations: 23.97 kB / 0.7871 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.2614, allocations: 52.75 kB / 0.7872 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2614, allocations: 3.938 kB / 0.7872 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002052/0.2616, allocations: 73.56 kB / 0.7872 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.2617, allocations: 4 kB / 0.7872 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2617, allocations: 8 kB / 0.7872 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.2617, allocations: 0 / 0.7872 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.733e-05/0.2618, allocations: 11.98 kB / 0.7873 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.2618, allocations: 0 / 0.7873 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.734e-05/0.2619, allocations: 7.984 kB / 0.7873 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.2619, allocations: 0 / 0.7873 GB, free: 9.793 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.0001091/0.262, allocations: 117.7 kB / 0.7874 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.2621, allocations: 4 kB / 0.7874 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/0.2623, allocations: 85.14 kB / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2624, allocations: 0 / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2624, allocations: 0 / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2624, allocations: 4 kB / 0.7875 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.2626, allocations: 161.6 kB / 0.7876 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2626, allocations: 0 / 0.7876 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.2627, allocations: 11.98 kB / 0.7876 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2627, allocations: 0 / 0.7876 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.2627, allocations: 0 / 0.7876 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2627, allocations: 11.94 kB / 0.7876 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2627, allocations: 0 / 0.7876 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.263, allocations: 183.8 kB / 0.7878 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.2631, allocations: 77.11 kB / 0.7879 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.2631, allocations: 0 / 0.7879 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.2632, allocations: 8.031 kB / 0.7879 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.2633, allocations: 15.98 kB / 0.7879 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.2633, allocations: 4 kB / 0.7879 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.784e-05/0.2633, allocations: 83.27 kB / 0.788 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2633, allocations: 0 / 0.788 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002342/0.2636, allocations: 8 kB / 0.788 GB, free: 8.93 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.0002272/0.2638, allocations: 99.25 kB / 0.7881 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002457/0.2641, allocations: 51.89 kB / 0.7881 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2641, allocations: 0 / 0.7881 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.928e-05/0.2642, allocations: 23.97 kB / 0.7882 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.2645, allocations: 7.938 kB / 0.7882 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/0.2648, allocations: 143.2 kB / 0.7883 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.2651, allocations: 0.6807 MB / 0.789 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3e-05/0.2652, allocations: 11.44 kB / 0.789 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2652, allocations: 0 / 0.789 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of Templates: time 0.00215/0.2673, allocations: 0.7384 MB / 0.7897 GB, free: 7.102 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)