Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.221/1.221, allocations: 255.9 MB / 271.2 MB, free: 8.914 MB / 218.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.0009309/0.000931, allocations: 178.3 kB / 330.8 MB, free: 492 kB / 250.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.311/1.311, allocations: 225.7 MB / 0.6016 GB, free: 1.527 MB / 426.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.0007428/0.0007429, allocations: 95.66 kB / 0.709 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002967, allocations: 12.62 kB / 0.8261 GB, free: 115.6 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1533, allocations: 109.2 MB / 0.9328 GB, free: 6.254 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005471/0.1539, allocations: 314 kB / 0.9331 GB, free: 5.949 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0002355/0.1542, allocations: 121 kB / 0.9332 GB, free: 5.812 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.175e-06/0.1542, allocations: 0 / 0.9332 GB, free: 5.812 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.1542, allocations: 0 / 0.9332 GB, free: 5.812 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 4.418e-06/0.1542, allocations: 0 / 0.9332 GB, free: 5.812 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.1544, allocations: 11.92 kB / 0.9332 GB, free: 5.801 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 3.012e-05/0.1544, allocations: 8 kB / 0.9332 GB, free: 5.793 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 3.809e-05/0.1544, allocations: 3.984 kB / 0.9332 GB, free: 5.789 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 1.143e-05/0.1545, allocations: 0 / 0.9332 GB, free: 5.789 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 1.955e-05/0.1545, allocations: 0 / 0.9332 GB, free: 5.789 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 7.604e-06/0.1545, allocations: 8 kB / 0.9332 GB, free: 5.781 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.1546, allocations: 8 kB / 0.9332 GB, free: 5.773 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 7.303e-06/0.1546, allocations: 0 / 0.9332 GB, free: 5.773 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 2.183e-05/0.1546, allocations: 37.62 kB / 0.9333 GB, free: 5.73 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 6.155e-05/0.1547, allocations: 7.984 kB / 0.9333 GB, free: 5.723 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1547, allocations: 0 / 0.9333 GB, free: 5.723 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.532e-06/0.1547, allocations: 0 / 0.9333 GB, free: 5.723 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.1547, allocations: 0 / 0.9333 GB, free: 5.723 MB / 0.573 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.0001694/0.1549, allocations: 307.6 kB / 0.9336 GB, free: 5.371 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.1549, allocations: 11.98 kB / 0.9336 GB, free: 5.359 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.238e-05/0.1549, allocations: 4.938 kB / 0.9336 GB, free: 5.355 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.125e-05/0.155, allocations: 168.4 kB / 0.9337 GB, free: 5.152 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.774e-06/0.155, allocations: 4.375 kB / 0.9337 GB, free: 5.148 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-06/0.155, allocations: 384 / 0.9337 GB, free: 5.148 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.951e-05/0.1551, allocations: 30.27 kB / 0.9338 GB, free: 5.113 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.41e-06/0.1551, allocations: 192 / 0.9338 GB, free: 5.113 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.1551, allocations: 3.938 kB / 0.9338 GB, free: 5.109 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1551, allocations: 0 / 0.9338 GB, free: 5.109 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.641e-05/0.1551, allocations: 11.92 kB / 0.9338 GB, free: 5.098 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.219e-05/0.1552, allocations: 149.7 kB / 0.9339 GB, free: 4.902 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 2.867e-05/0.1553, allocations: 18.61 kB / 0.9339 GB, free: 4.875 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.519e-05/0.1553, allocations: 16.91 kB / 0.934 GB, free: 4.855 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.1554, allocations: 81.11 kB / 0.934 GB, free: 4.758 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.1554, allocations: 30.56 kB / 0.9341 GB, free: 4.719 MB / 0.573 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1554, allocations: 0 / 0.9341 GB, free: 4.719 MB / 0.573 GB Notification: Performance of matching and sorting (n=2): time 0.0001032/0.1555, allocations: 57.5 kB / 0.9341 GB, free: 4.656 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.747e-05/0.1556, allocations: 55.34 kB / 0.9342 GB, free: 4.59 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.701e-05/0.1556, allocations: 89.86 kB / 0.9343 GB, free: 4.492 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.071e-06/0.1556, allocations: 29.7 kB / 0.9343 GB, free: 4.457 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 8.166e-06/0.1556, allocations: 80.14 kB / 0.9344 GB, free: 4.375 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.1556, allocations: 3.906 kB / 0.9344 GB, free: 4.371 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.1556, allocations: 0 / 0.9344 GB, free: 4.371 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 3.402e-05/0.1557, allocations: 314.8 kB / 0.9347 GB, free: 4.055 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.1557, allocations: 8 kB / 0.9347 GB, free: 4.047 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-06/0.1557, allocations: 4.125 kB / 0.9347 GB, free: 4.043 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.441e-05/0.1557, allocations: 12.84 kB / 0.9347 GB, free: 4.027 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.1557, allocations: 3.938 kB / 0.9347 GB, free: 4.023 MB / 0.573 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.623e-05/0.1558, allocations: 41.7 kB / 0.9347 GB, free: 3.977 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.1558, allocations: 11.91 kB / 0.9347 GB, free: 3.965 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.1558, allocations: 0 / 0.9347 GB, free: 3.965 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.1558, allocations: 3.938 kB / 0.9347 GB, free: 3.961 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.618e-05/0.1559, allocations: 7.984 kB / 0.9348 GB, free: 3.953 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.1559, allocations: 8.078 kB / 0.9348 GB, free: 3.945 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.227e-05/0.1559, allocations: 0 / 0.9348 GB, free: 3.945 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-06/0.1559, allocations: 0 / 0.9348 GB, free: 3.945 MB / 0.573 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 3.615e-05/0.1559, allocations: 106.5 kB / 0.9349 GB, free: 3.832 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-06/0.156, allocations: 4 kB / 0.9349 GB, free: 3.828 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.581e-05/0.156, allocations: 48.97 kB / 0.9349 GB, free: 3.77 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.156, allocations: 4 kB / 0.9349 GB, free: 3.766 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.156, allocations: 0 / 0.9349 GB, free: 3.766 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1561, allocations: 0 / 0.9349 GB, free: 3.766 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.834e-05/0.1561, allocations: 157.6 kB / 0.9351 GB, free: 3.562 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1561, allocations: 3.984 kB / 0.9351 GB, free: 3.559 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.985e-05/0.1561, allocations: 4 kB / 0.9351 GB, free: 3.555 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1561, allocations: 0 / 0.9351 GB, free: 3.555 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-06/0.1562, allocations: 3.938 kB / 0.9351 GB, free: 3.551 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1562, allocations: 4 kB / 0.9351 GB, free: 3.547 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1562, allocations: 0 / 0.9351 GB, free: 3.547 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.878e-05/0.1562, allocations: 69.06 kB / 0.9352 GB, free: 3.461 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.099e-05/0.1562, allocations: 77.11 kB / 0.9352 GB, free: 3.367 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-06/0.1562, allocations: 3.938 kB / 0.9352 GB, free: 3.363 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.1563, allocations: 0 / 0.9352 GB, free: 3.363 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.251e-05/0.1563, allocations: 7.938 kB / 0.9352 GB, free: 3.355 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.1563, allocations: 0 / 0.9352 GB, free: 3.355 MB / 0.573 GB Notification: Performance of sorting global known variables: time 9.227e-06/0.1563, allocations: 75.28 kB / 0.9353 GB, free: 3.281 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1563, allocations: 0 / 0.9353 GB, free: 3.281 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0001743/0.1565, allocations: 4 kB / 0.9353 GB, free: 3.277 MB / 0.573 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.0001025/0.1566, allocations: 121.8 kB / 0.9354 GB, free: 3.152 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 5.195e-05/0.1567, allocations: 12 kB / 0.9354 GB, free: 3.141 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.1567, allocations: 0 / 0.9354 GB, free: 3.141 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 1.183e-05/0.1567, allocations: 4 kB / 0.9354 GB, free: 3.137 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.1568, allocations: 3.609 kB / 0.9354 GB, free: 3.137 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001211/0.1569, allocations: 90.69 kB / 0.9355 GB, free: 3.023 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.141e-05/0.157, allocations: 0.6692 MB / 0.9362 GB, free: 2.328 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 1.594e-05/0.157, allocations: 8.125 kB / 0.9362 GB, free: 2.32 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.029e-05/0.157, allocations: 11.42 kB / 0.9362 GB, free: 2.309 MB / 0.573 GB Notification: Performance of SimCode: time 1.9e-07/0.157, allocations: 0 / 0.9362 GB, free: 2.309 MB / 0.573 GB Notification: Performance of Templates: time 0.001655/0.1587, allocations: 300 kB / 0.9365 GB, free: 2.016 MB / 0.573 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)