Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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) 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 BuildSysPro with version 3.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7184/0.7184, allocations: 131 MB / 146.3 MB, free: 1.332 MB / 106.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.0009308/0.0009308, allocations: 188.2 kB / 176.4 MB, free: 4.914 MB / 138.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.44/1.44, allocations: 225.7 MB / 431.9 MB, free: 8.715 MB / 314.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.0008292/0.0008292, allocations: 93.31 kB / 0.5003 GB, free: 9.805 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006431/0.0006437, allocations: 16 kB / 0.5885 GB, free: 72.64 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1668, allocations: 79.6 MB / 0.6663 GB, free: 8.883 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.0008303/0.1677, allocations: 306.2 kB / 0.6666 GB, free: 8.582 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003241/0.1681, allocations: 121 kB / 0.6667 GB, free: 8.445 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.098e-05/0.1681, allocations: 0 / 0.6667 GB, free: 8.445 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.1681, allocations: 0 / 0.6667 GB, free: 8.445 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 5.661e-06/0.1681, allocations: 0 / 0.6667 GB, free: 8.445 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.1683, allocations: 15.97 kB / 0.6667 GB, free: 8.43 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 3.807e-05/0.1684, allocations: 4 kB / 0.6667 GB, free: 8.426 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.523e-05/0.1684, allocations: 4 kB / 0.6667 GB, free: 8.422 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.577e-05/0.1685, allocations: 0 / 0.6667 GB, free: 8.422 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.51e-05/0.1685, allocations: 4 kB / 0.6667 GB, free: 8.418 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-06/0.1685, allocations: 0 / 0.6667 GB, free: 8.418 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.584e-05/0.1686, allocations: 7.984 kB / 0.6667 GB, free: 8.41 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.1686, allocations: 8 kB / 0.6667 GB, free: 8.402 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.463e-05/0.1687, allocations: 29.64 kB / 0.6668 GB, free: 8.367 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 7.754e-05/0.1688, allocations: 7.984 kB / 0.6668 GB, free: 8.359 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1688, allocations: 0 / 0.6668 GB, free: 8.359 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1688, allocations: 0 / 0.6668 GB, free: 8.359 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.1688, allocations: 0 / 0.6668 GB, free: 8.359 MB / 442.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.0003018/0.1691, allocations: 315.6 kB / 0.6671 GB, free: 8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1691, allocations: 12.03 kB / 0.6671 GB, free: 7.988 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.908e-05/0.1692, allocations: 0.9375 kB / 0.6671 GB, free: 7.988 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.1693, allocations: 164.3 kB / 0.6672 GB, free: 7.789 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1693, allocations: 384 / 0.6672 GB, free: 7.789 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.1693, allocations: 4.375 kB / 0.6672 GB, free: 7.785 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.1694, allocations: 34.25 kB / 0.6673 GB, free: 7.746 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.1695, allocations: 192 / 0.6673 GB, free: 7.746 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.1695, allocations: 7.875 kB / 0.6673 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1695, allocations: 0 / 0.6673 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.327e-05/0.1695, allocations: 4 kB / 0.6673 GB, free: 7.734 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001598/0.1697, allocations: 153.7 kB / 0.6674 GB, free: 7.535 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.416e-05/0.1698, allocations: 26.55 kB / 0.6675 GB, free: 7.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.499e-05/0.1698, allocations: 8.922 kB / 0.6675 GB, free: 7.488 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001797/0.17, allocations: 85.09 kB / 0.6675 GB, free: 7.387 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.17, allocations: 30.56 kB / 0.6676 GB, free: 7.348 MB / 442.7 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.17, allocations: 3.938 kB / 0.6676 GB, free: 7.344 MB / 442.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001497/0.1702, allocations: 45.64 kB / 0.6676 GB, free: 7.293 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.1702, allocations: 51.41 kB / 0.6677 GB, free: 7.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.713e-05/0.1703, allocations: 93.84 kB / 0.6678 GB, free: 7.129 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.1703, allocations: 29.64 kB / 0.6678 GB, free: 7.094 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.1703, allocations: 88.14 kB / 0.6679 GB, free: 7.004 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.1704, allocations: 3.906 kB / 0.6679 GB, free: 7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.1704, allocations: 0 / 0.6679 GB, free: 7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1705, allocations: 314.8 kB / 0.6682 GB, free: 6.684 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.989e-06/0.1705, allocations: 4.125 kB / 0.6682 GB, free: 6.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-06/0.1705, allocations: 4 kB / 0.6682 GB, free: 6.676 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.194e-05/0.1706, allocations: 8.859 kB / 0.6682 GB, free: 6.664 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1706, allocations: 0 / 0.6682 GB, free: 6.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.862e-05/0.1706, allocations: 41.69 kB / 0.6682 GB, free: 6.617 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.1707, allocations: 4 kB / 0.6682 GB, free: 6.613 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.1707, allocations: 8 kB / 0.6682 GB, free: 6.605 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1707, allocations: 3.938 kB / 0.6682 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.215e-05/0.1708, allocations: 8.031 kB / 0.6683 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.1708, allocations: 7.984 kB / 0.6683 GB, free: 6.586 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.258e-05/0.1708, allocations: 0 / 0.6683 GB, free: 6.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.1708, allocations: 0 / 0.6683 GB, free: 6.586 MB / 442.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.9e-05/0.1709, allocations: 110.4 kB / 0.6684 GB, free: 6.469 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.1709, allocations: 7.984 kB / 0.6684 GB, free: 6.461 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.551e-05/0.171, allocations: 41.05 kB / 0.6684 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.171, allocations: 0 / 0.6684 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.171, allocations: 4.031 kB / 0.6684 GB, free: 6.414 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.171, allocations: 7.984 kB / 0.6684 GB, free: 6.406 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.973e-05/0.1711, allocations: 149.6 kB / 0.6686 GB, free: 6.211 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1711, allocations: 0 / 0.6686 GB, free: 6.211 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.28e-05/0.1712, allocations: 4 kB / 0.6686 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1712, allocations: 0 / 0.6686 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.1712, allocations: 7.875 kB / 0.6686 GB, free: 6.199 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.175e-06/0.1712, allocations: 3.984 kB / 0.6686 GB, free: 6.195 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1712, allocations: 4 kB / 0.6686 GB, free: 6.191 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.255e-05/0.1713, allocations: 65.08 kB / 0.6686 GB, free: 6.109 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.1713, allocations: 77.11 kB / 0.6687 GB, free: 6.016 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.1714, allocations: 11.86 kB / 0.6687 GB, free: 6.004 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.1714, allocations: 0 / 0.6687 GB, free: 6.004 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.1714, allocations: 4 kB / 0.6687 GB, free: 6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.1714, allocations: 0 / 0.6687 GB, free: 6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.187e-05/0.1715, allocations: 75.28 kB / 0.6688 GB, free: 5.926 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1715, allocations: 0 / 0.6688 GB, free: 5.926 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002088/0.1717, allocations: 4 kB / 0.6688 GB, free: 5.922 MB / 442.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.0001674/0.1718, allocations: 115.3 kB / 0.6689 GB, free: 5.801 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.491e-05/0.1719, allocations: 11.92 kB / 0.6689 GB, free: 5.789 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1719, allocations: 0 / 0.6689 GB, free: 5.789 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.53e-05/0.172, allocations: 4 kB / 0.6689 GB, free: 5.785 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1721, allocations: 4 kB / 0.6689 GB, free: 5.781 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001965/0.1723, allocations: 87.97 kB / 0.669 GB, free: 5.668 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.1725, allocations: 0.6733 MB / 0.6697 GB, free: 4.969 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.369e-05/0.1726, allocations: 0 / 0.6697 GB, free: 4.969 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.1726, allocations: 11.44 kB / 0.6697 GB, free: 4.957 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1726, allocations: 0 / 0.6697 GB, free: 4.957 MB / 442.7 MB Notification: Performance of Templates: time 0.002172/0.1748, allocations: 323 kB / 0.67 GB, free: 4.645 MB / 442.7 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)