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.565/1.565, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003654, allocations: 12 kB / 233.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07127/0.07167, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.3781, allocations: 86.66 MB / 358.7 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.3784, allocations: 93.5 kB / 358.8 MB, free: 3.484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6111/0.9895, allocations: 117.4 MB / 476.2 MB, free: 69.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.9895, allocations: 0 / 476.2 MB, free: 69.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003452/0.9899, allocations: 121.3 kB / 476.3 MB, free: 69.84 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: 2062 * Number of variables: 2062 Notification: Performance of Generate backend data structure: time 0.02164/1.012, allocations: 6.49 MB / 482.8 MB, free: 67.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/1.012, allocations: 15.34 kB / 482.8 MB, free: 67.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02584/1.037, allocations: 2.774 MB / 485.6 MB, free: 66.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03722/1.075, allocations: 7.664 MB / 493.2 MB, free: 64.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008237/1.076, allocations: 454.8 kB / 493.7 MB, free: 64.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004401/1.08, allocations: 0.5991 MB / 494.3 MB, free: 63.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05039/1.131, allocations: 15.69 MB / 0.498 GB, free: 50.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003862/1.131, allocations: 87.23 kB / 0.4981 GB, free: 50.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002366/1.133, allocations: 285.8 kB / 0.4984 GB, free: 49.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002572/1.136, allocations: 1.48 MB / 0.4998 GB, free: 48.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0325/1.168, allocations: 13.47 MB / 0.513 GB, free: 34.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.384/1.552, allocations: 70.26 MB / 0.5816 GB, free: 36.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02572/1.578, allocations: 7.315 MB / 0.5887 GB, free: 35.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001623/1.58, allocations: 1.284 MB / 0.59 GB, free: 34.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.516e-05/1.58, allocations: 70.34 kB / 0.5901 GB, free: 34.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 8.27e-06/1.58, allocations: 0 / 0.5901 GB, free: 34.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=377): time 0.261/1.841, allocations: 50.5 MB / 0.6394 GB, free: 28.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/1.841, allocations: 166.5 kB / 0.6395 GB, free: 28.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009887/1.851, allocations: 4.612 MB / 0.644 GB, free: 24.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009804/1.852, allocations: 81.7 kB / 0.6441 GB, free: 24.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00272/1.855, allocations: 3.802 MB / 0.6478 GB, free: 20.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002055/1.857, allocations: 1.375 MB / 0.6492 GB, free: 19.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/1.858, allocations: 162.7 kB / 0.6493 GB, free: 19.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005619/1.859, allocations: 0.6551 MB / 0.65 GB, free: 18.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008771/1.868, allocations: 4.511 MB / 0.6544 GB, free: 15.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01119/1.879, allocations: 8.755 MB / 0.6629 GB, free: 5.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/1.891, allocations: 6.214 MB / 0.669 GB, free: 14.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/1.891, allocations: 40 kB / 0.669 GB, free: 14.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=1058) (initialization): time 0.05567/1.947, allocations: 18.86 MB / 0.6874 GB, free: 12.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/1.947, allocations: 71.95 kB / 0.6875 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002208/1.947, allocations: 148 kB / 0.6876 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02663/1.974, allocations: 6.642 MB / 0.6941 GB, free: 5.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008059/1.982, allocations: 1.758 MB / 0.6958 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4/2.382, allocations: 37.23 MB / 0.7322 GB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008649/2.391, allocations: 0.5686 MB / 0.7328 GB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001985/2.393, allocations: 470 kB / 0.7332 GB, free: 110.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * 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 (899): * Single equations (assignments): 891 * 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,73.4%) 101,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007808/2.4, allocations: 2.999 MB / 0.7361 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001602/2.402, allocations: 499.3 kB / 0.7366 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03822/2.44, allocations: 13.77 MB / 0.7501 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-05/2.44, allocations: 46.36 kB / 0.7501 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.797e-05/2.441, allocations: 27.66 kB / 0.7501 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.456e-05/2.441, allocations: 17.25 kB / 0.7502 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06813/2.509, allocations: 26.35 MB / 0.7759 GB, free: 96.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-05/2.509, allocations: 7.641 kB / 0.7759 GB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003453/2.512, allocations: 0.526 MB / 0.7764 GB, free: 96.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02515/2.538, allocations: 6.327 MB / 0.7826 GB, free: 95.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001098/2.539, allocations: 75.22 kB / 0.7827 GB, free: 95.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06523/2.604, allocations: 34.01 MB / 0.8159 GB, free: 67.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.758e-06/2.604, allocations: 5.969 kB / 0.8159 GB, free: 67.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04463/2.649, allocations: 20.31 MB / 0.8357 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0042/2.653, allocations: 1.346 MB / 0.837 GB, free: 46.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001932/2.655, allocations: 64 kB / 0.8371 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004896/2.66, allocations: 349 kB / 0.8374 GB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001718/2.662, allocations: 269.8 kB / 0.8377 GB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007699/2.662, allocations: 102.6 kB / 0.8378 GB, free: 45.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007571/2.67, allocations: 3.313 MB / 0.841 GB, free: 42.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.189e-06/2.67, allocations: 0 / 0.841 GB, free: 42.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0112/2.681, allocations: 1.888 MB / 0.8429 GB, free: 40.31 MB / 410.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 (230): * Single equations (assignments): 222 * 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 {(9,67.9%) 97,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/2.683, allocations: 217.6 kB / 0.8431 GB, free: 40.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02369/2.706, allocations: 11.96 MB / 0.8547 GB, free: 28.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.719e-06/2.706, allocations: 0 / 0.8547 GB, free: 28.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2358/2.942, allocations: 5.707 MB / 0.8603 GB, free: 114.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00484/2.947, allocations: 0.6208 MB / 0.8609 GB, free: 114.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04818/2.995, allocations: 19.81 MB / 0.8803 GB, free: 108.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01089/3.006, allocations: 4.693 MB / 0.8848 GB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002116/3.008, allocations: 384.2 kB / 0.8852 GB, free: 107.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.922e-06/3.008, allocations: 0 / 0.8852 GB, free: 107.9 MB / 410.7 MB Notification: Performance of Templates: time 0.5274/3.536, allocations: 219.9 MB / 1.1 GB, free: 46.01 MB / 410.7 MB