Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.659/2.659, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005833/0.0005834, allocations: 12 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3374, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1827/0.5202, allocations: 102.5 MB / 472.3 MB, free: 4.086 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.5206, allocations: 91.89 kB / 472.4 MB, free: 3.996 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6904/1.211, allocations: 107.3 MB / 0.5661 GB, free: 5.879 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.211, allocations: 0 / 0.5661 GB, free: 5.879 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003427/1.211, allocations: 108 kB / 0.5662 GB, free: 5.773 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.02226/1.234, allocations: 5.731 MB / 0.5718 GB, free: 15.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/1.234, allocations: 8.031 kB / 0.5718 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05143/1.285, allocations: 6.927 MB / 0.5786 GB, free: 9.012 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02563/1.311, allocations: 6.918 MB / 0.5853 GB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005951/1.311, allocations: 406.7 kB / 0.5857 GB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003081/1.315, allocations: 0.5309 MB / 0.5862 GB, free: 1.105 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04123/1.356, allocations: 12.81 MB / 0.5988 GB, free: 3.145 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003405/1.356, allocations: 83.23 kB / 0.5988 GB, free: 3.062 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/1.358, allocations: 259.9 kB / 0.5991 GB, free: 2.809 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00247/1.361, allocations: 1.121 MB / 0.6002 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03431/1.395, allocations: 10.49 MB / 0.6104 GB, free: 7.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.436/1.831, allocations: 57.08 MB / 0.6662 GB, free: 63.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/1.849, allocations: 4.398 MB / 0.6705 GB, free: 62.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02371/1.872, allocations: 9.98 MB / 0.6802 GB, free: 61.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.075e-05/1.872, allocations: 57.59 kB / 0.6803 GB, free: 61.38 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 5.5e-06/1.872, allocations: 0 / 0.6803 GB, free: 61.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=218): time 0.07989/1.952, allocations: 19.36 MB / 0.6992 GB, free: 57.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.046e-05/1.953, allocations: 200.9 kB / 0.6994 GB, free: 57.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008429/1.961, allocations: 4.752 MB / 0.704 GB, free: 56.78 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004878/1.962, allocations: 62.17 kB / 0.7041 GB, free: 56.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/1.964, allocations: 3.624 MB / 0.7076 GB, free: 54.87 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/1.965, allocations: 0.8245 MB / 0.7084 GB, free: 54.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004987/1.966, allocations: 132.6 kB / 0.7085 GB, free: 54.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003593/1.966, allocations: 0.5827 MB / 0.7091 GB, free: 54.08 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004982/1.971, allocations: 2.255 MB / 0.7113 GB, free: 54.06 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007033/1.978, allocations: 6.219 MB / 0.7174 GB, free: 48.38 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007843/1.986, allocations: 3.677 MB / 0.721 GB, free: 47.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.393e-05/1.986, allocations: 38.91 kB / 0.721 GB, free: 47.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02176/2.008, allocations: 8.778 MB / 0.7296 GB, free: 44.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.201e-05/2.008, allocations: 63.31 kB / 0.7296 GB, free: 44.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/2.008, allocations: 144 kB / 0.7298 GB, free: 44.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00403/2.012, allocations: 0.9444 MB / 0.7307 GB, free: 44.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008539/2.021, allocations: 1.499 MB / 0.7322 GB, free: 44.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/2.034, allocations: 7.616 MB / 0.7396 GB, free: 39.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006808/2.041, allocations: 357.5 kB / 0.7399 GB, free: 39.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/2.042, allocations: 401.5 kB / 0.7403 GB, free: 39.36 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 () * 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.006832/2.049, allocations: 2.561 MB / 0.7428 GB, free: 38.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/2.05, allocations: 427.1 kB / 0.7432 GB, free: 37.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/2.06, allocations: 3.613 MB / 0.7468 GB, free: 35.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.271e-05/2.06, allocations: 25.56 kB / 0.7468 GB, free: 35.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/2.06, allocations: 8 kB / 0.7468 GB, free: 35.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-05/2.06, allocations: 10.69 kB / 0.7468 GB, free: 35.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02498/2.085, allocations: 9.304 MB / 0.7559 GB, free: 28.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/2.086, allocations: 0.75 kB / 0.7559 GB, free: 28.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003177/2.089, allocations: 346.6 kB / 0.7562 GB, free: 28.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003703/2.092, allocations: 0.6923 MB / 0.7569 GB, free: 27.53 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003674/2.093, allocations: 34.27 kB / 0.7569 GB, free: 27.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/2.104, allocations: 6.74 MB / 0.7635 GB, free: 21.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/2.104, allocations: 3.938 kB / 0.7635 GB, free: 21.22 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/2.119, allocations: 6.245 MB / 0.7696 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002516/2.121, allocations: 0.7309 MB / 0.7703 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/2.123, allocations: 40 kB / 0.7704 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003133/2.126, allocations: 117.1 kB / 0.7705 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005042/2.126, allocations: 137.4 kB / 0.7706 GB, free: 14.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002099/2.127, allocations: 54.86 kB / 0.7707 GB, free: 14.82 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006846/2.133, allocations: 2.993 MB / 0.7736 GB, free: 12.37 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.603e-06/2.133, allocations: 0 / 0.7736 GB, free: 12.37 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007612/2.141, allocations: 1.19 MB / 0.7747 GB, free: 11.19 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 () * 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.0007207/2.142, allocations: 170.2 kB / 0.7749 GB, free: 11.03 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01303/2.155, allocations: 5.764 MB / 0.7805 GB, free: 5.988 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/2.155, allocations: 0 / 0.7805 GB, free: 5.988 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004754/2.16, allocations: 2.001 MB / 0.7825 GB, free: 4.207 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004038/2.164, allocations: 0.5323 MB / 0.783 GB, free: 3.766 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03254/2.196, allocations: 14.05 MB / 0.7967 GB, free: 7.004 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009274/2.206, allocations: 4.111 MB / 0.8007 GB, free: 3.938 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/2.208, allocations: 335 kB / 0.8011 GB, free: 3.621 MB / 490.7 MB Notification: Performance of SimCode: time 1.943e-06/2.208, allocations: 0 / 0.8011 GB, free: 3.621 MB / 490.7 MB Notification: Performance of Templates: time 0.5349/2.743, allocations: 111.9 MB / 0.9103 GB, free: 118.1 MB / 0.5105 GB