Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 176.6 kB / 16.08 MB, free: 5.531 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.4381/0.4381, allocations: 89.06 MB / 105.9 MB, free: 12.45 MB / 90.72 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 225.7 MB / 353.2 MB, free: 1.094 MB / 282.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007279/0.0007279, allocations: 99.97 kB / 425.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003109, allocations: 8 kB / 0.4955 GB, free: 4.527 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.281, allocations: 71.33 MB / 0.5652 GB, free: 42.34 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001294/0.2823, allocations: 1.22 MB / 0.5664 GB, free: 41.1 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003003/0.2826, allocations: 185.6 kB / 0.5666 GB, free: 40.9 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.344e-05/0.2827, allocations: 4 kB / 0.5666 GB, free: 40.9 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.361e-05/0.2827, allocations: 4.469 kB / 0.5666 GB, free: 40.89 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.911e-05/0.2827, allocations: 9.953 kB / 0.5666 GB, free: 40.89 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.2829, allocations: 19.98 kB / 0.5666 GB, free: 40.87 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.2829, allocations: 27.92 kB / 0.5666 GB, free: 40.84 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.823e-05/0.283, allocations: 8 kB / 0.5666 GB, free: 40.83 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.139e-05/0.2831, allocations: 9.359 kB / 0.5666 GB, free: 40.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.2831, allocations: 15.92 kB / 0.5667 GB, free: 40.81 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.2831, allocations: 4 kB / 0.5667 GB, free: 40.8 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.723e-05/0.2832, allocations: 8.609 kB / 0.5667 GB, free: 40.8 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.2832, allocations: 4 kB / 0.5667 GB, free: 40.79 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.839e-05/0.2832, allocations: 38.73 kB / 0.5667 GB, free: 40.75 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 8.239e-05/0.2833, allocations: 35.88 kB / 0.5667 GB, free: 40.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2833, allocations: 0 / 0.5667 GB, free: 40.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2833, allocations: 1.375 kB / 0.5667 GB, free: 40.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.2834, allocations: 0 / 0.5667 GB, free: 40.71 MB / 410.7 MB 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.0003484/0.2837, allocations: 346.4 kB / 0.5671 GB, free: 40.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2837, allocations: 12.7 kB / 0.5671 GB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.337e-05/0.2838, allocations: 0.9375 kB / 0.5671 GB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.783e-05/0.2839, allocations: 181.4 kB / 0.5673 GB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.2839, allocations: 384 / 0.5673 GB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.2839, allocations: 4.375 kB / 0.5673 GB, free: 40.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.2841, allocations: 61.16 kB / 0.5673 GB, free: 40.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2841, allocations: 192 / 0.5673 GB, free: 40.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.2841, allocations: 15.92 kB / 0.5673 GB, free: 40.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2841, allocations: 0 / 0.5673 GB, free: 40.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.2843, allocations: 48.25 kB / 0.5674 GB, free: 39.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002554/0.2845, allocations: 264.9 kB / 0.5676 GB, free: 39.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.2848, allocations: 66.47 kB / 0.5677 GB, free: 39.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.712e-05/0.2849, allocations: 28.91 kB / 0.5677 GB, free: 39.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.46e-05/0.285, allocations: 85.09 kB / 0.5678 GB, free: 39.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.128e-05/0.285, allocations: 34.56 kB / 0.5678 GB, free: 39.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.2851, allocations: 4 kB / 0.5678 GB, free: 39.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003248/0.2854, allocations: 105.6 kB / 0.5679 GB, free: 39.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.016e-05/0.2854, allocations: 59.39 kB / 0.568 GB, free: 39.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.805e-05/0.2855, allocations: 97.86 kB / 0.5681 GB, free: 39.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-06/0.2855, allocations: 25.7 kB / 0.5681 GB, free: 39.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.239e-05/0.2855, allocations: 92.05 kB / 0.5682 GB, free: 39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.154e-05/0.2855, allocations: 4 kB / 0.5682 GB, free: 39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.2855, allocations: 0 / 0.5682 GB, free: 39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.527e-05/0.2856, allocations: 314.8 kB / 0.5685 GB, free: 38.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.203e-05/0.2857, allocations: 27.98 kB / 0.5685 GB, free: 38.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.371e-05/0.2857, allocations: 27.97 kB / 0.5686 GB, free: 38.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.2859, allocations: 52.83 kB / 0.5686 GB, free: 38.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2859, allocations: 3.938 kB / 0.5686 GB, free: 38.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001816/0.2861, allocations: 93.48 kB / 0.5687 GB, free: 38.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.2861, allocations: 4 kB / 0.5687 GB, free: 38.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2861, allocations: 4 kB / 0.5687 GB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2861, allocations: 4 kB / 0.5687 GB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.371e-05/0.2862, allocations: 15.98 kB / 0.5687 GB, free: 38.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.2862, allocations: 7.922 kB / 0.5687 GB, free: 38.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.244e-05/0.2863, allocations: 8 kB / 0.5688 GB, free: 38.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.2863, allocations: 3.984 kB / 0.5688 GB, free: 38.43 MB / 410.7 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 (fac.y,rea2Int.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 4.827e-05/0.2863, allocations: 117.8 kB / 0.5689 GB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.2864, allocations: 4.453 kB / 0.5689 GB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.2866, allocations: 97.08 kB / 0.569 GB, free: 38.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2866, allocations: 4.031 kB / 0.569 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2866, allocations: 0 / 0.569 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2866, allocations: 0 / 0.569 GB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.2867, allocations: 169.6 kB / 0.5691 GB, free: 37.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2868, allocations: 4 kB / 0.5691 GB, free: 37.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.685e-05/0.2868, allocations: 11.98 kB / 0.5691 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.2868, allocations: 0 / 0.5691 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.2868, allocations: 4 kB / 0.5691 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2868, allocations: 0 / 0.5691 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2869, allocations: 0 / 0.5691 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.2871, allocations: 187.3 kB / 0.5693 GB, free: 37.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.475e-05/0.2871, allocations: 77.11 kB / 0.5694 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.2871, allocations: 4 kB / 0.5694 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.61e-05/0.2872, allocations: 4 kB / 0.5694 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.2872, allocations: 15.92 kB / 0.5694 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.2872, allocations: 4 kB / 0.5694 GB, free: 37.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.816e-05/0.2873, allocations: 83.27 kB / 0.5695 GB, free: 37.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2873, allocations: 0 / 0.5695 GB, free: 37.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001879/0.2875, allocations: 11.94 kB / 0.5695 GB, free: 37.54 MB / 410.7 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.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.0001001/0.2876, allocations: 113.1 kB / 0.5696 GB, free: 37.42 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.2878, allocations: 51.95 kB / 0.5697 GB, free: 37.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2878, allocations: 4 kB / 0.5697 GB, free: 37.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.484e-05/0.2879, allocations: 27.97 kB / 0.5697 GB, free: 37.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.2881, allocations: 11.84 kB / 0.5697 GB, free: 37.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002166/0.2883, allocations: 132.6 kB / 0.5698 GB, free: 37.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.392e-05/0.2884, allocations: 0.677 MB / 0.5705 GB, free: 36.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.272e-05/0.2885, allocations: 4 kB / 0.5705 GB, free: 36.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.964e-05/0.2885, allocations: 7.438 kB / 0.5705 GB, free: 36.45 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2885, allocations: 0 / 0.5705 GB, free: 36.45 MB / 410.7 MB Notification: Performance of Templates: time 0.002108/0.2906, allocations: 0.6129 MB / 0.5711 GB, free: 35.84 MB / 410.7 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)