Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving") Notification: Performance of loadModel(Modelica): time 1.876/1.876, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003691, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08348/0.08388, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving): time 0.3146/0.3985, allocations: 65.37 MB / 373.7 MB, free: 7.18 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0355/0.4341, allocations: 15.6 MB / 389.3 MB, free: 6.902 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01589/0.45, allocations: 328.9 kB / 389.7 MB, free: 6.902 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01045/0.4605, allocations: 3.323 MB / 393 MB, free: 6.156 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03026/0.4908, allocations: 9.192 MB / 402.2 MB, free: 3.391 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004947/0.4958, allocations: 1.122 MB / 403.3 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006934/0.5028, allocations: 3.641 MB / 406.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01213/0.515, allocations: 7.43 MB / 414.4 MB, free: 164 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005125/0.5201, allocations: 1.681 MB / 416 MB, free: 0 / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005008/0.5252, allocations: 2.29 MB / 418.3 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001147/0.5264, allocations: 233.6 kB / 418.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003208/0.5296, allocations: 0.9142 MB / 419.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003782/0.5334, allocations: 2.334 MB / 421.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001827/0.5353, allocations: 1.261 MB / 423.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.5483, allocations: 9.145 MB / 432.2 MB, free: 4.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.229e-06/0.5483, allocations: 4 kB / 432.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5483, allocations: 0 / 432.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002079/0.5485, allocations: 0 / 432.2 MB, free: 4.363 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: 2063 * Number of variables: 2063 Notification: Performance of Generate backend data structure: time 0.01746/0.566, allocations: 6.405 MB / 438.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.5661, allocations: 12.03 kB / 438.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.5789, allocations: 2.632 MB / 441.3 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.5901, allocations: 4.812 MB / 446.1 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003944/0.5905, allocations: 371.5 kB / 446.4 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001876/0.5924, allocations: 491.8 kB / 446.9 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03719/0.6296, allocations: 15.03 MB / 462 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002877/0.63, allocations: 67.38 kB / 462 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001511/0.6315, allocations: 231.6 kB / 462.3 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004779/0.6363, allocations: 2.41 MB / 464.7 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03551/0.6718, allocations: 12.95 MB / 477.6 MB, free: 9.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3675/1.039, allocations: 59.54 MB / 0.5246 GB, free: 142.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02381/1.063, allocations: 7.035 MB / 0.5314 GB, free: 142.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/1.065, allocations: 1.284 MB / 0.5327 GB, free: 141 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.37e-05/1.065, allocations: 66.34 kB / 0.5327 GB, free: 140.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 8.469e-06/1.065, allocations: 1.406 kB / 0.5327 GB, free: 140.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=378): time 0.1974/1.262, allocations: 46.51 MB / 0.5782 GB, free: 114.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/1.262, allocations: 174.1 kB / 0.5783 GB, free: 114.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009513/1.272, allocations: 5.494 MB / 0.5837 GB, free: 108.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008802/1.273, allocations: 81.7 kB / 0.5838 GB, free: 108.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002507/1.275, allocations: 3.779 MB / 0.5875 GB, free: 105 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001704/1.277, allocations: 1.374 MB / 0.5888 GB, free: 103.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007233/1.278, allocations: 164 kB / 0.589 GB, free: 103.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004283/1.278, allocations: 0.6498 MB / 0.5896 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007842/1.286, allocations: 4.244 MB / 0.5937 GB, free: 98.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.296, allocations: 8.475 MB / 0.602 GB, free: 88.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/1.307, allocations: 5.946 MB / 0.6078 GB, free: 82.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/1.307, allocations: 44 kB / 0.6079 GB, free: 82.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=1055) (initialization): time 0.03947/1.346, allocations: 17.01 MB / 0.6245 GB, free: 65.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/1.346, allocations: 68.09 kB / 0.6245 GB, free: 64.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/1.347, allocations: 151.9 kB / 0.6247 GB, free: 64.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01778/1.364, allocations: 5.362 MB / 0.6299 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007338/1.372, allocations: 1.751 MB / 0.6316 GB, free: 57.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05833/1.43, allocations: 33.79 MB / 0.6646 GB, free: 23.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007975/1.438, allocations: 0.5467 MB / 0.6652 GB, free: 23.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001605/1.44, allocations: 459.9 kB / 0.6656 GB, free: 22.62 MB / 426.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,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006291/1.446, allocations: 2.99 MB / 0.6685 GB, free: 19.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.447, allocations: 0.4898 MB / 0.669 GB, free: 19.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2597/1.707, allocations: 11.91 MB / 0.6806 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.215e-05/1.707, allocations: 40.03 kB / 0.6807 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.88e-05/1.707, allocations: 29.11 kB / 0.6807 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.325e-05/1.707, allocations: 19.67 kB / 0.6807 GB, free: 136.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05762/1.765, allocations: 23.9 MB / 0.7041 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.605e-05/1.765, allocations: 7.859 kB / 0.7041 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003266/1.768, allocations: 0.5227 MB / 0.7046 GB, free: 128.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01884/1.787, allocations: 4.985 MB / 0.7095 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009075/1.788, allocations: 71.08 kB / 0.7095 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05273/1.841, allocations: 30.63 MB / 0.7394 GB, free: 98.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/1.841, allocations: 7.938 kB / 0.7394 GB, free: 98.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03685/1.878, allocations: 17.56 MB / 0.7566 GB, free: 80.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003839/1.882, allocations: 1.298 MB / 0.7579 GB, free: 79.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001628/1.883, allocations: 66.08 kB / 0.7579 GB, free: 79.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004622/1.888, allocations: 319.5 kB / 0.7582 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001571/1.89, allocations: 270 kB / 0.7585 GB, free: 79.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007669/1.891, allocations: 91.98 kB / 0.7586 GB, free: 78.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007067/1.898, allocations: 3.582 MB / 0.7621 GB, free: 75.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.366e-06/1.898, allocations: 2.969 kB / 0.7621 GB, free: 75.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009357/1.907, allocations: 1.846 MB / 0.7639 GB, free: 73.58 MB / 426.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.001208/1.908, allocations: 228.9 kB / 0.7641 GB, free: 73.36 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Parts.mo:2778:5-2781: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.2/Mechanics/MultiBody/Parts.mo:2782:5-2785: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.2/Mechanics/MultiBody/Parts.mo:2778:5-2781: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.2/Mechanics/MultiBody/Parts.mo:2782:5-2785: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.02192/1.93, allocations: 11.34 MB / 0.7752 GB, free: 62.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.364e-06/1.93, allocations: 4 kB / 0.7752 GB, free: 62.03 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0112/1.941, allocations: 5.464 MB / 0.7805 GB, free: 56.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004094/1.946, allocations: 0.6144 MB / 0.7811 GB, free: 55.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04096/1.987, allocations: 19.7 MB / 0.8003 GB, free: 36.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008541/1.995, allocations: 4.691 MB / 0.8049 GB, free: 31.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/1.997, allocations: 395.3 kB / 0.8053 GB, free: 31.08 MB / 426.7 MB Notification: Performance of SimCode: time 1.822e-06/1.997, allocations: 4 kB / 0.8053 GB, free: 31.08 MB / 426.7 MB Notification: Performance of Templates: time 0.7459/2.743, allocations: 219.6 MB / 1.02 GB, free: 126.6 MB / 442.7 MB