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/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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 1.865/1.865, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004324/0.0004325, allocations: 11.94 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2794, allocations: 48.7 MB / 331.3 MB, free: 6.32 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4205, allocations: 95.26 MB / 426.5 MB, free: 14.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.4208, allocations: 79.95 kB / 426.6 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5874/1.008, allocations: 106.2 MB / 0.5203 GB, free: 76.15 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.76e-06/1.008, allocations: 0 / 0.5203 GB, free: 76.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002574/1.009, allocations: 108 kB / 0.5204 GB, free: 76.05 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: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.0156/1.024, allocations: 5.732 MB / 0.526 GB, free: 70.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/1.024, allocations: 8.031 kB / 0.5261 GB, free: 70.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03406/1.058, allocations: 6.888 MB / 0.5328 GB, free: 63.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01819/1.077, allocations: 6.891 MB / 0.5395 GB, free: 56.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003656/1.077, allocations: 410.7 kB / 0.5399 GB, free: 55.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/1.079, allocations: 0.5271 MB / 0.5404 GB, free: 55.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02529/1.104, allocations: 12.41 MB / 0.5525 GB, free: 41.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002401/1.104, allocations: 79.25 kB / 0.5526 GB, free: 41.81 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001031/1.105, allocations: 255.8 kB / 0.5529 GB, free: 41.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001592/1.107, allocations: 1.129 MB / 0.554 GB, free: 40.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/1.129, allocations: 9.979 MB / 0.5637 GB, free: 30.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07124/1.201, allocations: 56.49 MB / 0.6189 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2609/1.461, allocations: 4.149 MB / 0.6229 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01967/1.481, allocations: 9.488 MB / 0.6322 GB, free: 99.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/1.481, allocations: 59.75 kB / 0.6322 GB, free: 99.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.73e-06/1.481, allocations: 2.781 kB / 0.6322 GB, free: 99.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.06482/1.546, allocations: 19.35 MB / 0.6511 GB, free: 95.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/1.546, allocations: 200.8 kB / 0.6513 GB, free: 95.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007566/1.554, allocations: 4.238 MB / 0.6555 GB, free: 94.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003554/1.554, allocations: 59.88 kB / 0.6555 GB, free: 94.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00209/1.556, allocations: 3.619 MB / 0.6591 GB, free: 91.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008449/1.557, allocations: 0.8321 MB / 0.6599 GB, free: 91.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/1.558, allocations: 134.5 kB / 0.66 GB, free: 91.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003944/1.558, allocations: 0.5849 MB / 0.6606 GB, free: 90.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004367/1.562, allocations: 2.244 MB / 0.6628 GB, free: 90.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006192/1.569, allocations: 6.18 MB / 0.6688 GB, free: 83.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006492/1.575, allocations: 3.664 MB / 0.6724 GB, free: 82.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.034e-05/1.575, allocations: 40.12 kB / 0.6724 GB, free: 82.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.01877/1.594, allocations: 8.76 MB / 0.681 GB, free: 79.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/1.594, allocations: 63.53 kB / 0.681 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001592/1.594, allocations: 141.1 kB / 0.6812 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003126/1.597, allocations: 0.9381 MB / 0.6821 GB, free: 79.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/1.604, allocations: 1.504 MB / 0.6836 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/1.615, allocations: 7.617 MB / 0.691 GB, free: 74.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00642/1.622, allocations: 360.2 kB / 0.6913 GB, free: 74.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/1.623, allocations: 395.5 kB / 0.6917 GB, free: 73.69 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.005095/1.628, allocations: 2.57 MB / 0.6942 GB, free: 71.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000888/1.629, allocations: 433.8 kB / 0.6946 GB, free: 71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007691/1.636, allocations: 3.583 MB / 0.6981 GB, free: 68.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.711e-05/1.636, allocations: 27.95 kB / 0.6982 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.815e-05/1.637, allocations: 8 kB / 0.6982 GB, free: 68.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.169e-05/1.637, allocations: 10.69 kB / 0.6982 GB, free: 68.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02066/1.657, allocations: 9.262 MB / 0.7072 GB, free: 60.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/1.657, allocations: 4 kB / 0.7072 GB, free: 60.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/1.659, allocations: 343.7 kB / 0.7076 GB, free: 60.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002726/1.662, allocations: 0.6959 MB / 0.7082 GB, free: 59.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002605/1.662, allocations: 44.88 kB / 0.7083 GB, free: 59.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00954/1.672, allocations: 6.732 MB / 0.7149 GB, free: 53.37 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.009e-06/1.672, allocations: 0 / 0.7149 GB, free: 53.37 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.683, allocations: 6.331 MB / 0.721 GB, free: 47.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/1.685, allocations: 0.738 MB / 0.7218 GB, free: 47.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009156/1.686, allocations: 41.64 kB / 0.7218 GB, free: 47.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/1.689, allocations: 113.5 kB / 0.7219 GB, free: 46.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/1.689, allocations: 135.6 kB / 0.722 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.689, allocations: 63.06 kB / 0.7221 GB, free: 46.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005277/1.695, allocations: 3 MB / 0.725 GB, free: 44.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.18e-07/1.695, allocations: 0 / 0.725 GB, free: 44.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007302/1.702, allocations: 1.185 MB / 0.7262 GB, free: 43.19 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.0005059/1.702, allocations: 179.1 kB / 0.7264 GB, free: 43.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.713, allocations: 5.723 MB / 0.7319 GB, free: 37.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.094e-06/1.713, allocations: 4 kB / 0.7319 GB, free: 37.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003876/1.717, allocations: 1.987 MB / 0.7339 GB, free: 36.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/1.72, allocations: 0.521 MB / 0.7344 GB, free: 35.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02394/1.744, allocations: 13.99 MB / 0.7481 GB, free: 23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005985/1.75, allocations: 4.109 MB / 0.7521 GB, free: 19.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.751, allocations: 334.9 kB / 0.7524 GB, free: 19.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.799e-06/1.751, allocations: 0 / 0.7524 GB, free: 19.01 MB / 426.7 MB Notification: Performance of Templates: time 0.422/2.173, allocations: 111.8 MB / 0.8616 GB, free: 63.51 MB / 442.7 MB