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.RollingWheelSetPulling.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.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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling") Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003622, allocations: 16 kB / 233.2 MB, free: 3.039 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07138/0.07177, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling): time 0.2832/0.3551, allocations: 74.76 MB / 346.7 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.04784/0.4029, allocations: 17.84 MB / 364.5 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01781/0.4208, allocations: 375.1 kB / 364.9 MB, free: 324 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01271/0.4335, allocations: 3.892 MB / 368.8 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03746/0.471, allocations: 10.52 MB / 379.3 MB, free: 1.863 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0064/0.4775, allocations: 1.271 MB / 380.6 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008603/0.4861, allocations: 3.738 MB / 384.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01612/0.5023, allocations: 8.17 MB / 392.5 MB, free: 4.602 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003787/0.5061, allocations: 1.647 MB / 394.1 MB, free: 2.949 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004571/0.5107, allocations: 2.313 MB / 396.5 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001385/0.5122, allocations: 244 kB / 396.7 MB, free: 400 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003257/0.5155, allocations: 0.952 MB / 397.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004013/0.5195, allocations: 2.443 MB / 400.1 MB, free: 12.99 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002536/0.5221, allocations: 1.318 MB / 401.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01429/0.5364, allocations: 9.593 MB / 411 MB, free: 2.043 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.5365, allocations: 0 / 411 MB, free: 2.043 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.828e-06/0.5365, allocations: 0 / 411 MB, free: 2.043 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002596/0.5368, allocations: 0 / 411 MB, free: 2.043 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: 2152 * Number of variables: 2152 Notification: Performance of Generate backend data structure: time 0.01874/0.5555, allocations: 6.678 MB / 417.7 MB, free: 11.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.5556, allocations: 8.031 kB / 417.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01334/0.5689, allocations: 2.667 MB / 420.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01276/0.5817, allocations: 4.948 MB / 425.3 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005417/0.5823, allocations: 398 kB / 425.7 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002135/0.5845, allocations: 0.5114 MB / 426.2 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04059/0.6251, allocations: 15.61 MB / 441.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003432/0.6255, allocations: 63.38 kB / 441.9 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001892/0.6274, allocations: 243.8 kB / 442.1 MB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2244/0.8518, allocations: 2.447 MB / 444.6 MB, free: 123.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03505/0.8869, allocations: 13.35 MB / 457.9 MB, free: 120 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08055/0.9675, allocations: 61.87 MB / 0.5076 GB, free: 62.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02283/0.9903, allocations: 7.282 MB / 0.5147 GB, free: 54.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001398/0.9918, allocations: 1.288 MB / 0.516 GB, free: 53.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02186/1.014, allocations: 5.368 MB / 0.5212 GB, free: 47.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=297): time 1.093e-05/1.014, allocations: 0 / 0.5212 GB, free: 47.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=388): time 0.2378/1.252, allocations: 47.37 MB / 0.5675 GB, free: 348 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/1.252, allocations: 167.1 kB / 0.5676 GB, free: 148 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2065/1.458, allocations: 5.796 MB / 0.5733 GB, free: 113 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008874/1.459, allocations: 88.3 kB / 0.5734 GB, free: 112.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004057/1.463, allocations: 4.062 MB / 0.5773 GB, free: 110.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002057/1.465, allocations: 1.424 MB / 0.5787 GB, free: 109.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/1.466, allocations: 171.7 kB / 0.5789 GB, free: 109.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006521/1.467, allocations: 0.6732 MB / 0.5795 GB, free: 108.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009187/1.476, allocations: 4.363 MB / 0.5838 GB, free: 107.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01085/1.487, allocations: 8.83 MB / 0.5924 GB, free: 99.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/1.498, allocations: 6.181 MB / 0.5985 GB, free: 97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/1.498, allocations: 48.41 kB / 0.5985 GB, free: 97 MB / 362.7 MB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.04112/1.539, allocations: 17.52 MB / 0.6156 GB, free: 88.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/1.539, allocations: 97.7 kB / 0.6157 GB, free: 88.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001797/1.54, allocations: 156 kB / 0.6159 GB, free: 88.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01758/1.557, allocations: 5.403 MB / 0.6211 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007405/1.565, allocations: 1.829 MB / 0.6229 GB, free: 81.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05901/1.624, allocations: 33.98 MB / 0.6561 GB, free: 47.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008387/1.632, allocations: 0.5548 MB / 0.6567 GB, free: 46.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001678/1.634, allocations: 487.9 kB / 0.6571 GB, free: 46.05 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 707 * Number of states: 0 () * Number of discrete variables: 57 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,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 (944): * Single equations (assignments): 935 * 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,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0069/1.641, allocations: 3.141 MB / 0.6602 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.642, allocations: 0.5129 MB / 0.6607 GB, free: 42.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03056/1.673, allocations: 12.07 MB / 0.6725 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.745e-05/1.673, allocations: 46.25 kB / 0.6725 GB, free: 30.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.008e-05/1.673, allocations: 27.94 kB / 0.6725 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-05/1.673, allocations: 15.94 kB / 0.6726 GB, free: 30.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05684/1.73, allocations: 24.39 MB / 0.6964 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.402e-05/1.73, allocations: 7.953 kB / 0.6964 GB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/1.733, allocations: 0.5307 MB / 0.6969 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2305/1.964, allocations: 5.009 MB / 0.7018 GB, free: 96.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009351/1.965, allocations: 75.91 kB / 0.7019 GB, free: 96.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06037/2.025, allocations: 32.47 MB / 0.7336 GB, free: 84.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.989e-06/2.025, allocations: 3.938 kB / 0.7336 GB, free: 84.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03686/2.062, allocations: 17.67 MB / 0.7508 GB, free: 75.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003928/2.066, allocations: 1.341 MB / 0.7521 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001672/2.068, allocations: 68.58 kB / 0.7522 GB, free: 74.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004426/2.072, allocations: 314.4 kB / 0.7525 GB, free: 74.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001541/2.074, allocations: 277.3 kB / 0.7528 GB, free: 74.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005389/2.074, allocations: 95.7 kB / 0.7529 GB, free: 74.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007315/2.081, allocations: 3.767 MB / 0.7565 GB, free: 71.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.277e-06/2.082, allocations: 0 / 0.7565 GB, free: 71.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01011/2.092, allocations: 1.914 MB / 0.7584 GB, free: 69.2 MB / 362.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: 2 ($whenCondition1,combiTimeTable.nextTimeEvent) * Number of discrete states: 1 (combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 229 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002147/2.094, allocations: 469.2 kB / 0.7589 GB, free: 68.86 MB / 362.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.02157/2.115, allocations: 11.65 MB / 0.7702 GB, free: 57.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.694e-06/2.115, allocations: 0 / 0.7702 GB, free: 57.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01146/2.127, allocations: 5.549 MB / 0.7757 GB, free: 51.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004885/2.132, allocations: 0.6564 MB / 0.7763 GB, free: 50.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07504/2.207, allocations: 20.41 MB / 0.7962 GB, free: 30.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01595/2.223, allocations: 4.885 MB / 0.801 GB, free: 25.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003707/2.227, allocations: 419.3 kB / 0.8014 GB, free: 25.21 MB / 362.7 MB Notification: Performance of SimCode: time 3.389e-06/2.227, allocations: 0 / 0.8014 GB, free: 25.21 MB / 362.7 MB Notification: Performance of Templates: time 0.7125/2.939, allocations: 228.5 MB / 1.024 GB, free: 97.53 MB / 394.7 MB