Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.011/2.011, allocations: 209.4 MB / 217.3 MB, free: 4.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.257e-05, allocations: 0 / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2626, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.4055, allocations: 94.5 MB / 414.5 MB, free: 1.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4058, allocations: 75.95 kB / 414.6 MB, free: 1.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.585/0.9909, allocations: 103.9 MB / 0.5063 GB, free: 54.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9909, allocations: 4 kB / 0.5064 GB, free: 54.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002992/0.9912, allocations: 111.6 kB / 0.5065 GB, free: 54.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01653/1.008, allocations: 5.257 MB / 0.5116 GB, free: 48.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/1.008, allocations: 16.03 kB / 0.5116 GB, free: 48.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03485/1.043, allocations: 6.888 MB / 0.5183 GB, free: 42.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01846/1.061, allocations: 6.862 MB / 0.525 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/1.061, allocations: 179.9 kB / 0.5252 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001613/1.063, allocations: 323.8 kB / 0.5255 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01398/1.077, allocations: 7.217 MB / 0.5326 GB, free: 27.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01941/1.097, allocations: 11.14 MB / 0.5434 GB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002192/1.097, allocations: 75.33 kB / 0.5435 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007578/1.098, allocations: 32 kB / 0.5435 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001538/1.099, allocations: 1.125 MB / 0.5446 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3313/1.431, allocations: 55.32 MB / 0.5987 GB, free: 55.72 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004973/1.436, allocations: 3.404 MB / 0.602 GB, free: 55.06 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003071/1.439, allocations: 2.169 MB / 0.6041 GB, free: 55.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004222/1.439, allocations: 337.1 kB / 0.6044 GB, free: 54.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/1.439, allocations: 57.42 kB / 0.6045 GB, free: 54.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=200): time 6.486e-06/1.439, allocations: 0 / 0.6045 GB, free: 54.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=227): time 0.04901/1.488, allocations: 19.6 MB / 0.6236 GB, free: 51.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/1.488, allocations: 208.7 kB / 0.6238 GB, free: 51.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005867/1.494, allocations: 3.656 MB / 0.6274 GB, free: 50.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002889/1.494, allocations: 29.27 kB / 0.6274 GB, free: 50.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002026/1.497, allocations: 3.725 MB / 0.6311 GB, free: 48.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000773/1.497, allocations: 0.832 MB / 0.6319 GB, free: 47.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/1.498, allocations: 0 / 0.6319 GB, free: 47.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000397/1.498, allocations: 0.6016 MB / 0.6325 GB, free: 47.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003556/1.502, allocations: 2.153 MB / 0.6346 GB, free: 46.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/1.507, allocations: 6.215 MB / 0.6406 GB, free: 40.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005904/1.513, allocations: 3.632 MB / 0.6442 GB, free: 39.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-05/1.513, allocations: 43.38 kB / 0.6442 GB, free: 39.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01719/1.53, allocations: 8.065 MB / 0.6521 GB, free: 36.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.53, allocations: 64.66 kB / 0.6522 GB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/1.53, allocations: 150.4 kB / 0.6523 GB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0035/1.534, allocations: 0.9548 MB / 0.6532 GB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00632/1.54, allocations: 1.575 MB / 0.6548 GB, free: 36.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.55, allocations: 7.266 MB / 0.6619 GB, free: 30.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006009/1.557, allocations: 233.4 kB / 0.6621 GB, free: 30.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006916/1.557, allocations: 415.1 kB / 0.6625 GB, free: 29.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (831): * Single equations (assignments): 826 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009582/1.558, allocations: 488.1 kB / 0.663 GB, free: 29.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006221/1.559, allocations: 402.8 kB / 0.6633 GB, free: 28.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006876/1.566, allocations: 3.441 MB / 0.6667 GB, free: 25.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.65e-05/1.566, allocations: 28.81 kB / 0.6667 GB, free: 25.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.566, allocations: 15.67 kB / 0.6667 GB, free: 25.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/1.566, allocations: 6.938 kB / 0.6667 GB, free: 25.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/1.584, allocations: 8.485 MB / 0.675 GB, free: 19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/1.584, allocations: 3.375 kB / 0.675 GB, free: 19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002086/1.586, allocations: 360.5 kB / 0.6754 GB, free: 18.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002747/1.589, allocations: 0.6714 MB / 0.676 GB, free: 18.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002644/1.589, allocations: 10.77 kB / 0.676 GB, free: 18.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008584/1.598, allocations: 6.201 MB / 0.6821 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.49e-06/1.598, allocations: 6.344 kB / 0.6821 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/1.608, allocations: 6.265 MB / 0.6882 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/1.61, allocations: 0.7104 MB / 0.6889 GB, free: 6.172 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005796/1.611, allocations: 4 kB / 0.6889 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.613, allocations: 86.17 kB / 0.689 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/1.614, allocations: 133.1 kB / 0.6891 GB, free: 6.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.614, allocations: 69.23 kB / 0.6892 GB, free: 5.98 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004207/1.618, allocations: 2.484 MB / 0.6916 GB, free: 3.816 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.96e-07/1.618, allocations: 0 / 0.6916 GB, free: 3.816 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007254/1.625, allocations: 1.026 MB / 0.6926 GB, free: 2.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005045/1.626, allocations: 159.6 kB / 0.6928 GB, free: 2.652 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01055/1.636, allocations: 5.44 MB / 0.6981 GB, free: 13.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.036e-06/1.636, allocations: 0 / 0.6981 GB, free: 13.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004009/1.64, allocations: 1.905 MB / 0.7 GB, free: 12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/1.643, allocations: 447.9 kB / 0.7004 GB, free: 11.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/1.667, allocations: 9.845 MB / 0.71 GB, free: 2.891 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007881/1.675, allocations: 4.135 MB / 0.714 GB, free: 15.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/1.677, allocations: 324.8 kB / 0.7143 GB, free: 15.53 MB / 442.7 MB Notification: Performance of SimCode: time 1.87e-06/1.677, allocations: 0 / 0.7143 GB, free: 15.53 MB / 442.7 MB Notification: Performance of Templates: time 0.4225/2.099, allocations: 109.6 MB / 0.8214 GB, free: 120.9 MB / 474.7 MB