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.Rotational3DEffects.GearConstraint.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.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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003783, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08203/0.08243, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4402, allocations: 92.85 MB / 401.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.4405, allocations: 93.05 kB / 401.4 MB, free: 18.72 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3819/0.8224, allocations: 106.3 MB / 0.4958 GB, free: 14.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.814e-06/0.8224, allocations: 3.938 kB / 0.4958 GB, free: 14.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003549/0.8228, allocations: 108 kB / 0.4959 GB, free: 14 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.01949/0.8423, allocations: 5.72 MB / 0.5015 GB, free: 8.211 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.8424, allocations: 8.031 kB / 0.5015 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03711/0.8795, allocations: 6.927 MB / 0.5083 GB, free: 1.258 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02174/0.9013, allocations: 6.843 MB / 0.5149 GB, free: 10.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006088/0.9019, allocations: 406.7 kB / 0.5153 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002485/0.9044, allocations: 0.5427 MB / 0.5159 GB, free: 9.414 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2689/1.173, allocations: 12.77 MB / 0.5283 GB, free: 72.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003263/1.174, allocations: 72.28 kB / 0.5284 GB, free: 72.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001686/1.175, allocations: 256.8 kB / 0.5287 GB, free: 72.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002002/1.177, allocations: 1.13 MB / 0.5298 GB, free: 72.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02972/1.207, allocations: 10.47 MB / 0.54 GB, free: 72.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07489/1.282, allocations: 57.09 MB / 0.5957 GB, free: 38.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01439/1.297, allocations: 4.416 MB / 0.6 GB, free: 36.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01929/1.316, allocations: 9.978 MB / 0.6098 GB, free: 31.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/1.316, allocations: 55.31 kB / 0.6098 GB, free: 31.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 6.599e-06/1.316, allocations: 3.812 kB / 0.6098 GB, free: 31.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.06403/1.38, allocations: 18.95 MB / 0.6284 GB, free: 24.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/1.38, allocations: 207 kB / 0.6286 GB, free: 23.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008394/1.389, allocations: 4.227 MB / 0.6327 GB, free: 22.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003859/1.389, allocations: 60.67 kB / 0.6327 GB, free: 22.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002446/1.391, allocations: 3.626 MB / 0.6363 GB, free: 19.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009664/1.392, allocations: 0.822 MB / 0.6371 GB, free: 18.93 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005024/1.393, allocations: 133.1 kB / 0.6372 GB, free: 18.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000395/1.393, allocations: 0.5885 MB / 0.6378 GB, free: 18.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004754/1.398, allocations: 2.253 MB / 0.64 GB, free: 17.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006842/1.405, allocations: 6.194 MB / 0.646 GB, free: 11.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006805/1.412, allocations: 3.662 MB / 0.6496 GB, free: 10.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.997e-05/1.412, allocations: 46 kB / 0.6496 GB, free: 10.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.01963/1.432, allocations: 8.766 MB / 0.6582 GB, free: 3.371 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.432, allocations: 66.08 kB / 0.6583 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001643/1.432, allocations: 143.5 kB / 0.6584 GB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003213/1.435, allocations: 0.9332 MB / 0.6593 GB, free: 2.441 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006025/1.441, allocations: 1.505 MB / 0.6608 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/1.454, allocations: 7.621 MB / 0.6682 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006565/1.461, allocations: 362.4 kB / 0.6686 GB, free: 9.754 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/1.462, allocations: 395.8 kB / 0.669 GB, free: 9.375 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * 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.006333/1.469, allocations: 2.554 MB / 0.6715 GB, free: 7.125 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.47, allocations: 426.5 kB / 0.6719 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009157/1.479, allocations: 3.613 MB / 0.6754 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.564e-05/1.479, allocations: 28 kB / 0.6754 GB, free: 3.691 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/1.479, allocations: 8 kB / 0.6754 GB, free: 3.684 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/1.479, allocations: 7.734 kB / 0.6754 GB, free: 3.684 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2654/1.744, allocations: 9.302 MB / 0.6845 GB, free: 83.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.885e-05/1.745, allocations: 4.406 kB / 0.6845 GB, free: 83.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.747, allocations: 339.1 kB / 0.6848 GB, free: 83.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00293/1.75, allocations: 0.6943 MB / 0.6855 GB, free: 83.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003362/1.75, allocations: 40.97 kB / 0.6856 GB, free: 83.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01059/1.761, allocations: 6.73 MB / 0.6921 GB, free: 81.08 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.805e-06/1.761, allocations: 6.219 kB / 0.6921 GB, free: 81.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/1.774, allocations: 6.374 MB / 0.6984 GB, free: 80.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002365/1.776, allocations: 0.7332 MB / 0.6991 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001107/1.777, allocations: 36.16 kB / 0.6991 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002726/1.78, allocations: 109.7 kB / 0.6992 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005095/1.781, allocations: 131.6 kB / 0.6993 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001975/1.781, allocations: 58.08 kB / 0.6994 GB, free: 80.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0067/1.788, allocations: 2.994 MB / 0.7023 GB, free: 80.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.49e-07/1.788, allocations: 0 / 0.7023 GB, free: 80.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007889/1.795, allocations: 1.191 MB / 0.7035 GB, free: 80.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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.0006889/1.796, allocations: 174.5 kB / 0.7036 GB, free: 80.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01146/1.808, allocations: 5.762 MB / 0.7093 GB, free: 79.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.447e-06/1.808, allocations: 0 / 0.7093 GB, free: 79.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004098/1.812, allocations: 1.999 MB / 0.7112 GB, free: 79.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.815, allocations: 0.5226 MB / 0.7117 GB, free: 79.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/1.841, allocations: 13.99 MB / 0.7254 GB, free: 74.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007775/1.849, allocations: 4.113 MB / 0.7294 GB, free: 73.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/1.851, allocations: 331.1 kB / 0.7297 GB, free: 73.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.67e-06/1.851, allocations: 3 kB / 0.7297 GB, free: 73.5 MB / 426.7 MB Notification: Performance of Templates: time 0.3952/2.246, allocations: 111.8 MB / 0.839 GB, free: 85.84 MB / 426.7 MB