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.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.0834, allocations: 44.52 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4237, allocations: 84.8 MB / 393.3 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.4241, allocations: 86.94 kB / 393.3 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2031/0.6271, allocations: 56.73 MB / 450.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.48e-06/0.6272, allocations: 0 / 450.1 MB, free: 6.402 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001141/0.6273, allocations: 48 kB / 450.1 MB, free: 6.355 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.008449/0.6358, allocations: 2.654 MB / 452.8 MB, free: 3.84 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.6358, allocations: 11.97 kB / 452.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01117/0.647, allocations: 1.973 MB / 454.8 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.6578, allocations: 3.286 MB / 458 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.6581, allocations: 182.3 kB / 458.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.6592, allocations: 233.5 kB / 458.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01561/0.6748, allocations: 6.791 MB / 465.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.675, allocations: 47.61 kB / 465.3 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005859/0.6756, allocations: 123.9 kB / 465.4 MB, free: 7.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001385/0.677, allocations: 0.7111 MB / 466.1 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.6915, allocations: 5.84 MB / 472 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04649/0.7381, allocations: 33.29 MB / 0.4934 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006248/0.7444, allocations: 2.289 MB / 0.4956 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.571e-05/0.7445, allocations: 16.61 kB / 0.4957 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.7445, allocations: 42.5 kB / 0.4957 GB, free: 12.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 5.51e-06/0.7446, allocations: 3.938 kB / 0.4957 GB, free: 12.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.02817/0.7727, allocations: 8.717 MB / 0.5042 GB, free: 3.234 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.7729, allocations: 136.5 kB / 0.5043 GB, free: 3.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006145/0.7791, allocations: 2.537 MB / 0.5068 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000229/0.7793, allocations: 41.7 kB / 0.5069 GB, free: 484 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/0.7816, allocations: 2.054 MB / 0.5089 GB, free: 14.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007129/0.7824, allocations: 442.6 kB / 0.5093 GB, free: 13.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000425/0.7828, allocations: 84 kB / 0.5094 GB, free: 13.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004601/0.7833, allocations: 0.4924 MB / 0.5099 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003636/0.7869, allocations: 1.41 MB / 0.5112 GB, free: 11.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006606/0.7936, allocations: 4.19 MB / 0.5153 GB, free: 6.344 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005403/0.7991, allocations: 2.389 MB / 0.5177 GB, free: 3.957 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.645e-05/0.7992, allocations: 32 kB / 0.5177 GB, free: 3.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.2368/1.036, allocations: 5.988 MB / 0.5235 GB, free: 107.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.438e-05/1.036, allocations: 50.38 kB / 0.5236 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/1.036, allocations: 99.06 kB / 0.5237 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003177/1.04, allocations: 0.8098 MB / 0.5245 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004087/1.044, allocations: 0.9921 MB / 0.5254 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007345/1.051, allocations: 4.207 MB / 0.5295 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004712/1.056, allocations: 285.5 kB / 0.5298 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009452/1.057, allocations: 274.8 kB / 0.5301 GB, free: 106.4 MB / 410.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.003235/1.06, allocations: 1.358 MB / 0.5314 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005474/1.061, allocations: 235.3 kB / 0.5316 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004895/1.066, allocations: 1.847 MB / 0.5334 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.663e-05/1.066, allocations: 16.33 kB / 0.5334 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/1.066, allocations: 6.25 kB / 0.5335 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/1.066, allocations: 9.688 kB / 0.5335 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/1.077, allocations: 4.784 MB / 0.5381 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/1.078, allocations: 7.406 kB / 0.5381 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007893/1.078, allocations: 132.5 kB / 0.5383 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/1.081, allocations: 0.6414 MB / 0.5389 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001856/1.081, allocations: 19.75 kB / 0.5389 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005536/1.087, allocations: 3.74 MB / 0.5426 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.05e-06/1.087, allocations: 3.375 kB / 0.5426 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00678/1.093, allocations: 3.773 MB / 0.5463 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.095, allocations: 443.5 kB / 0.5467 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003426/1.095, allocations: 13.38 kB / 0.5467 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/1.096, allocations: 78 kB / 0.5468 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/1.096, allocations: 54.19 kB / 0.5468 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/1.097, allocations: 29.19 kB / 0.5468 GB, free: 103.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003464/1.1, allocations: 1.771 MB / 0.5486 GB, free: 103.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.1, allocations: 0 / 0.5486 GB, free: 103.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004624/1.105, allocations: 0.6426 MB / 0.5492 GB, free: 103.6 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 (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.0003805/1.105, allocations: 158.8 kB / 0.5494 GB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006254/1.111, allocations: 3.397 MB / 0.5527 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.111, allocations: 2.625 kB / 0.5527 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001537/1.113, allocations: 0.9331 MB / 0.5536 GB, free: 102.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/1.114, allocations: 237.2 kB / 0.5538 GB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/1.126, allocations: 6.654 MB / 0.5603 GB, free: 99.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002693/1.129, allocations: 2.233 MB / 0.5625 GB, free: 98.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007271/1.13, allocations: 199.7 kB / 0.5627 GB, free: 98.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.638e-06/1.13, allocations: 0 / 0.5627 GB, free: 98.29 MB / 410.7 MB Notification: Performance of Templates: time 0.06285/1.193, allocations: 45.27 MB / 0.6069 GB, free: 70.39 MB / 410.7 MB