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.RollingWheelSetPulling.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.RollingWheelSetPulling,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.RollingWheelSetPulling") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003657, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08047/0.08086, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling): time 0.3224/0.4033, allocations: 74.81 MB / 383.2 MB, free: 7.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04008/0.4435, allocations: 17.85 MB / 401 MB, free: 6.301 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01757/0.4611, allocations: 375.1 kB / 401.4 MB, free: 6.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01162/0.4727, allocations: 3.894 MB / 405.3 MB, free: 4.164 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03456/0.5074, allocations: 10.54 MB / 415.8 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005875/0.5133, allocations: 1.237 MB / 417.1 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007574/0.5209, allocations: 3.777 MB / 420.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01478/0.5357, allocations: 8.171 MB / 429 MB, free: 11.86 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.5397, allocations: 1.657 MB / 430.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004675/0.5444, allocations: 2.316 MB / 433 MB, free: 8.629 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001405/0.5458, allocations: 248 kB / 433.2 MB, free: 8.387 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003462/0.5493, allocations: 0.9484 MB / 434.2 MB, free: 7.586 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004002/0.5534, allocations: 2.448 MB / 436.6 MB, free: 5.367 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002617/0.556, allocations: 1.318 MB / 437.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.5706, allocations: 9.603 MB / 447.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.406e-06/0.5706, allocations: 0 / 447.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.031e-06/0.5706, allocations: 3.938 kB / 447.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002413/0.5709, allocations: 0 / 447.5 MB, free: 10.67 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: 2155 * Number of variables: 2155 Notification: Performance of Generate backend data structure: time 0.01865/0.5896, allocations: 6.731 MB / 454.3 MB, free: 3.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.5896, allocations: 12.03 kB / 454.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01325/0.6029, allocations: 2.662 MB / 456.9 MB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/0.6153, allocations: 4.967 MB / 461.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005152/0.6159, allocations: 386.6 kB / 462.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001995/0.6179, allocations: 0.5134 MB / 462.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03975/0.6577, allocations: 15.63 MB / 478.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002997/0.658, allocations: 67.38 kB / 478.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001381/0.6594, allocations: 243.5 kB / 478.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004882/0.6643, allocations: 2.453 MB / 481.2 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03674/0.7011, allocations: 13.36 MB / 494.5 MB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3397/1.041, allocations: 61.88 MB / 0.5434 GB, free: 120.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02496/1.066, allocations: 7.325 MB / 0.5505 GB, free: 120.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001503/1.067, allocations: 1.293 MB / 0.5518 GB, free: 119.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02246/1.09, allocations: 5.39 MB / 0.5571 GB, free: 117.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=300): time 9.521e-06/1.09, allocations: 0 / 0.5571 GB, free: 117.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=395): time 0.2105/1.3, allocations: 50.26 MB / 0.6061 GB, free: 76.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/1.301, allocations: 174.7 kB / 0.6063 GB, free: 76.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01007/1.311, allocations: 5.823 MB / 0.612 GB, free: 70.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009171/1.312, allocations: 85.7 kB / 0.6121 GB, free: 70.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003636/1.315, allocations: 4.061 MB / 0.616 GB, free: 66.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/1.317, allocations: 1.452 MB / 0.6175 GB, free: 64.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/1.319, allocations: 172.9 kB / 0.6176 GB, free: 64.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005799/1.319, allocations: 0.6705 MB / 0.6183 GB, free: 63.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008547/1.328, allocations: 4.428 MB / 0.6226 GB, free: 59.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/1.339, allocations: 8.911 MB / 0.6313 GB, free: 48.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.35, allocations: 6.255 MB / 0.6374 GB, free: 42.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/1.35, allocations: 44 kB / 0.6375 GB, free: 42.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=1118) (initialization): time 0.04129/1.391, allocations: 17.68 MB / 0.6547 GB, free: 24.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000161/1.392, allocations: 105.7 kB / 0.6548 GB, free: 24.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.392, allocations: 156 kB / 0.655 GB, free: 24.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01802/1.41, allocations: 5.417 MB / 0.6603 GB, free: 18.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007561/1.417, allocations: 1.84 MB / 0.6621 GB, free: 16.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3572/1.775, allocations: 33.85 MB / 0.6951 GB, free: 148.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03478/1.809, allocations: 0.5643 MB / 0.6957 GB, free: 148.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01502/1.825, allocations: 493.4 kB / 0.6961 GB, free: 148.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 59 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,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],force.color[3],force.color[2],force.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (952): * Single equations (assignments): 943 * Array equations: 3 * Algorithm blocks: 1 * 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%) 104,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02963/1.854, allocations: 3.145 MB / 0.6992 GB, free: 148.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002542/1.857, allocations: 0.5163 MB / 0.6997 GB, free: 148.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03437/1.891, allocations: 12.23 MB / 0.7117 GB, free: 145.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.858e-05/1.891, allocations: 38.38 kB / 0.7117 GB, free: 145.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.202e-05/1.891, allocations: 26.94 kB / 0.7117 GB, free: 145.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-05/1.891, allocations: 18.38 kB / 0.7117 GB, free: 145.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05812/1.95, allocations: 24.63 MB / 0.7358 GB, free: 135.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.276e-05/1.95, allocations: 7.875 kB / 0.7358 GB, free: 135.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003552/1.953, allocations: 0.542 MB / 0.7363 GB, free: 135.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01801/1.971, allocations: 5.004 MB / 0.7412 GB, free: 132.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009029/1.972, allocations: 79.34 kB / 0.7413 GB, free: 132.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05717/2.029, allocations: 32.49 MB / 0.773 GB, free: 99.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.972e-06/2.03, allocations: 4 kB / 0.773 GB, free: 99.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03788/2.067, allocations: 17.89 MB / 0.7905 GB, free: 82.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003869/2.071, allocations: 1.358 MB / 0.7918 GB, free: 80.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001561/2.073, allocations: 68.7 kB / 0.7919 GB, free: 80.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004409/2.077, allocations: 315.5 kB / 0.7922 GB, free: 80.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001552/2.079, allocations: 274.7 kB / 0.7925 GB, free: 80.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000698/2.08, allocations: 108.5 kB / 0.7926 GB, free: 80.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007221/2.087, allocations: 3.776 MB / 0.7962 GB, free: 76.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.243e-06/2.087, allocations: 0 / 0.7962 GB, free: 76.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01024/2.097, allocations: 1.929 MB / 0.7981 GB, free: 74.41 MB / 442.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: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 101,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002513/2.1, allocations: 0.5156 MB / 0.7986 GB, free: 73.99 MB / 442.7 MB [/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. [/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. Notification: Performance of simCode: created initialization part: time 0.02307/2.123, allocations: 11.84 MB / 0.8102 GB, free: 62.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.87e-06/2.123, allocations: 2.969 kB / 0.8102 GB, free: 62.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01229/2.135, allocations: 5.704 MB / 0.8158 GB, free: 56.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004331/2.14, allocations: 0.6585 MB / 0.8164 GB, free: 55.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04313/2.183, allocations: 20.57 MB / 0.8365 GB, free: 35.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008869/2.192, allocations: 4.89 MB / 0.8413 GB, free: 30.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002116/2.194, allocations: 427.3 kB / 0.8417 GB, free: 29.78 MB / 442.7 MB Notification: Performance of SimCode: time 1.716e-06/2.194, allocations: 0 / 0.8417 GB, free: 29.78 MB / 442.7 MB Notification: Performance of Templates: time 0.753/2.947, allocations: 229.7 MB / 1.066 GB, free: 106.5 MB / 442.7 MB