Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.7628/0.7628, allocations: 143.8 MB / 159.1 MB, free: 6.512 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.0009343/0.0009345, allocations: 183.2 kB / 192 MB, free: 6.723 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.537/1.537, allocations: 225.7 MB / 450.4 MB, free: 4.98 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.0007972/0.0007973, allocations: 107.5 kB / 0.5211 GB, free: 1.641 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.001681/0.001681, allocations: 277.6 kB / 0.6025 GB, free: 49.32 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004089, allocations: 13.81 kB / 0.6948 GB, free: 59.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1536, allocations: 82.46 MB / 0.7753 GB, free: 14.38 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0006952/0.1544, allocations: 314.4 kB / 0.7756 GB, free: 14.07 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002843/0.1547, allocations: 127.5 kB / 0.7757 GB, free: 13.93 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.185e-06/0.1547, allocations: 4 kB / 0.7757 GB, free: 13.93 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.118e-05/0.1547, allocations: 0 / 0.7757 GB, free: 13.93 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.1547, allocations: 0 / 0.7757 GB, free: 13.93 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.1549, allocations: 11.98 kB / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 3.403e-05/0.155, allocations: 4 kB / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.155, allocations: 0 / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.42e-05/0.155, allocations: 4 kB / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.149e-05/0.1551, allocations: 0 / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.1551, allocations: 0 / 0.7758 GB, free: 13.91 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.1551, allocations: 11.98 kB / 0.7758 GB, free: 13.89 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.1551, allocations: 0 / 0.7758 GB, free: 13.89 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.1552, allocations: 33.62 kB / 0.7758 GB, free: 13.86 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 6.848e-05/0.1553, allocations: 8 kB / 0.7758 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1553, allocations: 3.984 kB / 0.7758 GB, free: 13.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1553, allocations: 4 kB / 0.7758 GB, free: 13.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.1553, allocations: 4 kB / 0.7758 GB, free: 13.84 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002534/0.1556, allocations: 307.6 kB / 0.7761 GB, free: 13.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1556, allocations: 12.09 kB / 0.7761 GB, free: 13.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.503e-05/0.1556, allocations: 0.9375 kB / 0.7761 GB, free: 13.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.016e-05/0.1557, allocations: 160.4 kB / 0.7763 GB, free: 13.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.1557, allocations: 4.312 kB / 0.7763 GB, free: 13.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.1558, allocations: 384 / 0.7763 GB, free: 13.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.1559, allocations: 42.25 kB / 0.7763 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1559, allocations: 192 / 0.7763 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.1559, allocations: 3.938 kB / 0.7763 GB, free: 13.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1559, allocations: 0 / 0.7763 GB, free: 13.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.887e-05/0.1559, allocations: 4 kB / 0.7763 GB, free: 13.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.1561, allocations: 149.7 kB / 0.7765 GB, free: 13.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.893e-05/0.1561, allocations: 30.55 kB / 0.7765 GB, free: 12.98 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.1561, allocations: 4.859 kB / 0.7765 GB, free: 12.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/0.1563, allocations: 89.16 kB / 0.7766 GB, free: 12.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.1563, allocations: 30.56 kB / 0.7766 GB, free: 12.83 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 2.915e-06/0.1563, allocations: 7.922 kB / 0.7766 GB, free: 12.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001238/0.1565, allocations: 45.64 kB / 0.7767 GB, free: 12.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.1565, allocations: 51.41 kB / 0.7767 GB, free: 12.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.811e-05/0.1566, allocations: 93.84 kB / 0.7768 GB, free: 12.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.1566, allocations: 25.7 kB / 0.7768 GB, free: 12.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.1566, allocations: 88.27 kB / 0.7769 GB, free: 12.49 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.1566, allocations: 12.06 kB / 0.7769 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-06/0.1566, allocations: 0 / 0.7769 GB, free: 12.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.764e-05/0.1567, allocations: 318.8 kB / 0.7772 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.1568, allocations: 0 / 0.7772 GB, free: 12.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.1568, allocations: 0 / 0.7772 GB, free: 12.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.159e-05/0.1568, allocations: 16.86 kB / 0.7773 GB, free: 12.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1568, allocations: 0 / 0.7773 GB, free: 12.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.295e-05/0.1569, allocations: 41.75 kB / 0.7773 GB, free: 12.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.1569, allocations: 4 kB / 0.7773 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.1569, allocations: 0 / 0.7773 GB, free: 12.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.1569, allocations: 3.938 kB / 0.7773 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.73e-05/0.157, allocations: 4 kB / 0.7773 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.157, allocations: 3.938 kB / 0.7773 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.157, allocations: 0 / 0.7773 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.027e-06/0.157, allocations: 0 / 0.7773 GB, free: 12.07 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,n) * 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 7.517e-05/0.1571, allocations: 120.5 kB / 0.7774 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-06/0.1571, allocations: 4.031 kB / 0.7774 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.934e-05/0.1572, allocations: 44.77 kB / 0.7775 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.1572, allocations: 0 / 0.7775 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1572, allocations: 7.984 kB / 0.7775 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1572, allocations: 0 / 0.7775 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.385e-05/0.1573, allocations: 145.7 kB / 0.7776 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1573, allocations: 0 / 0.7776 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.212e-05/0.1573, allocations: 4 kB / 0.7776 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1574, allocations: 0 / 0.7776 GB, free: 11.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1574, allocations: 7.922 kB / 0.7776 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1574, allocations: 4.031 kB / 0.7776 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1574, allocations: 3.938 kB / 0.7776 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.84e-05/0.1575, allocations: 57.14 kB / 0.7777 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.1575, allocations: 81.09 kB / 0.7778 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.1575, allocations: 11.88 kB / 0.7778 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.203e-05/0.1575, allocations: 4 kB / 0.7778 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.1576, allocations: 0 / 0.7778 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1576, allocations: 4.031 kB / 0.7778 GB, free: 11.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.757e-05/0.1576, allocations: 75.28 kB / 0.7779 GB, free: 11.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1576, allocations: 0 / 0.7779 GB, free: 11.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001677/0.1578, allocations: 4 kB / 0.7779 GB, free: 11.41 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,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.0001538/0.1579, allocations: 111.8 kB / 0.778 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 6.349e-05/0.158, allocations: 11.94 kB / 0.778 GB, free: 11.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.158, allocations: 0 / 0.778 GB, free: 11.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.715e-05/0.158, allocations: 12.06 kB / 0.778 GB, free: 11.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.1582, allocations: 3.938 kB / 0.778 GB, free: 11.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001681/0.1583, allocations: 82.66 kB / 0.7781 GB, free: 11.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000217/0.1586, allocations: 0.6731 MB / 0.7787 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 1.272e-05/0.1586, allocations: 0 / 0.7787 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.1586, allocations: 15.44 kB / 0.7787 GB, free: 10.43 MB / 458.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1586, allocations: 0 / 0.7787 GB, free: 10.43 MB / 458.7 MB Notification: Performance of Templates: time 0.001894/0.1605, allocations: 318.5 kB / 0.7791 GB, free: 10.13 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)