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.568/1.568, allocations: 171.2 MB / 184.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.725e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2107, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.374, allocations: 78.99 MB / 346.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.3743, allocations: 83.95 kB / 346.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3899/0.7642, allocations: 56.77 MB / 403.4 MB, free: 42.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.298e-06/0.7643, allocations: 4 kB / 403.4 MB, free: 42.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001007/0.7644, allocations: 44 kB / 403.5 MB, free: 42.64 MB / 298.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.007349/0.7717, allocations: 2.521 MB / 406 MB, free: 40.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.7718, allocations: 8.031 kB / 406 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.7823, allocations: 1.962 MB / 408 MB, free: 38.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009865/0.7922, allocations: 3.283 MB / 411.3 MB, free: 34.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.7925, allocations: 177.1 kB / 411.4 MB, free: 34.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001157/0.7937, allocations: 247.8 kB / 411.7 MB, free: 34.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/0.807, allocations: 6.724 MB / 418.4 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001234/0.8071, allocations: 39.62 kB / 418.4 MB, free: 26.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006361/0.8078, allocations: 119.9 kB / 418.5 MB, free: 26.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001139/0.8089, allocations: 0.7072 MB / 419.3 MB, free: 25.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.8209, allocations: 5.697 MB / 425 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03931/0.8602, allocations: 33.29 MB / 458.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006235/0.8665, allocations: 2.279 MB / 460.5 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/0.8687, allocations: 1.007 MB / 461.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.531e-05/0.8688, allocations: 12.62 kB / 461.5 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.8689, allocations: 50.45 kB / 461.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 6.36e-06/0.8689, allocations: 0 / 461.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=106): time 0.02374/0.8926, allocations: 7.021 MB / 468.6 MB, free: 7.129 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.8928, allocations: 136.5 kB / 468.7 MB, free: 6.965 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00554/0.8983, allocations: 2.474 MB / 471.2 MB, free: 4.473 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002243/0.8986, allocations: 45.7 kB / 471.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/0.9008, allocations: 2.05 MB / 473.3 MB, free: 2.344 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006875/0.9015, allocations: 438.6 kB / 473.7 MB, free: 1.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004027/0.902, allocations: 84 kB / 473.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004446/0.9024, allocations: 0.4926 MB / 474.3 MB, free: 1.324 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/0.9057, allocations: 1.352 MB / 475.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006108/0.9119, allocations: 4.132 MB / 479.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005095/0.917, allocations: 2.354 MB / 482.2 MB, free: 8.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.863e-05/0.9171, allocations: 28 kB / 482.2 MB, free: 8.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.01577/0.9329, allocations: 5.895 MB / 488.1 MB, free: 2.125 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.881e-05/0.9331, allocations: 48 kB / 488.1 MB, free: 2.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/0.9332, allocations: 96 kB / 488.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003321/0.9366, allocations: 0.8094 MB / 489 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004378/0.941, allocations: 1.002 MB / 490 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2051/1.146, allocations: 4.083 MB / 494.1 MB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/1.151, allocations: 286 kB / 494.4 MB, free: 85.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007619/1.152, allocations: 278.1 kB / 494.7 MB, free: 85.85 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 () * 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.0007945/1.152, allocations: 437.1 kB / 495.1 MB, free: 85.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005048/1.153, allocations: 230.2 kB / 495.3 MB, free: 85.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/1.158, allocations: 1.845 MB / 497.2 MB, free: 85.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-05/1.158, allocations: 12.25 kB / 497.2 MB, free: 85.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/1.158, allocations: 3.625 kB / 497.2 MB, free: 85.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.181e-05/1.158, allocations: 10 kB / 497.2 MB, free: 85.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/1.17, allocations: 4.79 MB / 0.4902 GB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/1.17, allocations: 0 / 0.4902 GB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009481/1.171, allocations: 143.8 kB / 0.4903 GB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002747/1.173, allocations: 0.6397 MB / 0.491 GB, free: 85.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/1.174, allocations: 19.92 kB / 0.491 GB, free: 85.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005909/1.18, allocations: 3.623 MB / 0.4945 GB, free: 83.89 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.893e-06/1.18, allocations: 1.969 kB / 0.4945 GB, free: 83.89 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007264/1.187, allocations: 3.754 MB / 0.4982 GB, free: 83.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/1.188, allocations: 450.8 kB / 0.4986 GB, free: 83.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004717/1.189, allocations: 14.81 kB / 0.4986 GB, free: 83.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.19, allocations: 70.03 kB / 0.4987 GB, free: 83.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/1.19, allocations: 63.91 kB / 0.4988 GB, free: 83.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/1.19, allocations: 34.09 kB / 0.4988 GB, free: 83.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003258/1.194, allocations: 1.706 MB / 0.5005 GB, free: 82.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.224e-06/1.194, allocations: 0 / 0.5005 GB, free: 82.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004493/1.198, allocations: 0.6478 MB / 0.5011 GB, free: 82.72 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.0004117/1.199, allocations: 152.8 kB / 0.5012 GB, free: 82.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006357/1.205, allocations: 3.32 MB / 0.5045 GB, free: 81.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.646e-06/1.205, allocations: 3.812 kB / 0.5045 GB, free: 81.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/1.207, allocations: 0.9327 MB / 0.5054 GB, free: 81.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/1.208, allocations: 232.7 kB / 0.5056 GB, free: 81.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009929/1.218, allocations: 4.686 MB / 0.5102 GB, free: 79.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005301/1.224, allocations: 2.243 MB / 0.5124 GB, free: 78.49 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/1.225, allocations: 199.2 kB / 0.5126 GB, free: 78.48 MB / 346.7 MB Notification: Performance of SimCode: time 2.536e-06/1.225, allocations: 0 / 0.5126 GB, free: 78.48 MB / 346.7 MB Notification: Performance of Templates: time 0.1099/1.335, allocations: 45.26 MB / 0.5568 GB, free: 43.2 MB / 346.7 MB