Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7552/0.7552, allocations: 143.8 MB / 159.1 MB, free: 6.508 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009574/0.0009576, allocations: 187.3 kB / 192 MB, free: 6.715 MB / 154.7 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.375/1.375, allocations: 225.7 MB / 450.4 MB, free: 4.926 MB / 330.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.00084/0.0008401, allocations: 111.5 kB / 0.5211 GB, free: 1.59 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001724/0.001724, allocations: 279 kB / 0.6025 GB, free: 49.3 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 13.31 kB / 0.6948 GB, free: 59.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.152, allocations: 82.46 MB / 0.7753 GB, free: 14.37 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.001685/0.1537, allocations: 1.23 MB / 0.7765 GB, free: 13.13 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003617/0.1541, allocations: 196.8 kB / 0.7767 GB, free: 12.92 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.564e-05/0.1541, allocations: 0 / 0.7767 GB, free: 12.92 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.58e-05/0.1542, allocations: 3.984 kB / 0.7767 GB, free: 12.91 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 3.834e-05/0.1542, allocations: 3.938 kB / 0.7767 GB, free: 12.91 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.1544, allocations: 15.98 kB / 0.7767 GB, free: 12.89 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 5.559e-05/0.1544, allocations: 23.94 kB / 0.7767 GB, free: 12.87 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.169e-05/0.1545, allocations: 15.98 kB / 0.7768 GB, free: 12.86 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.015e-05/0.1546, allocations: 15.92 kB / 0.7768 GB, free: 12.84 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.582e-05/0.1546, allocations: 11.92 kB / 0.7768 GB, free: 12.83 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.1547, allocations: 0 / 0.7768 GB, free: 12.83 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.987e-05/0.1547, allocations: 11.98 kB / 0.7768 GB, free: 12.82 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.1547, allocations: 4 kB / 0.7768 GB, free: 12.81 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.699e-05/0.1548, allocations: 33.64 kB / 0.7768 GB, free: 12.77 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 9.488e-05/0.1549, allocations: 36.16 kB / 0.7769 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1549, allocations: 4 kB / 0.7769 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1549, allocations: 0 / 0.7769 GB, free: 12.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1549, allocations: 4 kB / 0.7769 GB, free: 12.73 MB / 458.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.0004037/0.1553, allocations: 343.4 kB / 0.7772 GB, free: 12.34 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1554, allocations: 12.03 kB / 0.7772 GB, free: 12.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.1554, allocations: 0.9375 kB / 0.7772 GB, free: 12.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.1555, allocations: 164.4 kB / 0.7774 GB, free: 12.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.1555, allocations: 4.375 kB / 0.7774 GB, free: 12.13 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.1556, allocations: 384 / 0.7774 GB, free: 12.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.1557, allocations: 70.17 kB / 0.7774 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.1558, allocations: 192 / 0.7774 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1558, allocations: 3.938 kB / 0.7774 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1558, allocations: 0 / 0.7774 GB, free: 12.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.156, allocations: 55.94 kB / 0.7775 GB, free: 12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003212/0.1563, allocations: 268.9 kB / 0.7778 GB, free: 11.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.1566, allocations: 74.41 kB / 0.7778 GB, free: 11.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.286e-05/0.1567, allocations: 28.84 kB / 0.7779 GB, free: 11.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.1568, allocations: 81.11 kB / 0.7779 GB, free: 11.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.1569, allocations: 38.55 kB / 0.778 GB, free: 11.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1569, allocations: 0 / 0.778 GB, free: 11.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003605/0.1572, allocations: 101.6 kB / 0.7781 GB, free: 11.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.1573, allocations: 59.34 kB / 0.7781 GB, free: 11.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/0.1574, allocations: 101.8 kB / 0.7782 GB, free: 11.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.1574, allocations: 29.7 kB / 0.7782 GB, free: 11.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.1574, allocations: 88.08 kB / 0.7783 GB, free: 11.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1574, allocations: 7.906 kB / 0.7783 GB, free: 11.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-06/0.1575, allocations: 0 / 0.7783 GB, free: 11.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.1576, allocations: 318.8 kB / 0.7786 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.33e-05/0.1577, allocations: 23.98 kB / 0.7787 GB, free: 10.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.986e-05/0.1577, allocations: 27.98 kB / 0.7787 GB, free: 10.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.1579, allocations: 52.81 kB / 0.7787 GB, free: 10.58 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1579, allocations: 3.938 kB / 0.7787 GB, free: 10.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002067/0.1581, allocations: 93.58 kB / 0.7788 GB, free: 10.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1582, allocations: 4 kB / 0.7788 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.1582, allocations: 0 / 0.7788 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.1582, allocations: 0 / 0.7788 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.145e-05/0.1583, allocations: 15.98 kB / 0.7789 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1583, allocations: 4 kB / 0.7789 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.635e-05/0.1583, allocations: 7.906 kB / 0.7789 GB, free: 10.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1584, allocations: 4 kB / 0.7789 GB, free: 10.45 MB / 458.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 7.37e-05/0.1584, allocations: 117.8 kB / 0.779 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.1585, allocations: 0 / 0.779 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002486/0.1587, allocations: 97.12 kB / 0.7791 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1587, allocations: 0 / 0.7791 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1587, allocations: 0.5625 kB / 0.7791 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1587, allocations: 7.938 kB / 0.7791 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000146/0.1589, allocations: 169.6 kB / 0.7792 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.1589, allocations: 0 / 0.7792 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.429e-05/0.159, allocations: 15.98 kB / 0.7793 GB, free: 9.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.159, allocations: 4 kB / 0.7793 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.159, allocations: 3.938 kB / 0.7793 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.159, allocations: 4 kB / 0.7793 GB, free: 9.969 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.159, allocations: 0 / 0.7793 GB, free: 9.969 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.1593, allocations: 187.4 kB / 0.7794 GB, free: 9.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.1593, allocations: 85 kB / 0.7795 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.1593, allocations: 0 / 0.7795 GB, free: 9.668 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.1594, allocations: 12 kB / 0.7795 GB, free: 9.656 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.1595, allocations: 3.984 kB / 0.7795 GB, free: 9.652 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.1595, allocations: 4 kB / 0.7795 GB, free: 9.648 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.99e-05/0.1595, allocations: 75.28 kB / 0.7796 GB, free: 9.574 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.124e-06/0.1595, allocations: 4 kB / 0.7796 GB, free: 9.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001971/0.1597, allocations: 19.92 kB / 0.7796 GB, free: 9.551 MB / 458.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.0001275/0.1599, allocations: 107.2 kB / 0.7797 GB, free: 9.434 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.1601, allocations: 47.95 kB / 0.7798 GB, free: 9.387 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1601, allocations: 4 kB / 0.7798 GB, free: 9.383 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 9.624e-05/0.1602, allocations: 31.97 kB / 0.7798 GB, free: 9.352 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.1605, allocations: 14.34 kB / 0.7798 GB, free: 9.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.1607, allocations: 120.6 kB / 0.78 GB, free: 9.195 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.161, allocations: 0.6848 MB / 0.7806 GB, free: 8.484 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.324e-05/0.161, allocations: 0 / 0.7806 GB, free: 8.484 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.357e-05/0.161, allocations: 11.44 kB / 0.7806 GB, free: 8.473 MB / 458.7 MB Notification: Performance of SimCode: time 1.482e-06/0.161, allocations: 0 / 0.7806 GB, free: 8.473 MB / 458.7 MB Notification: Performance of Templates: time 0.002332/0.1634, allocations: 0.6086 MB / 0.7812 GB, free: 7.867 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)