Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.744/1.744, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003488, allocations: 12 kB / 233.8 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08259, allocations: 38.77 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4533, allocations: 79.05 MB / 351.6 MB, free: 11.03 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.4537, allocations: 93.69 kB / 351.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2802/0.7339, allocations: 57.25 MB / 408.9 MB, free: 7.379 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.734, allocations: 3.938 kB / 408.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001707/0.7342, allocations: 40 kB / 409 MB, free: 7.336 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.01082/0.745, allocations: 2.661 MB / 411.6 MB, free: 4.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.7451, allocations: 8.031 kB / 411.7 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.7608, allocations: 1.962 MB / 413.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.7742, allocations: 3.291 MB / 416.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/0.7745, allocations: 172.5 kB / 417.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.7761, allocations: 231.9 kB / 417.3 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02082/0.7969, allocations: 6.816 MB / 424.1 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.7972, allocations: 51.52 kB / 424.2 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001259/0.7984, allocations: 119.9 kB / 424.3 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001934/0.8004, allocations: 0.7072 MB / 425 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.8188, allocations: 5.84 MB / 430.8 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.282/1.101, allocations: 33.28 MB / 464.1 MB, free: 59.37 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007424/1.108, allocations: 2.288 MB / 466.4 MB, free: 58.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001325/1.109, allocations: 10.69 kB / 466.4 MB, free: 58.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/1.109, allocations: 43.67 kB / 466.5 MB, free: 58.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 5.55e-06/1.109, allocations: 0 / 466.5 MB, free: 58.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.03576/1.144, allocations: 8.913 MB / 475.4 MB, free: 56.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/1.145, allocations: 139.9 kB / 475.5 MB, free: 56.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006018/1.151, allocations: 2.827 MB / 478.3 MB, free: 55.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002987/1.151, allocations: 41.05 kB / 478.4 MB, free: 55.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/1.153, allocations: 2.054 MB / 480.4 MB, free: 54.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00072/1.153, allocations: 440.6 kB / 480.9 MB, free: 54.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004819/1.154, allocations: 82.72 kB / 480.9 MB, free: 54.26 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002906/1.154, allocations: 0.4925 MB / 481.4 MB, free: 53.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003711/1.158, allocations: 1.416 MB / 482.8 MB, free: 53.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005592/1.164, allocations: 4.204 MB / 487 MB, free: 49.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005781/1.169, allocations: 2.385 MB / 489.4 MB, free: 48.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/1.17, allocations: 36.8 kB / 489.5 MB, free: 48.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01779/1.187, allocations: 5.99 MB / 495.5 MB, free: 46.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/1.188, allocations: 50.03 kB / 495.5 MB, free: 46.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001382/1.188, allocations: 97.94 kB / 495.6 MB, free: 46.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003976/1.192, allocations: 0.8039 MB / 496.4 MB, free: 46.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005707/1.197, allocations: 0.9982 MB / 497.4 MB, free: 46.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008613/1.206, allocations: 4.206 MB / 0.4899 GB, free: 44.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0052/1.211, allocations: 281.5 kB / 0.4901 GB, free: 44.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009845/1.212, allocations: 276.6 kB / 0.4904 GB, free: 44.04 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.003598/1.216, allocations: 1.358 MB / 0.4917 GB, free: 43.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000588/1.217, allocations: 232.5 kB / 0.4919 GB, free: 43.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006303/1.223, allocations: 1.853 MB / 0.4937 GB, free: 42.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-05/1.223, allocations: 16.72 kB / 0.4938 GB, free: 42.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.223, allocations: 3.438 kB / 0.4938 GB, free: 42.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.848e-05/1.223, allocations: 9.734 kB / 0.4938 GB, free: 42.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/1.237, allocations: 4.811 MB / 0.4985 GB, free: 40.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/1.238, allocations: 0 / 0.4985 GB, free: 40.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/1.239, allocations: 137.2 kB / 0.4986 GB, free: 40.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/1.242, allocations: 0.6372 MB / 0.4992 GB, free: 40.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/1.243, allocations: 24.61 kB / 0.4993 GB, free: 40.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007378/1.25, allocations: 3.736 MB / 0.5029 GB, free: 37.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.25, allocations: 4.031 kB / 0.5029 GB, free: 37.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009262/1.259, allocations: 3.672 MB / 0.5065 GB, free: 34.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/1.261, allocations: 444.5 kB / 0.5069 GB, free: 33.92 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005533/1.262, allocations: 16 kB / 0.5069 GB, free: 33.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/1.263, allocations: 76.31 kB / 0.507 GB, free: 33.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002719/1.264, allocations: 65.72 kB / 0.5071 GB, free: 33.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/1.264, allocations: 27.52 kB / 0.5071 GB, free: 33.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004344/1.268, allocations: 1.763 MB / 0.5088 GB, free: 32.33 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.268, allocations: 0 / 0.5088 GB, free: 32.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004937/1.273, allocations: 0.6466 MB / 0.5094 GB, free: 31.69 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.0005126/1.274, allocations: 156.9 kB / 0.5096 GB, free: 31.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008005/1.282, allocations: 3.396 MB / 0.5129 GB, free: 28.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.282, allocations: 0 / 0.5129 GB, free: 28.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/1.284, allocations: 0.9313 MB / 0.5138 GB, free: 27.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/1.286, allocations: 234.6 kB / 0.514 GB, free: 27.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01441/1.3, allocations: 6.691 MB / 0.5206 GB, free: 21.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00396/1.304, allocations: 2.237 MB / 0.5228 GB, free: 19.35 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009419/1.305, allocations: 199.4 kB / 0.523 GB, free: 19.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/1.305, allocations: 0 / 0.523 GB, free: 19.16 MB / 346.7 MB Notification: Performance of Templates: time 0.3597/1.665, allocations: 45.26 MB / 0.5671 GB, free: 90.04 MB / 362.7 MB