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.RollingWheel.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.RollingWheel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheel1.angles.1.|wheel1.angles.2.|wheel1.angles.3.|wheel1.der_angles.1.|wheel1.der_angles.2.|wheel1.der_angles.3.|wheel1.x|wheel1.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") Notification: Performance of loadModel(Modelica): time 1.776/1.776, allocations: 194.8 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003313, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08613/0.08648, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.4802, allocations: 84.24 MB / 393.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.4806, allocations: 91.06 kB / 393.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2437/0.7242, allocations: 61.63 MB / 454.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.7243, allocations: 0 / 454.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001655/0.7245, allocations: 59.94 kB / 455 MB, free: 14.85 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01198/0.7365, allocations: 3.172 MB / 458.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.7365, allocations: 12.03 kB / 458.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01506/0.7516, allocations: 1.995 MB / 460.2 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.7654, allocations: 3.561 MB / 463.7 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.7657, allocations: 212 kB / 463.9 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001383/0.7671, allocations: 274.7 kB / 464.2 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02073/0.7878, allocations: 7.957 MB / 472.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/0.7881, allocations: 59.39 kB / 472.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007968/0.7889, allocations: 146.7 kB / 472.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001802/0.7907, allocations: 0.776 MB / 473.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01919/0.8099, allocations: 6.548 MB / 479.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06188/0.8718, allocations: 41.4 MB / 0.5089 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.8832, allocations: 2.939 MB / 0.5117 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/0.8843, allocations: 0.6276 MB / 0.5124 GB, free: 7.246 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.8844, allocations: 47.06 kB / 0.5124 GB, free: 7.191 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 5.01e-06/0.8844, allocations: 0 / 0.5124 GB, free: 7.191 MB / 410.7 MB Notification: Performance of matching and sorting (n=154): time 0.394/1.278, allocations: 23.12 MB / 0.535 GB, free: 109.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.356e-05/1.278, allocations: 141.1 kB / 0.5351 GB, free: 109.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006119/1.285, allocations: 3.265 MB / 0.5383 GB, free: 109.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005225/1.285, allocations: 47.94 kB / 0.5384 GB, free: 109.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001666/1.287, allocations: 2.284 MB / 0.5406 GB, free: 108.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/1.288, allocations: 0.6127 MB / 0.5412 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005672/1.288, allocations: 97.38 kB / 0.5413 GB, free: 107.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003096/1.289, allocations: 0.5306 MB / 0.5418 GB, free: 107.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005188/1.294, allocations: 2.405 MB / 0.5441 GB, free: 107.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00713/1.301, allocations: 5.571 MB / 0.5496 GB, free: 103.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007547/1.309, allocations: 3.574 MB / 0.5531 GB, free: 103.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.013e-05/1.309, allocations: 33.66 kB / 0.5531 GB, free: 103.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.04218/1.351, allocations: 11.41 MB / 0.5642 GB, free: 100.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-05/1.351, allocations: 52.25 kB / 0.5643 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/1.351, allocations: 114.2 kB / 0.5644 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02525/1.377, allocations: 4.155 MB / 0.5685 GB, free: 99.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006464/1.383, allocations: 1.164 MB / 0.5696 GB, free: 99.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03527/1.418, allocations: 14.27 MB / 0.5835 GB, free: 91.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006388/1.425, allocations: 356.7 kB / 0.5839 GB, free: 91.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009912/1.426, allocations: 324 kB / 0.5842 GB, free: 91.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * Number of states: 0 () * Number of discrete variables: 15 (ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[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],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (616): * Single equations (assignments): 606 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(3,88.9%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003762/1.43, allocations: 1.598 MB / 0.5857 GB, free: 89.74 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000842/1.431, allocations: 272.4 kB / 0.586 GB, free: 89.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03125/1.462, allocations: 6.966 MB / 0.5928 GB, free: 84.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.925e-05/1.462, allocations: 18.81 kB / 0.5928 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.56e-05/1.462, allocations: 8 kB / 0.5928 GB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/1.462, allocations: 11.59 kB / 0.5928 GB, free: 84.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05232/1.514, allocations: 14.66 MB / 0.6072 GB, free: 70.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.727e-05/1.514, allocations: 4 kB / 0.6072 GB, free: 70.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/1.516, allocations: 223.7 kB / 0.6074 GB, free: 70.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02675/1.543, allocations: 4.772 MB / 0.612 GB, free: 65.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005102/1.544, allocations: 47.95 kB / 0.6121 GB, free: 65.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03462/1.578, allocations: 14.38 MB / 0.6261 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.578, allocations: 0 / 0.6261 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03914/1.618, allocations: 11.07 MB / 0.6369 GB, free: 40.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009867/1.619, allocations: 345.3 kB / 0.6373 GB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009031/1.619, allocations: 40.72 kB / 0.6373 GB, free: 39.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003289/1.623, allocations: 195.7 kB / 0.6375 GB, free: 39.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005899/1.623, allocations: 117 kB / 0.6376 GB, free: 39.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.624, allocations: 48.59 kB / 0.6376 GB, free: 39.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004121/1.628, allocations: 2.032 MB / 0.6396 GB, free: 37.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.628, allocations: 0 / 0.6396 GB, free: 37.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006037/1.634, allocations: 0.9064 MB / 0.6405 GB, free: 36.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (104): * Single equations (assignments): 94 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(3,88.9%),(2,100.0%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006456/1.635, allocations: 170.9 kB / 0.6407 GB, free: 36.17 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:2651:5-2655:74:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:2651:5-2655:74:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0176/1.652, allocations: 6.876 MB / 0.6474 GB, free: 29.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.652, allocations: 0 / 0.6474 GB, free: 29.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009915/1.662, allocations: 3.229 MB / 0.6505 GB, free: 25.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/1.665, allocations: 307.3 kB / 0.6508 GB, free: 25.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/1.683, allocations: 9.424 MB / 0.66 GB, free: 16.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003568/1.687, allocations: 2.554 MB / 0.6625 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/1.688, allocations: 243.4 kB / 0.6628 GB, free: 13.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.302e-06/1.688, allocations: 0 / 0.6628 GB, free: 13.3 MB / 410.7 MB Notification: Performance of Templates: time 0.4513/2.139, allocations: 134.6 MB / 0.7942 GB, free: 11.14 MB / 410.7 MB