Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.619/1.619, allocations: 171.3 MB / 179.2 MB, free: 7.496 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.755e-05/1.771e-05, allocations: 4 kB / 222.5 MB, free: 8.68 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07132/0.07136, allocations: 38.77 MB / 261.3 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2989/0.3703, allocations: 80.29 MB / 341.6 MB, free: 8.129 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.3706, allocations: 87.64 kB / 341.7 MB, free: 8.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.224/0.5946, allocations: 56.73 MB / 398.4 MB, free: 2.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.143e-06/0.5947, allocations: 0 / 398.4 MB, free: 2.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001283/0.5948, allocations: 48 kB / 398.4 MB, free: 2.246 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.00842/0.6033, allocations: 2.619 MB / 401.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.6033, allocations: 8.031 kB / 401.1 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01081/0.6142, allocations: 1.923 MB / 403 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/0.6254, allocations: 3.393 MB / 406.4 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.6256, allocations: 79.95 kB / 406.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/0.6267, allocations: 143.9 kB / 406.6 MB, free: 9.969 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009563/0.6363, allocations: 4.092 MB / 410.7 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2019/0.8383, allocations: 6.19 MB / 416.9 MB, free: 84.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.8385, allocations: 38.28 kB / 416.9 MB, free: 84.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007273/0.8392, allocations: 24.03 kB / 416.9 MB, free: 84.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001405/0.8406, allocations: 0.7167 MB / 417.7 MB, free: 84.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03603/0.8767, allocations: 30.47 MB / 448.1 MB, free: 65.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003188/0.8799, allocations: 2.185 MB / 450.3 MB, free: 64.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.8818, allocations: 1.136 MB / 451.5 MB, free: 64.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009704/0.8828, allocations: 338.8 kB / 451.8 MB, free: 64.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.8828, allocations: 47.27 kB / 451.8 MB, free: 64.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 4.669e-06/0.8828, allocations: 0 / 451.8 MB, free: 64.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=114): time 0.02405/0.9069, allocations: 9.702 MB / 461.5 MB, free: 61.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.907, allocations: 142.1 kB / 461.7 MB, free: 61.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003826/0.9108, allocations: 2.051 MB / 463.7 MB, free: 60.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002524/0.9111, allocations: 29.11 kB / 463.7 MB, free: 60.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.9123, allocations: 2.082 MB / 465.8 MB, free: 58.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005361/0.9129, allocations: 452.4 kB / 466.3 MB, free: 58.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.9132, allocations: 2.875 kB / 466.3 MB, free: 58.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002678/0.9135, allocations: 0.4904 MB / 466.8 MB, free: 58.01 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/0.9158, allocations: 1.381 MB / 468.1 MB, free: 57.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003866/0.9197, allocations: 4.041 MB / 472.2 MB, free: 53.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005275/0.925, allocations: 2.467 MB / 474.7 MB, free: 52.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-05/0.9252, allocations: 26.62 kB / 474.7 MB, free: 52.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=556) (initialization): time 0.01394/0.9391, allocations: 5.609 MB / 480.3 MB, free: 50.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-05/0.9392, allocations: 47.22 kB / 480.3 MB, free: 50.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.9393, allocations: 98 kB / 480.4 MB, free: 50.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/0.9424, allocations: 0.8377 MB / 481.3 MB, free: 50.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00378/0.9462, allocations: 0.9879 MB / 482.3 MB, free: 50.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006522/0.9527, allocations: 4.248 MB / 486.5 MB, free: 48.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/0.9572, allocations: 201.4 kB / 486.7 MB, free: 48.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000849/0.9581, allocations: 267.1 kB / 487 MB, free: 48.53 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 438 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 516 * 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.0007659/0.9589, allocations: 350.6 kB / 487.3 MB, free: 48.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004893/0.9594, allocations: 209 kB / 487.5 MB, free: 48.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005711/0.9651, allocations: 2.236 MB / 489.7 MB, free: 47.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-05/0.9652, allocations: 14.5 kB / 489.8 MB, free: 47.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.9652, allocations: 3.625 kB / 489.8 MB, free: 47.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.9653, allocations: 7.375 kB / 489.8 MB, free: 47.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.9778, allocations: 5.128 MB / 494.9 MB, free: 45.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/0.9779, allocations: 3.969 kB / 494.9 MB, free: 45.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009657/0.9789, allocations: 164.4 kB / 495.1 MB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/0.9815, allocations: 0.6765 MB / 495.7 MB, free: 45.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002035/0.9817, allocations: 7.312 kB / 495.7 MB, free: 45.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005663/0.9874, allocations: 3.71 MB / 499.5 MB, free: 42.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.196e-06/0.9874, allocations: 0 / 499.5 MB, free: 42.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008617/0.996, allocations: 4.369 MB / 0.492 GB, free: 38.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.9972, allocations: 439.1 kB / 0.4924 GB, free: 38.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004084/0.9977, allocations: 15.94 kB / 0.4924 GB, free: 38.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.9991, allocations: 71.78 kB / 0.4925 GB, free: 38.24 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.9993, allocations: 66.41 kB / 0.4926 GB, free: 38.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.9995, allocations: 35.84 kB / 0.4926 GB, free: 38.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002424/1.002, allocations: 1.356 MB / 0.4939 GB, free: 36.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.063e-06/1.002, allocations: 4 kB / 0.4939 GB, free: 36.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004773/1.007, allocations: 0.5902 MB / 0.4945 GB, free: 36.38 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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.0005367/1.007, allocations: 176.6 kB / 0.4947 GB, free: 36.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00604/1.013, allocations: 3.314 MB / 0.4979 GB, free: 33.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.167e-06/1.013, allocations: 3.938 kB / 0.4979 GB, free: 33.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/1.015, allocations: 1.032 MB / 0.4989 GB, free: 32.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/1.017, allocations: 189.8 kB / 0.4991 GB, free: 32.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009992/1.027, allocations: 4.87 MB / 0.5039 GB, free: 27.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002932/1.03, allocations: 2.284 MB / 0.5061 GB, free: 25.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007926/1.03, allocations: 191.4 kB / 0.5063 GB, free: 25.33 MB / 346.7 MB Notification: Performance of SimCode: time 1.956e-06/1.03, allocations: 0 / 0.5063 GB, free: 25.33 MB / 346.7 MB Notification: Performance of Templates: time 0.2621/1.292, allocations: 45.19 MB / 0.5504 GB, free: 72.34 MB / 346.7 MB