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.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.3 MB / 179.2 MB, free: 7.59 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.13e-05/3.16e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08484/0.0849, allocations: 38.77 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.38, allocations: 78.32 MB / 339.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.3803, allocations: 83.52 kB / 339.7 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.221/0.6013, allocations: 55.89 MB / 395.6 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.66e-06/0.6013, allocations: 0 / 395.6 MB, free: 5.105 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001087/0.6014, allocations: 48 kB / 395.6 MB, free: 5.059 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: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.007649/0.6091, allocations: 2.525 MB / 398.2 MB, free: 2.477 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.6092, allocations: 8.031 kB / 398.2 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01138/0.6206, allocations: 1.97 MB / 400.1 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.6314, allocations: 3.259 MB / 403.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.6316, allocations: 83.95 kB / 403.5 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008241/0.6325, allocations: 136 kB / 403.6 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009073/0.6416, allocations: 3.912 MB / 407.5 MB, free: 9.047 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.6546, allocations: 6.171 MB / 413.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/0.6548, allocations: 55.53 kB / 413.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005114/0.6553, allocations: 27.98 kB / 413.8 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001313/0.6566, allocations: 0.7111 MB / 414.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2198/0.8764, allocations: 31.94 MB / 446.4 MB, free: 66.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002966/0.8794, allocations: 2.025 MB / 448.5 MB, free: 65.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.8811, allocations: 0.9887 MB / 449.4 MB, free: 65.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.002e-05/0.8812, allocations: 17.56 kB / 449.5 MB, free: 65.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.8812, allocations: 45.5 kB / 449.5 MB, free: 65.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 5.684e-06/0.8813, allocations: 0 / 449.5 MB, free: 65.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.01993/0.9012, allocations: 8.178 MB / 457.7 MB, free: 64.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.9013, allocations: 137.2 kB / 457.8 MB, free: 63.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003463/0.9048, allocations: 2.159 MB / 460 MB, free: 63.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001991/0.905, allocations: 25.7 kB / 460 MB, free: 63.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.9061, allocations: 2.142 MB / 462.1 MB, free: 61.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/0.9066, allocations: 429.5 kB / 462.6 MB, free: 61.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.9068, allocations: 0 / 462.6 MB, free: 61.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.9071, allocations: 0.4972 MB / 463.1 MB, free: 60.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002285/0.9094, allocations: 1.309 MB / 464.4 MB, free: 60.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00347/0.9129, allocations: 4.208 MB / 468.6 MB, free: 55.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004008/0.9169, allocations: 2.345 MB / 470.9 MB, free: 55.33 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-05/0.917, allocations: 33.62 kB / 471 MB, free: 55.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01327/0.9303, allocations: 5.439 MB / 476.4 MB, free: 53.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.752e-05/0.9304, allocations: 48.66 kB / 476.4 MB, free: 53.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/0.9305, allocations: 105.6 kB / 476.5 MB, free: 53.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/0.9336, allocations: 0.8087 MB / 477.3 MB, free: 53.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/0.9376, allocations: 1.035 MB / 478.4 MB, free: 53.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006295/0.9439, allocations: 3.971 MB / 482.4 MB, free: 51.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004442/0.9484, allocations: 205.4 kB / 482.6 MB, free: 51.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000633/0.9491, allocations: 283.8 kB / 482.8 MB, free: 51.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 15 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (552): * Single equations (assignments): 548 * 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 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006836/0.9498, allocations: 349.4 kB / 483.2 MB, free: 50.99 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004167/0.9502, allocations: 210.3 kB / 483.4 MB, free: 50.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004533/0.9547, allocations: 1.78 MB / 485.2 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.515e-05/0.9548, allocations: 14.34 kB / 485.2 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.9548, allocations: 3.375 kB / 485.2 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.9549, allocations: 7.797 kB / 485.2 MB, free: 50.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/0.9653, allocations: 4.326 MB / 489.5 MB, free: 48.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.9654, allocations: 0 / 489.5 MB, free: 48.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/0.9663, allocations: 140.1 kB / 489.6 MB, free: 48.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/0.969, allocations: 0.6313 MB / 490.3 MB, free: 48.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00015/0.9691, allocations: 11.66 kB / 490.3 MB, free: 48.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005557/0.9747, allocations: 3.504 MB / 493.8 MB, free: 46.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.266e-06/0.9748, allocations: 2.188 kB / 493.8 MB, free: 46.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006708/0.9815, allocations: 3.677 MB / 497.5 MB, free: 43.36 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00098/0.9825, allocations: 420.5 kB / 497.9 MB, free: 42.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.9828, allocations: 8.016 kB / 497.9 MB, free: 42.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.984, allocations: 58.2 kB / 497.9 MB, free: 42.92 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.9843, allocations: 53.53 kB / 498 MB, free: 42.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.9844, allocations: 25.48 kB / 498 MB, free: 42.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002302/0.9867, allocations: 1.42 MB / 499.4 MB, free: 41.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.9867, allocations: 0 / 499.4 MB, free: 41.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004396/0.9911, allocations: 0.5524 MB / 500 MB, free: 41.06 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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.0003428/0.9915, allocations: 134.5 kB / 0.4884 GB, free: 40.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005723/0.9972, allocations: 3.162 MB / 0.4915 GB, free: 38.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.552e-06/0.9973, allocations: 11.94 kB / 0.4915 GB, free: 38.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.9987, allocations: 0.8887 MB / 0.4924 GB, free: 37.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/1, allocations: 203.4 kB / 0.4926 GB, free: 37.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008922/1.009, allocations: 4.636 MB / 0.4971 GB, free: 32.97 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.012, allocations: 2.229 MB / 0.4993 GB, free: 31.19 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007407/1.013, allocations: 192.3 kB / 0.4995 GB, free: 31.01 MB / 346.7 MB Notification: Performance of SimCode: time 1.855e-06/1.013, allocations: 0 / 0.4995 GB, free: 31.01 MB / 346.7 MB Notification: Performance of Templates: time 0.2497/1.262, allocations: 43.92 MB / 0.5423 GB, free: 81.55 MB / 346.7 MB