Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.806/1.806, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003112, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08865, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4715, allocations: 84.79 MB / 393.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.4719, allocations: 92.86 kB / 393.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2253/0.6973, allocations: 57.23 MB / 451.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.6973, allocations: 0 / 451.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001206/0.6974, allocations: 40 kB / 451.1 MB, free: 5.844 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.009604/0.7071, allocations: 2.656 MB / 453.8 MB, free: 3.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.7071, allocations: 8.031 kB / 453.8 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01537/0.7225, allocations: 1.965 MB / 455.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/0.7353, allocations: 3.28 MB / 459 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.7355, allocations: 181.1 kB / 459.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/0.7367, allocations: 243 kB / 459.5 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.7536, allocations: 6.814 MB / 466.3 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001379/0.7538, allocations: 47.62 kB / 466.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000537/0.7544, allocations: 115.9 kB / 466.4 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001576/0.7559, allocations: 0.7111 MB / 467.1 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.776, allocations: 5.84 MB / 473 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06423/0.8403, allocations: 33.3 MB / 0.4944 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007515/0.8479, allocations: 2.281 MB / 0.4966 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.426e-05/0.848, allocations: 8.625 kB / 0.4967 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.8481, allocations: 42.5 kB / 0.4967 GB, free: 11.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 1.359e-05/0.8481, allocations: 4 kB / 0.4967 GB, free: 11.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=106): time 0.03598/0.8841, allocations: 8.919 MB / 0.5054 GB, free: 2.629 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.8842, allocations: 136.5 kB / 0.5055 GB, free: 2.465 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/0.8904, allocations: 2.827 MB / 0.5083 GB, free: 15.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002912/0.8907, allocations: 41.7 kB / 0.5083 GB, free: 15.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001968/0.8927, allocations: 2.054 MB / 0.5103 GB, free: 13.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006382/0.8934, allocations: 438.6 kB / 0.5108 GB, free: 13.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.8937, allocations: 84 kB / 0.5108 GB, free: 12.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003879/0.8941, allocations: 0.4964 MB / 0.5113 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003819/0.8979, allocations: 1.414 MB / 0.5127 GB, free: 11.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006188/0.9041, allocations: 4.205 MB / 0.5168 GB, free: 5.426 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006264/0.9104, allocations: 2.393 MB / 0.5191 GB, free: 3.031 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.701e-05/0.9105, allocations: 28 kB / 0.5192 GB, free: 3.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.2629/1.173, allocations: 5.986 MB / 0.525 GB, free: 108 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-05/1.174, allocations: 47.72 kB / 0.5251 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/1.174, allocations: 101.4 kB / 0.5252 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003646/1.177, allocations: 0.7976 MB / 0.5259 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005397/1.183, allocations: 1.002 MB / 0.5269 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008403/1.191, allocations: 4.205 MB / 0.531 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004495/1.196, allocations: 287 kB / 0.5313 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005206/1.196, allocations: 276.2 kB / 0.5316 GB, free: 106.6 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.002818/1.199, allocations: 1.358 MB / 0.5329 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005317/1.2, allocations: 235 kB / 0.5331 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006192/1.206, allocations: 1.855 MB / 0.5349 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.674e-05/1.206, allocations: 12.38 kB / 0.5349 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/1.206, allocations: 4.125 kB / 0.5349 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/1.206, allocations: 6.156 kB / 0.5349 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/1.219, allocations: 4.796 MB / 0.5396 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.219, allocations: 0 / 0.5396 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/1.22, allocations: 140.4 kB / 0.5398 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003243/1.223, allocations: 0.6458 MB / 0.5404 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/1.224, allocations: 19.69 kB / 0.5404 GB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006949/1.231, allocations: 3.724 MB / 0.5441 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.231, allocations: 3.969 kB / 0.5441 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008471/1.239, allocations: 3.677 MB / 0.5476 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.24, allocations: 441 kB / 0.5481 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00043/1.241, allocations: 24.53 kB / 0.5481 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.242, allocations: 67.67 kB / 0.5482 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/1.243, allocations: 61.12 kB / 0.5482 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/1.243, allocations: 24.69 kB / 0.5482 GB, free: 104 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003853/1.247, allocations: 1.769 MB / 0.55 GB, free: 103.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.247, allocations: 0 / 0.55 GB, free: 103.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004481/1.251, allocations: 0.6483 MB / 0.5506 GB, free: 103.8 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.0004522/1.252, allocations: 155.6 kB / 0.5507 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007423/1.259, allocations: 3.396 MB / 0.5541 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/1.259, allocations: 0 / 0.5541 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/1.261, allocations: 0.9355 MB / 0.555 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/1.263, allocations: 238.3 kB / 0.5552 GB, free: 102.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/1.275, allocations: 6.687 MB / 0.5617 GB, free: 99.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/1.278, allocations: 2.239 MB / 0.5639 GB, free: 98.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008716/1.279, allocations: 197.1 kB / 0.5641 GB, free: 98.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/1.279, allocations: 0 / 0.5641 GB, free: 98.33 MB / 410.7 MB Notification: Performance of Templates: time 0.07791/1.356, allocations: 45.26 MB / 0.6083 GB, free: 69.6 MB / 410.7 MB