Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.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) 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 Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.721/1.721, allocations: 306.1 MB / 321.4 MB, free: 10.75 MB / 250.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.0009747/0.0009747, allocations: 183.5 kB / 393.1 MB, free: 4.078 MB / 314.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.459/1.459, allocations: 225.7 MB / 0.6743 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008192/0.000819, allocations: 97.73 kB / 0.7935 GB, free: 40.06 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003569, allocations: 8 kB / 0.9224 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5846/0.585, allocations: 121.3 MB / 1.041 GB, free: 58.53 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006629/0.5857, allocations: 331.3 kB / 1.041 GB, free: 58.38 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.000261/0.586, allocations: 119.4 kB / 1.041 GB, free: 58.26 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-06/0.586, allocations: 2.5 kB / 1.041 GB, free: 58.26 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.586, allocations: 0 / 1.041 GB, free: 58.26 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.586, allocations: 0 / 1.041 GB, free: 58.26 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/0.5862, allocations: 8.219 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 3.93e-05/0.5863, allocations: 11.17 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.471e-05/0.5863, allocations: 1.594 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 1.594e-05/0.5863, allocations: 4.422 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 2.343e-05/0.5864, allocations: 3.344 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 8.206e-06/0.5864, allocations: 1 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.874e-05/0.5865, allocations: 3.125 kB / 1.041 GB, free: 58.25 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.139e-05/0.5865, allocations: 9.125 kB / 1.041 GB, free: 58.24 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.5865, allocations: 27.61 kB / 1.041 GB, free: 58.21 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 7.338e-05/0.5866, allocations: 13.28 kB / 1.041 GB, free: 58.2 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.5866, allocations: 0.8125 kB / 1.041 GB, free: 58.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5866, allocations: 0 / 1.041 GB, free: 58.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.5866, allocations: 0.6875 kB / 1.041 GB, free: 58.2 MB / 0.698 GB 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.0002079/0.5868, allocations: 311.7 kB / 1.042 GB, free: 57.85 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5869, allocations: 9.359 kB / 1.042 GB, free: 57.85 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.5869, allocations: 6.844 kB / 1.042 GB, free: 57.85 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.897e-05/0.587, allocations: 164.3 kB / 1.042 GB, free: 57.65 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.587, allocations: 4.531 kB / 1.042 GB, free: 57.65 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-06/0.587, allocations: 384 / 1.042 GB, free: 57.65 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.691e-05/0.5871, allocations: 28.55 kB / 1.042 GB, free: 57.62 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.5871, allocations: 192 / 1.042 GB, free: 57.62 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.5871, allocations: 8.938 kB / 1.042 GB, free: 57.62 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.5871, allocations: 0 / 1.042 GB, free: 57.62 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.063e-05/0.5872, allocations: 3.031 kB / 1.042 GB, free: 57.62 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001/0.5873, allocations: 155.8 kB / 1.042 GB, free: 57.42 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.98e-05/0.5873, allocations: 25.34 kB / 1.042 GB, free: 57.39 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.5873, allocations: 9.469 kB / 1.042 GB, free: 57.38 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001414/0.5875, allocations: 88.12 kB / 1.042 GB, free: 57.29 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.441e-05/0.5875, allocations: 30.56 kB / 1.042 GB, free: 57.25 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.5875, allocations: 2.5 kB / 1.042 GB, free: 57.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001655/0.5877, allocations: 47.52 kB / 1.042 GB, free: 57.21 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/0.5877, allocations: 55.34 kB / 1.042 GB, free: 57.14 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.15e-05/0.5877, allocations: 90.84 kB / 1.042 GB, free: 57.04 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.5878, allocations: 25.7 kB / 1.042 GB, free: 57.01 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 1.103e-05/0.5878, allocations: 81.95 kB / 1.042 GB, free: 56.93 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.5878, allocations: 3.938 kB / 1.042 GB, free: 56.93 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-06/0.5878, allocations: 2 kB / 1.042 GB, free: 56.93 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.334e-05/0.5879, allocations: 315.4 kB / 1.043 GB, free: 56.61 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.052e-05/0.5879, allocations: 5.609 kB / 1.043 GB, free: 56.61 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.693e-06/0.5879, allocations: 0.5625 kB / 1.043 GB, free: 56.61 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.694e-05/0.5879, allocations: 15.81 kB / 1.043 GB, free: 56.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.5879, allocations: 0 / 1.043 GB, free: 56.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.902e-05/0.588, allocations: 36.05 kB / 1.043 GB, free: 56.57 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.588, allocations: 10.66 kB / 1.043 GB, free: 56.56 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.588, allocations: 3.938 kB / 1.043 GB, free: 56.56 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.588, allocations: 5.688 kB / 1.043 GB, free: 56.55 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.976e-05/0.5881, allocations: 8.234 kB / 1.043 GB, free: 56.55 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.5881, allocations: 0 / 1.043 GB, free: 56.55 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.355e-05/0.5881, allocations: 0 / 1.043 GB, free: 56.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.5881, allocations: 0.6875 kB / 1.043 GB, free: 56.55 MB / 0.698 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 (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 4.46e-05/0.5882, allocations: 109.1 kB / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.5882, allocations: 0 / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.067e-05/0.5883, allocations: 52.36 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.5883, allocations: 2.062 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.5883, allocations: 0 / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.5883, allocations: 1.062 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.194e-05/0.5883, allocations: 148.9 kB / 1.043 GB, free: 56.21 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5884, allocations: 4 kB / 1.043 GB, free: 56.21 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-05/0.5884, allocations: 11.41 kB / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.5884, allocations: 0 / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.5884, allocations: 12.09 kB / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5884, allocations: 0.9688 kB / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5884, allocations: 0 / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.692e-05/0.5885, allocations: 63.75 kB / 1.043 GB, free: 56.12 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.5885, allocations: 84.94 kB / 1.043 GB, free: 56.03 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.5885, allocations: 3.938 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.145e-05/0.5885, allocations: 1.156 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.682e-05/0.5886, allocations: 1.25 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.5886, allocations: 1.219 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of sorting global known variables: time 1.254e-05/0.5886, allocations: 75.28 kB / 1.043 GB, free: 55.95 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5886, allocations: 0 / 1.043 GB, free: 55.95 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001963/0.5888, allocations: 4.938 kB / 1.043 GB, free: 55.95 MB / 0.698 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,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.0001353/0.5889, allocations: 119.1 kB / 1.044 GB, free: 55.86 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.163e-05/0.589, allocations: 11.25 kB / 1.044 GB, free: 55.85 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.589, allocations: 0 / 1.044 GB, free: 55.85 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.381e-05/0.589, allocations: 4.125 kB / 1.044 GB, free: 55.85 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.5892, allocations: 5.25 kB / 1.044 GB, free: 55.85 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001449/0.5893, allocations: 83.86 kB / 1.044 GB, free: 55.75 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.611e-05/0.5894, allocations: 0.6752 MB / 1.044 GB, free: 55.05 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.584e-05/0.5894, allocations: 6.5 kB / 1.044 GB, free: 55.05 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.1e-05/0.5894, allocations: 8.75 kB / 1.044 GB, free: 55.04 MB / 0.698 GB Notification: Performance of SimCode: time 2.1e-07/0.5895, allocations: 0 / 1.044 GB, free: 55.04 MB / 0.698 GB Notification: Performance of Templates: time 0.001923/0.5914, allocations: 308.5 kB / 1.045 GB, free: 54.98 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)