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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.672/1.672, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 12 kB / 233.2 MB, free: 3.035 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07121, allocations: 38.78 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.311/0.3823, allocations: 79.07 MB / 351.1 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004242/0.3828, allocations: 89.02 kB / 351.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2614/0.6442, allocations: 56.76 MB / 407.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.787e-06/0.6442, allocations: 0 / 407.9 MB, free: 7.812 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001208/0.6444, allocations: 43.94 kB / 408 MB, free: 7.77 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.008467/0.6528, allocations: 2.649 MB / 410.6 MB, free: 5.062 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.6529, allocations: 12.03 kB / 410.6 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.6644, allocations: 1.966 MB / 412.6 MB, free: 3.078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/0.6755, allocations: 3.287 MB / 415.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002529/0.6758, allocations: 176.6 kB / 416.1 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001026/0.6768, allocations: 235.9 kB / 416.3 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01607/0.6929, allocations: 6.796 MB / 423.1 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001359/0.6931, allocations: 43.53 kB / 423.1 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006935/0.6938, allocations: 127.9 kB / 423.2 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001385/0.6952, allocations: 0.7033 MB / 424 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.7102, allocations: 5.848 MB / 429.8 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2335/0.9438, allocations: 33.27 MB / 463.1 MB, free: 59.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005559/0.9494, allocations: 2.289 MB / 465.4 MB, free: 58.67 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.858e-05/0.9495, allocations: 12.19 kB / 465.4 MB, free: 58.67 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.9495, allocations: 48.08 kB / 465.4 MB, free: 58.63 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 5.61e-06/0.9496, allocations: 1.406 kB / 465.4 MB, free: 58.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.02634/0.9759, allocations: 8.725 MB / 474.1 MB, free: 56.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.976, allocations: 135.3 kB / 474.3 MB, free: 56.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/0.9812, allocations: 2.533 MB / 476.8 MB, free: 55.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002181/0.9814, allocations: 42.17 kB / 476.9 MB, free: 55.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.9828, allocations: 2.054 MB / 478.9 MB, free: 54.78 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000497/0.9833, allocations: 443.8 kB / 479.3 MB, free: 54.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003278/0.9837, allocations: 80.5 kB / 479.4 MB, free: 54.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002738/0.984, allocations: 0.4949 MB / 479.9 MB, free: 54.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003156/0.9871, allocations: 1.41 MB / 481.3 MB, free: 53.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00474/0.9919, allocations: 4.189 MB / 485.5 MB, free: 49.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004602/0.9966, allocations: 2.392 MB / 487.9 MB, free: 48.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.589e-05/0.9967, allocations: 29.22 kB / 487.9 MB, free: 48.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01462/1.011, allocations: 5.989 MB / 493.9 MB, free: 46.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.708e-05/1.011, allocations: 57.75 kB / 494 MB, free: 46.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001396/1.012, allocations: 98.34 kB / 494.1 MB, free: 46.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00309/1.015, allocations: 0.8102 MB / 494.9 MB, free: 46.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003917/1.019, allocations: 0.9894 MB / 495.9 MB, free: 46.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006923/1.026, allocations: 4.207 MB / 0.4884 GB, free: 44.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00474/1.03, allocations: 287.3 kB / 0.4886 GB, free: 44.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000812/1.031, allocations: 273.7 kB / 0.4889 GB, free: 44.4 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (528): * Single equations (assignments): 524 * 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.00297/1.034, allocations: 1.356 MB / 0.4902 GB, free: 43.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000532/1.035, allocations: 232.4 kB / 0.4904 GB, free: 43.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004678/1.039, allocations: 1.847 MB / 0.4922 GB, free: 43.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.71e-05/1.04, allocations: 16.38 kB / 0.4923 GB, free: 43.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/1.04, allocations: 7.891 kB / 0.4923 GB, free: 43.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/1.04, allocations: 3.656 kB / 0.4923 GB, free: 43.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/1.051, allocations: 4.801 MB / 0.497 GB, free: 41.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/1.051, allocations: 3.938 kB / 0.497 GB, free: 41.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008779/1.052, allocations: 140.6 kB / 0.4971 GB, free: 41.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/1.055, allocations: 0.6424 MB / 0.4977 GB, free: 41.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/1.055, allocations: 13.28 kB / 0.4977 GB, free: 41.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005862/1.061, allocations: 3.744 MB / 0.5014 GB, free: 38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.572e-06/1.061, allocations: 0 / 0.5014 GB, free: 38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00681/1.068, allocations: 3.787 MB / 0.5051 GB, free: 34.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/1.069, allocations: 440.7 kB / 0.5055 GB, free: 34.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/1.069, allocations: 14.11 kB / 0.5055 GB, free: 34.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/1.07, allocations: 74.25 kB / 0.5056 GB, free: 34.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/1.071, allocations: 57.92 kB / 0.5057 GB, free: 34.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/1.071, allocations: 24 kB / 0.5057 GB, free: 34.24 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003503/1.074, allocations: 1.767 MB / 0.5074 GB, free: 32.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.093e-06/1.074, allocations: 0 / 0.5074 GB, free: 32.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004698/1.079, allocations: 0.651 MB / 0.508 GB, free: 32.14 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 () * Number of clocked 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.0004063/1.079, allocations: 156.6 kB / 0.5082 GB, free: 31.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006326/1.086, allocations: 3.388 MB / 0.5115 GB, free: 29.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.479e-06/1.086, allocations: 3.938 kB / 0.5115 GB, free: 29.01 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/1.087, allocations: 0.9277 MB / 0.5124 GB, free: 28.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/1.089, allocations: 242.5 kB / 0.5126 GB, free: 27.97 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/1.101, allocations: 6.652 MB / 0.5191 GB, free: 21.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003312/1.105, allocations: 2.236 MB / 0.5213 GB, free: 20.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/1.106, allocations: 194.7 kB / 0.5215 GB, free: 19.96 MB / 346.7 MB Notification: Performance of SimCode: time 1.817e-06/1.106, allocations: 0 / 0.5215 GB, free: 19.96 MB / 346.7 MB Notification: Performance of Templates: time 0.275/1.381, allocations: 45.28 MB / 0.5657 GB, free: 91.03 MB / 362.7 MB