Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.201/2.201, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.649e-05/2.666e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3184, allocations: 54.85 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1516/0.47, allocations: 102.4 MB / 467 MB, free: 10.03 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.4703, allocations: 81.05 kB / 467 MB, free: 9.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6548/1.125, allocations: 106.6 MB / 0.5602 GB, free: 104 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.841e-06/1.125, allocations: 0 / 0.5602 GB, free: 104 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003182/1.125, allocations: 113.8 kB / 0.5603 GB, free: 104 MB / 458.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.01633/1.142, allocations: 5.26 MB / 0.5654 GB, free: 101.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/1.142, allocations: 11.31 kB / 0.5654 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0363/1.178, allocations: 6.928 MB / 0.5722 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/1.198, allocations: 6.874 MB / 0.5789 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004327/1.199, allocations: 408.8 kB / 0.5793 GB, free: 100 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002232/1.201, allocations: 0.5336 MB / 0.5798 GB, free: 99.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03028/1.231, allocations: 12.67 MB / 0.5922 GB, free: 93.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002834/1.232, allocations: 79.09 kB / 0.5923 GB, free: 93.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001703/1.233, allocations: 258.5 kB / 0.5925 GB, free: 93.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001923/1.235, allocations: 1.121 MB / 0.5936 GB, free: 92.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02474/1.26, allocations: 10.29 MB / 0.6037 GB, free: 86.18 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06644/1.327, allocations: 57.09 MB / 0.6594 GB, free: 27.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01334/1.34, allocations: 4.369 MB / 0.6637 GB, free: 23.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003839/1.344, allocations: 2.374 MB / 0.666 GB, free: 20.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01957/1.364, allocations: 9.965 MB / 0.6757 GB, free: 10.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/1.364, allocations: 59.8 kB / 0.6758 GB, free: 10.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 5.775e-06/1.364, allocations: 0 / 0.6758 GB, free: 10.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=218): time 0.0595/1.423, allocations: 16.17 MB / 0.6916 GB, free: 10.56 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/1.423, allocations: 205.2 kB / 0.6918 GB, free: 10.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.434, allocations: 4.188 MB / 0.6959 GB, free: 6.129 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004227/1.435, allocations: 57.7 kB / 0.6959 GB, free: 6.066 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003961/1.439, allocations: 3.63 MB / 0.6995 GB, free: 2.441 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.44, allocations: 0.8228 MB / 0.7003 GB, free: 1.625 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006972/1.441, allocations: 132 kB / 0.7004 GB, free: 1.496 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006818/1.442, allocations: 0.5838 MB / 0.701 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2787/1.72, allocations: 2.185 MB / 0.7031 GB, free: 109.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007053/1.727, allocations: 6.121 MB / 0.7091 GB, free: 104.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007621/1.735, allocations: 3.642 MB / 0.7126 GB, free: 104.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002092/1.735, allocations: 40.16 kB / 0.7127 GB, free: 104.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02243/1.758, allocations: 8.64 MB / 0.7211 GB, free: 103.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001561/1.758, allocations: 68 kB / 0.7212 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002084/1.758, allocations: 143.6 kB / 0.7213 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0035/1.762, allocations: 0.9291 MB / 0.7222 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00653/1.768, allocations: 1.512 MB / 0.7237 GB, free: 103.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.78, allocations: 7.417 MB / 0.731 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006872/1.787, allocations: 360.5 kB / 0.7313 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/1.788, allocations: 396.2 kB / 0.7317 GB, free: 100.6 MB / 474.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 () * 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.001379/1.79, allocations: 0.6187 MB / 0.7323 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008879/1.79, allocations: 425.4 kB / 0.7327 GB, free: 100.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007944/1.798, allocations: 3.54 MB / 0.7361 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.213e-05/1.799, allocations: 26.97 kB / 0.7362 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/1.799, allocations: 3.844 kB / 0.7362 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.001e-05/1.799, allocations: 13.14 kB / 0.7362 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02073/1.819, allocations: 9.235 MB / 0.7452 GB, free: 95.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.819, allocations: 0 / 0.7452 GB, free: 95.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002285/1.822, allocations: 344.6 kB / 0.7455 GB, free: 95.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00275/1.824, allocations: 0.6889 MB / 0.7462 GB, free: 95.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002177/1.825, allocations: 39.25 kB / 0.7462 GB, free: 95.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009449/1.834, allocations: 6.539 MB / 0.7526 GB, free: 91.08 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/1.834, allocations: 7.891 kB / 0.7526 GB, free: 91.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/1.846, allocations: 6.249 MB / 0.7587 GB, free: 88.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/1.848, allocations: 0.74 MB / 0.7595 GB, free: 88.14 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008836/1.849, allocations: 34.31 kB / 0.7595 GB, free: 88.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/1.851, allocations: 113.7 kB / 0.7596 GB, free: 88.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004138/1.852, allocations: 137.4 kB / 0.7597 GB, free: 88.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002093/1.852, allocations: 54.78 kB / 0.7598 GB, free: 88.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005956/1.858, allocations: 2.953 MB / 0.7627 GB, free: 87.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 1e-06/1.858, allocations: 1.969 kB / 0.7627 GB, free: 87.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007445/1.865, allocations: 1.185 MB / 0.7638 GB, free: 86.89 MB / 474.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 () * 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.0005593/1.866, allocations: 174.5 kB / 0.764 GB, free: 86.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.877, allocations: 5.65 MB / 0.7695 GB, free: 84.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.762e-06/1.877, allocations: 0 / 0.7695 GB, free: 84.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00382/1.881, allocations: 1.95 MB / 0.7714 GB, free: 83.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/1.884, allocations: 0.5252 MB / 0.7719 GB, free: 83.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02235/1.906, allocations: 9.889 MB / 0.7816 GB, free: 77.01 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007395/1.914, allocations: 4.116 MB / 0.7856 GB, free: 73.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.915, allocations: 331.5 kB / 0.7859 GB, free: 73.62 MB / 474.7 MB Notification: Performance of SimCode: time 1.974e-06/1.915, allocations: 0 / 0.7859 GB, free: 73.62 MB / 474.7 MB Notification: Performance of Templates: time 0.4343/2.35, allocations: 111.9 MB / 0.8952 GB, free: 116.1 MB / 490.7 MB