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.RollingWheelSetDriving.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.RollingWheelSetDriving,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheelSet.der_theta1|wheelSet.der_theta2|wheelSet.phi|wheelSet.theta1|wheelSet.theta2|wheelSet.x|wheelSet.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving") Notification: Performance of loadModel(Modelica): time 1.557/1.557, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003493, allocations: 11.98 kB / 233.2 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06904/0.06941, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving): time 0.2613/0.3308, allocations: 65.36 MB / 337.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.03945/0.3703, allocations: 15.58 MB / 352.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01387/0.3842, allocations: 327.2 kB / 353.2 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01031/0.3946, allocations: 3.317 MB / 356.5 MB, free: 8.73 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0316/0.4262, allocations: 9.187 MB / 365.7 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005167/0.4314, allocations: 1.139 MB / 366.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007997/0.4395, allocations: 3.627 MB / 370.5 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0139/0.4534, allocations: 7.428 MB / 377.9 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003272/0.4567, allocations: 1.589 MB / 379.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004139/0.4609, allocations: 2.239 MB / 381.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001028/0.462, allocations: 232 kB / 381.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.4646, allocations: 0.9129 MB / 382.9 MB, free: 14.28 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003491/0.4681, allocations: 2.33 MB / 385.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001952/0.4701, allocations: 1.264 MB / 386.5 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.4833, allocations: 9.141 MB / 395.6 MB, free: 1.508 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.523e-06/0.4834, allocations: 3.938 kB / 395.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.556e-06/0.4834, allocations: 0 / 395.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002063/0.4836, allocations: 0 / 395.6 MB, free: 1.504 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2062 * Number of variables: 2062 Notification: Performance of Generate backend data structure: time 0.01753/0.5012, allocations: 6.409 MB / 402 MB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.5012, allocations: 8.031 kB / 402 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01303/0.5143, allocations: 2.628 MB / 404.6 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/0.526, allocations: 4.821 MB / 409.5 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000427/0.5265, allocations: 365.5 kB / 409.8 MB, free: 3.129 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001718/0.5282, allocations: 499.6 kB / 410.3 MB, free: 2.641 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03703/0.5653, allocations: 15.02 MB / 425.3 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002694/0.5656, allocations: 71.36 kB / 425.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00112/0.5667, allocations: 223.8 kB / 425.6 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004754/0.5715, allocations: 2.407 MB / 428 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0361/0.6077, allocations: 12.95 MB / 441 MB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2768/0.8845, allocations: 59.55 MB / 0.4888 GB, free: 80.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0223/0.9069, allocations: 7.038 MB / 0.4957 GB, free: 74.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/0.9082, allocations: 1.275 MB / 0.4969 GB, free: 72.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.9083, allocations: 66.47 kB / 0.497 GB, free: 72.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.614e-06/0.9083, allocations: 0 / 0.497 GB, free: 72.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=378): time 0.1977/1.106, allocations: 47.99 MB / 0.5438 GB, free: 24.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/1.106, allocations: 167 kB / 0.544 GB, free: 24.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009461/1.116, allocations: 5.502 MB / 0.5494 GB, free: 19.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008281/1.116, allocations: 83.11 kB / 0.5495 GB, free: 18.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002522/1.119, allocations: 3.785 MB / 0.5531 GB, free: 15.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001842/1.121, allocations: 1.37 MB / 0.5545 GB, free: 13.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000811/1.122, allocations: 160 kB / 0.5546 GB, free: 13.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004943/1.122, allocations: 0.6498 MB / 0.5553 GB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008238/1.13, allocations: 4.268 MB / 0.5594 GB, free: 8.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.208/1.339, allocations: 8.5 MB / 0.5677 GB, free: 107.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/1.351, allocations: 5.97 MB / 0.5736 GB, free: 106.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001787/1.351, allocations: 42.91 kB / 0.5736 GB, free: 106.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.04431/1.395, allocations: 17.07 MB / 0.5903 GB, free: 100.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/1.395, allocations: 69.91 kB / 0.5903 GB, free: 100.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001735/1.396, allocations: 146.1 kB / 0.5905 GB, free: 100.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01956/1.415, allocations: 5.375 MB / 0.5957 GB, free: 99.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007265/1.422, allocations: 1.748 MB / 0.5974 GB, free: 99.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05845/1.481, allocations: 33.67 MB / 0.6303 GB, free: 68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0079/1.489, allocations: 0.5517 MB / 0.6309 GB, free: 67.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/1.49, allocations: 469.1 kB / 0.6313 GB, free: 67.01 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 668 * Number of states: 0 () * Number of discrete variables: 51 (shape.color[3],shape.color[2],shape.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],wheelSet.wheelSetJoint.revolute2.cylinderColor[3],wheelSet.wheelSetJoint.revolute2.cylinderColor[2],wheelSet.wheelSetJoint.revolute2.cylinderColor[1],wheelSet.wheelSetJoint.revolute1.cylinderColor[3],wheelSet.wheelSetJoint.revolute1.cylinderColor[2],wheelSet.wheelSetJoint.revolute1.cylinderColor[1],wheelSet.wheelSetJoint.rod2.color[3],wheelSet.wheelSetJoint.rod2.color[2],wheelSet.wheelSetJoint.rod2.color[1],wheelSet.wheelSetJoint.revolute.cylinderColor[3],wheelSet.wheelSetJoint.revolute.cylinderColor[2],wheelSet.wheelSetJoint.revolute.cylinderColor[1],wheelSet.wheelSetJoint.prismatic2.boxColor[3],wheelSet.wheelSetJoint.prismatic2.boxColor[2],wheelSet.wheelSetJoint.prismatic2.boxColor[1],wheelSet.wheelSetJoint.prismatic1.boxColor[3],wheelSet.wheelSetJoint.prismatic1.boxColor[2],wheelSet.wheelSetJoint.prismatic1.boxColor[1],wheelSet.wheelSetJoint.rod1.color[3],wheelSet.wheelSetJoint.rod1.color[2],wheelSet.wheelSetJoint.rod1.color[1],wheelSet.wheelSetJoint.fixed.color[3],wheelSet.wheelSetJoint.fixed.color[2],wheelSet.wheelSetJoint.fixed.color[1],wheelSet.body1.sphereColor[3],wheelSet.body1.sphereColor[2],wheelSet.body1.sphereColor[1],wheelSet.body2.sphereColor[3],wheelSet.body2.sphereColor[2],wheelSet.body2.sphereColor[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],ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (896): * Single equations (assignments): 888 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,57.8%) 101,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006276/1.497, allocations: 2.991 MB / 0.6342 GB, free: 64.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/1.498, allocations: 0.4899 MB / 0.6347 GB, free: 63.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02816/1.526, allocations: 11.97 MB / 0.6464 GB, free: 51.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/1.526, allocations: 36 kB / 0.6464 GB, free: 51.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.771e-05/1.526, allocations: 24.88 kB / 0.6465 GB, free: 51.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-05/1.526, allocations: 23.92 kB / 0.6465 GB, free: 51.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05395/1.58, allocations: 24 MB / 0.6699 GB, free: 27.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.642e-05/1.58, allocations: 4 kB / 0.6699 GB, free: 27.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003083/1.583, allocations: 0.5226 MB / 0.6704 GB, free: 27.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01709/1.601, allocations: 4.982 MB / 0.6753 GB, free: 22.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008551/1.601, allocations: 83.92 kB / 0.6754 GB, free: 22.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2607/1.862, allocations: 30.63 MB / 0.7053 GB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.333e-06/1.862, allocations: 4.828 kB / 0.7053 GB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0408/1.903, allocations: 17.66 MB / 0.7225 GB, free: 109.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003727/1.907, allocations: 1.311 MB / 0.7238 GB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00146/1.908, allocations: 62.97 kB / 0.7239 GB, free: 108.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00441/1.913, allocations: 309.5 kB / 0.7242 GB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001519/1.914, allocations: 277.7 kB / 0.7244 GB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006409/1.915, allocations: 94.53 kB / 0.7245 GB, free: 108.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007385/1.922, allocations: 3.583 MB / 0.728 GB, free: 107.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.219e-06/1.923, allocations: 0 / 0.728 GB, free: 107.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009834/1.932, allocations: 1.848 MB / 0.7298 GB, free: 107.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 7 (wheelSet.x,wheelSet.y,wheelSet.phi,wheelSet.theta1,wheelSet.theta2,wheelSet.der_theta1,wheelSet.der_theta2) * 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 (231): * Single equations (assignments): 223 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,71.9%) 98,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001256/1.934, allocations: 222.6 kB / 0.73 GB, free: 107 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2805:5-2808:55:writable] Warning: Variable $DER.wheelSet.der_theta1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2809:5-2812:55:writable] Warning: Variable $DER.wheelSet.der_theta2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2805:5-2808:55:writable] Warning: Variable $DER.wheelSet.der_theta1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Parts.mo:2809:5-2812:55:writable] Warning: Variable $DER.wheelSet.der_theta2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.02283/1.957, allocations: 11.39 MB / 0.7412 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.67e-06/1.957, allocations: 1.422 kB / 0.7412 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01221/1.969, allocations: 5.586 MB / 0.7466 GB, free: 96.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004381/1.973, allocations: 0.6204 MB / 0.7472 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04208/2.015, allocations: 19.77 MB / 0.7665 GB, free: 77.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008781/2.024, allocations: 4.7 MB / 0.7711 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001984/2.026, allocations: 399.3 kB / 0.7715 GB, free: 72.37 MB / 378.7 MB Notification: Performance of SimCode: time 1.965e-06/2.026, allocations: 0 / 0.7715 GB, free: 72.37 MB / 378.7 MB Notification: Performance of Templates: time 0.7225/2.749, allocations: 219.8 MB / 0.9862 GB, free: 121.1 MB / 394.7 MB