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.Rotational3DEffects.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.64/1.64, allocations: 171.3 MB / 179.2 MB, free: 7.578 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.006e-05/2.02e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07028/0.07032, allocations: 38.76 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3082/0.3786, allocations: 85.93 MB / 347.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.3789, allocations: 84.31 kB / 347.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5786/0.9575, allocations: 103.7 MB / 451 MB, free: 75.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9576, allocations: 4 kB / 451 MB, free: 75.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003153/0.9579, allocations: 108.4 kB / 451.1 MB, free: 75.24 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01683/0.9748, allocations: 5.261 MB / 456.4 MB, free: 73.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.9748, allocations: 9.094 kB / 456.4 MB, free: 73.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03588/1.011, allocations: 6.898 MB / 463.3 MB, free: 72.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01978/1.031, allocations: 6.777 MB / 470.1 MB, free: 71.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/1.031, allocations: 177.6 kB / 470.2 MB, free: 71.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002102/1.033, allocations: 318.8 kB / 470.5 MB, free: 71.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01585/1.049, allocations: 7.221 MB / 477.8 MB, free: 68.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02419/1.073, allocations: 11.15 MB / 488.9 MB, free: 59.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002899/1.073, allocations: 74.41 kB / 489 MB, free: 59.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001448/1.075, allocations: 32 kB / 489 MB, free: 59.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001782/1.077, allocations: 1.135 MB / 490.1 MB, free: 57.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06521/1.142, allocations: 55.33 MB / 0.5327 GB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2114/1.353, allocations: 3.389 MB / 0.536 GB, free: 68.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003743/1.357, allocations: 2.168 MB / 0.5381 GB, free: 68.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004953/1.358, allocations: 342.6 kB / 0.5384 GB, free: 68.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/1.358, allocations: 56.09 kB / 0.5385 GB, free: 68.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=200): time 6.773e-06/1.358, allocations: 0 / 0.5385 GB, free: 68.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=227): time 0.05483/1.413, allocations: 19.61 MB / 0.5576 GB, free: 65.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.806e-05/1.413, allocations: 208.7 kB / 0.5578 GB, free: 64.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007664/1.42, allocations: 3.661 MB / 0.5614 GB, free: 63.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00041/1.421, allocations: 25.7 kB / 0.5614 GB, free: 63.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/1.424, allocations: 3.717 MB / 0.5651 GB, free: 60.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/1.425, allocations: 0.841 MB / 0.5659 GB, free: 60.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006419/1.425, allocations: 0 / 0.5659 GB, free: 60.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004896/1.426, allocations: 0.5963 MB / 0.5665 GB, free: 59.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004473/1.43, allocations: 2.156 MB / 0.5686 GB, free: 58.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006724/1.437, allocations: 6.203 MB / 0.5746 GB, free: 52.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006817/1.444, allocations: 3.648 MB / 0.5782 GB, free: 51.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001363/1.444, allocations: 41.38 kB / 0.5782 GB, free: 51.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01988/1.464, allocations: 8.068 MB / 0.5861 GB, free: 49.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/1.464, allocations: 65.19 kB / 0.5862 GB, free: 49.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000163/1.464, allocations: 154.4 kB / 0.5863 GB, free: 49.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003697/1.468, allocations: 0.9447 MB / 0.5872 GB, free: 48.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006634/1.475, allocations: 1.571 MB / 0.5888 GB, free: 48.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.486, allocations: 7.276 MB / 0.5959 GB, free: 44.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006592/1.492, allocations: 227.1 kB / 0.5961 GB, free: 44.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001452/1.494, allocations: 415.8 kB / 0.5965 GB, free: 44.16 MB / 346.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.001866/1.496, allocations: 480.3 kB / 0.597 GB, free: 43.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009685/1.497, allocations: 403.3 kB / 0.5973 GB, free: 43.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008302/1.505, allocations: 3.449 MB / 0.6007 GB, free: 42.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.056e-05/1.505, allocations: 27.53 kB / 0.6007 GB, free: 42.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/1.505, allocations: 6.094 kB / 0.6007 GB, free: 42.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.995e-05/1.505, allocations: 9.609 kB / 0.6008 GB, free: 42.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02196/1.527, allocations: 8.475 MB / 0.609 GB, free: 36.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/1.527, allocations: 0 / 0.609 GB, free: 36.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/1.53, allocations: 360.1 kB / 0.6094 GB, free: 35.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002804/1.532, allocations: 0.676 MB / 0.61 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003848/1.533, allocations: 11.94 kB / 0.61 GB, free: 35.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00879/1.542, allocations: 6.217 MB / 0.6161 GB, free: 29.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.591e-06/1.542, allocations: 0 / 0.6161 GB, free: 29.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/1.553, allocations: 6.256 MB / 0.6222 GB, free: 23.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002118/1.555, allocations: 0.7139 MB / 0.6229 GB, free: 23.27 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009273/1.556, allocations: 7.469 kB / 0.6229 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002521/1.559, allocations: 74.94 kB / 0.623 GB, free: 23.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/1.559, allocations: 140.2 kB / 0.6231 GB, free: 23.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002019/1.56, allocations: 56.34 kB / 0.6232 GB, free: 23.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005153/1.565, allocations: 2.487 MB / 0.6256 GB, free: 20.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.14e-06/1.565, allocations: 0 / 0.6256 GB, free: 20.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007707/1.573, allocations: 1.028 MB / 0.6266 GB, free: 19.89 MB / 346.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.0005978/1.573, allocations: 156.9 kB / 0.6268 GB, free: 19.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009827/1.583, allocations: 5.432 MB / 0.6321 GB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.878e-06/1.583, allocations: 0 / 0.6321 GB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/1.587, allocations: 1.927 MB / 0.634 GB, free: 13.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/1.59, allocations: 436.7 kB / 0.6344 GB, free: 12.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02291/1.612, allocations: 9.832 MB / 0.644 GB, free: 3.969 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008593/1.621, allocations: 4.113 MB / 0.648 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.623, allocations: 332.4 kB / 0.6483 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of SimCode: time 1.815e-06/1.623, allocations: 0 / 0.6483 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of Templates: time 0.3789/2.002, allocations: 109.7 MB / 0.7554 GB, free: 26.55 MB / 362.7 MB