Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003546, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0812/0.08158, allocations: 44.51 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3518/0.4334, allocations: 86.8 MB / 395.3 MB, free: 18.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.4337, allocations: 92.67 kB / 395.3 MB, free: 18.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2058/0.6395, allocations: 57.68 MB / 453 MB, free: 3.633 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.54e-06/0.6395, allocations: 3.938 kB / 453 MB, free: 3.629 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001264/0.6397, allocations: 44 kB / 453.1 MB, free: 3.586 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.008283/0.648, allocations: 2.76 MB / 455.8 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.648, allocations: 8.031 kB / 455.8 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.6587, allocations: 1.93 MB / 457.8 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.6702, allocations: 3.395 MB / 461.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.6705, allocations: 185.5 kB / 461.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.6717, allocations: 255.8 kB / 461.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/0.6884, allocations: 6.838 MB / 468.4 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.6886, allocations: 35.69 kB / 468.5 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005818/0.6892, allocations: 119.9 kB / 468.6 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/0.6906, allocations: 0.7267 MB / 469.3 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01526/0.7059, allocations: 5.993 MB / 475.3 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0464/0.7524, allocations: 31.14 MB / 0.4946 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008066/0.7605, allocations: 2.619 MB / 0.4971 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.7725, allocations: 5.142 MB / 0.5021 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.7726, allocations: 50.5 kB / 0.5022 GB, free: 5.602 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.487e-06/0.7726, allocations: 0 / 0.5022 GB, free: 5.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.03224/0.8049, allocations: 9.803 MB / 0.5118 GB, free: 11.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.805, allocations: 144.9 kB / 0.5119 GB, free: 11.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005512/0.8105, allocations: 2.424 MB / 0.5143 GB, free: 8.984 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002414/0.8108, allocations: 41.7 kB / 0.5143 GB, free: 8.938 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002221/0.8131, allocations: 2.027 MB / 0.5163 GB, free: 6.883 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006872/0.8138, allocations: 426.7 kB / 0.5167 GB, free: 6.461 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.8142, allocations: 84 kB / 0.5168 GB, free: 6.379 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000423/0.8146, allocations: 488 kB / 0.5172 GB, free: 5.891 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003688/0.8183, allocations: 1.441 MB / 0.5187 GB, free: 4.445 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2322/1.051, allocations: 4.021 MB / 0.5226 GB, free: 108.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005108/1.056, allocations: 2.352 MB / 0.5249 GB, free: 108.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002188/1.056, allocations: 27.59 kB / 0.5249 GB, free: 108.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01933/1.075, allocations: 5.911 MB / 0.5307 GB, free: 107.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/1.075, allocations: 45.62 kB / 0.5307 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/1.076, allocations: 99.98 kB / 0.5308 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00351/1.079, allocations: 0.8266 MB / 0.5316 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004169/1.083, allocations: 0.9367 MB / 0.5325 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009817/1.093, allocations: 4.387 MB / 0.5368 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/1.098, allocations: 281.9 kB / 0.5371 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008406/1.099, allocations: 259.1 kB / 0.5373 GB, free: 106.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 420 * Number of states: 0 () * Number of discrete variables: 18 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (493): * Single equations (assignments): 489 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003165/1.102, allocations: 1.355 MB / 0.5387 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005177/1.102, allocations: 227.1 kB / 0.5389 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/1.108, allocations: 2.135 MB / 0.541 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.996e-05/1.108, allocations: 11.78 kB / 0.541 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/1.108, allocations: 3.938 kB / 0.541 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/1.108, allocations: 11.5 kB / 0.541 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/1.119, allocations: 5.08 MB / 0.5459 GB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/1.119, allocations: 2.344 kB / 0.546 GB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009502/1.12, allocations: 145.9 kB / 0.5461 GB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/1.123, allocations: 0.6741 MB / 0.5467 GB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002236/1.123, allocations: 24.98 kB / 0.5468 GB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006476/1.13, allocations: 3.935 MB / 0.5506 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.894e-06/1.13, allocations: 3.938 kB / 0.5506 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00757/1.137, allocations: 4.142 MB / 0.5547 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.139, allocations: 459.5 kB / 0.5551 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003708/1.139, allocations: 26.31 kB / 0.5551 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.14, allocations: 74.39 kB / 0.5552 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/1.141, allocations: 57.17 kB / 0.5553 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/1.141, allocations: 30.25 kB / 0.5553 GB, free: 102 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003745/1.145, allocations: 1.703 MB / 0.5569 GB, free: 101.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.064e-06/1.145, allocations: 0 / 0.5569 GB, free: 101.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004986/1.15, allocations: 0.6731 MB / 0.5576 GB, free: 101.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005992/1.15, allocations: 188.1 kB / 0.5578 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006655/1.157, allocations: 3.468 MB / 0.5612 GB, free: 100 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.174e-06/1.157, allocations: 0 / 0.5612 GB, free: 100 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00175/1.159, allocations: 1.046 MB / 0.5622 GB, free: 99.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/1.16, allocations: 227.8 kB / 0.5624 GB, free: 99.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01242/1.173, allocations: 6.881 MB / 0.5691 GB, free: 96.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003701/1.177, allocations: 2.295 MB / 0.5714 GB, free: 94.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008271/1.177, allocations: 193.2 kB / 0.5716 GB, free: 94.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.649e-06/1.177, allocations: 0 / 0.5716 GB, free: 94.96 MB / 410.7 MB Notification: Performance of Templates: time 0.06827/1.246, allocations: 46.26 MB / 0.6167 GB, free: 60.91 MB / 410.7 MB