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.RollingWheel.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.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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000504/0.0005043, allocations: 8 kB / 233.8 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1191, allocations: 38.77 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3829/0.502, allocations: 78.59 MB / 351.2 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.5024, allocations: 92.5 kB / 351.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2684/0.7709, allocations: 61.64 MB / 412.9 MB, free: 3.426 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7709, allocations: 0 / 412.9 MB, free: 3.426 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001711/0.7711, allocations: 56 kB / 412.9 MB, free: 3.371 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01446/0.7856, allocations: 3.17 MB / 416.1 MB, free: 140 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.7856, allocations: 8.031 kB / 416.1 MB, free: 132 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01592/0.8016, allocations: 1.993 MB / 418.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01429/0.8159, allocations: 3.553 MB / 421.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000305/0.8163, allocations: 217.4 kB / 421.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.8181, allocations: 283.8 kB / 422.1 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/0.8413, allocations: 7.969 MB / 430.1 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001805/0.8415, allocations: 55.41 kB / 430.2 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000822/0.8424, allocations: 147.9 kB / 430.3 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001795/0.8442, allocations: 0.7768 MB / 431.1 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2606/1.105, allocations: 6.537 MB / 437.6 MB, free: 79.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05545/1.16, allocations: 41.39 MB / 479 MB, free: 51.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/1.171, allocations: 2.94 MB / 482 MB, free: 50.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000953/1.172, allocations: 0.6403 MB / 482.6 MB, free: 49.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/1.172, allocations: 46.62 kB / 482.6 MB, free: 49.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=120): time 4.569e-06/1.172, allocations: 0 / 482.6 MB, free: 49.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=154): time 0.1394/1.312, allocations: 23.14 MB / 0.4939 GB, free: 43.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.223e-05/1.312, allocations: 146.7 kB / 0.4941 GB, free: 43.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00703/1.319, allocations: 3.248 MB / 0.4972 GB, free: 42.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005374/1.319, allocations: 48.14 kB / 0.4973 GB, free: 42.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002044/1.322, allocations: 2.291 MB / 0.4995 GB, free: 40.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/1.323, allocations: 0.6067 MB / 0.5001 GB, free: 40.01 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007327/1.323, allocations: 108 kB / 0.5002 GB, free: 39.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000326/1.324, allocations: 0.5303 MB / 0.5007 GB, free: 39.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005565/1.329, allocations: 2.391 MB / 0.5031 GB, free: 37.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007729/1.337, allocations: 5.577 MB / 0.5085 GB, free: 30.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007838/1.345, allocations: 3.573 MB / 0.512 GB, free: 27.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/1.345, allocations: 32 kB / 0.512 GB, free: 27.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=676) (initialization): time 0.04372/1.389, allocations: 11.4 MB / 0.5232 GB, free: 16.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.786e-05/1.389, allocations: 52 kB / 0.5232 GB, free: 16.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/1.389, allocations: 112 kB / 0.5233 GB, free: 16.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0259/1.415, allocations: 4.168 MB / 0.5274 GB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006826/1.422, allocations: 1.158 MB / 0.5285 GB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03802/1.46, allocations: 14.26 MB / 0.5425 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006851/1.467, allocations: 347.4 kB / 0.5428 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/1.468, allocations: 327.3 kB / 0.5431 GB, free: 12.22 MB / 362.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.005129/1.474, allocations: 1.602 MB / 0.5447 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.475, allocations: 276.3 kB / 0.5449 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03543/1.51, allocations: 6.965 MB / 0.5517 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-05/1.51, allocations: 16 kB / 0.5517 GB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.929e-05/1.51, allocations: 8 kB / 0.5517 GB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.923e-05/1.51, allocations: 11.97 kB / 0.5518 GB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3083/1.819, allocations: 14.66 MB / 0.5661 GB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.839e-05/1.819, allocations: 1.531 kB / 0.5661 GB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/1.821, allocations: 227 kB / 0.5663 GB, free: 86.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02817/1.849, allocations: 4.767 MB / 0.571 GB, free: 86.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005303/1.85, allocations: 50.02 kB / 0.571 GB, free: 86.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03662/1.886, allocations: 14.37 MB / 0.585 GB, free: 84.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.886, allocations: 7.859 kB / 0.585 GB, free: 84.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04111/1.927, allocations: 11.07 MB / 0.5959 GB, free: 80.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/1.929, allocations: 348 kB / 0.5962 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009652/1.93, allocations: 34.91 kB / 0.5962 GB, free: 80.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003429/1.933, allocations: 197.8 kB / 0.5964 GB, free: 80.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006255/1.934, allocations: 114.4 kB / 0.5965 GB, free: 80.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/1.934, allocations: 47.98 kB / 0.5966 GB, free: 80.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004572/1.939, allocations: 2.032 MB / 0.5985 GB, free: 79.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.939, allocations: 0 / 0.5985 GB, free: 79.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006426/1.945, allocations: 0.9084 MB / 0.5994 GB, free: 79.86 MB / 362.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.0007645/1.946, allocations: 176.6 kB / 0.5996 GB, free: 79.75 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2674:5-2678: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.1/Mechanics/MultiBody/Parts.mo:2674:5-2678: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.01879/1.965, allocations: 6.867 MB / 0.6063 GB, free: 77.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/1.965, allocations: 3.438 kB / 0.6063 GB, free: 77.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01058/1.975, allocations: 3.221 MB / 0.6095 GB, free: 75.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002767/1.978, allocations: 320.2 kB / 0.6098 GB, free: 75.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/1.998, allocations: 9.421 MB / 0.619 GB, free: 68.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005001/2.003, allocations: 2.559 MB / 0.6215 GB, free: 66.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/2.004, allocations: 234 kB / 0.6217 GB, free: 66.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.754e-06/2.004, allocations: 0 / 0.6217 GB, free: 66.14 MB / 362.7 MB Notification: Performance of Templates: time 0.4493/2.454, allocations: 134.6 MB / 0.7532 GB, free: 55.61 MB / 362.7 MB