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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.134/2.134, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.469e-05, allocations: 7.938 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2733, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.4408, allocations: 101.7 MB / 459.8 MB, free: 9.055 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.4411, allocations: 87.94 kB / 459.9 MB, free: 8.969 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6244/1.066, allocations: 104.2 MB / 0.5508 GB, free: 17.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.829e-06/1.066, allocations: 0 / 0.5508 GB, free: 17.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003068/1.066, allocations: 108 kB / 0.5509 GB, free: 17.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.01529/1.081, allocations: 5.262 MB / 0.5561 GB, free: 11.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/1.081, allocations: 12.03 kB / 0.5561 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03432/1.116, allocations: 6.935 MB / 0.5629 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01947/1.135, allocations: 6.876 MB / 0.5696 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/1.135, allocations: 172 kB / 0.5697 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002314/1.138, allocations: 323.8 kB / 0.57 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01865/1.157, allocations: 7.549 MB / 0.5774 GB, free: 5.871 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02856/1.185, allocations: 11.32 MB / 0.5885 GB, free: 9.398 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002959/1.185, allocations: 83.33 kB / 0.5886 GB, free: 9.316 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001294/1.187, allocations: 36 kB / 0.5886 GB, free: 9.281 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002079/1.189, allocations: 1.122 MB / 0.5897 GB, free: 8.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3912/1.58, allocations: 55.93 MB / 0.6443 GB, free: 60.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005012/1.585, allocations: 3.496 MB / 0.6477 GB, free: 59.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003386/1.589, allocations: 2.271 MB / 0.6499 GB, free: 59.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004231/1.589, allocations: 344.2 kB / 0.6503 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/1.589, allocations: 57.67 kB / 0.6503 GB, free: 59.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=201): time 6.378e-06/1.589, allocations: 0 / 0.6503 GB, free: 59.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.05053/1.64, allocations: 19.96 MB / 0.6698 GB, free: 55.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/1.64, allocations: 207.7 kB / 0.67 GB, free: 55.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006814/1.647, allocations: 3.653 MB / 0.6736 GB, free: 55.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/1.647, allocations: 29.72 kB / 0.6736 GB, free: 55.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002452/1.649, allocations: 3.719 MB / 0.6772 GB, free: 53.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001005/1.65, allocations: 0.8394 MB / 0.6781 GB, free: 52.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000547/1.651, allocations: 3.312 kB / 0.6781 GB, free: 52.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004452/1.651, allocations: 0.6026 MB / 0.6787 GB, free: 52.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004032/1.656, allocations: 2.17 MB / 0.6808 GB, free: 52.32 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006244/1.662, allocations: 6.231 MB / 0.6869 GB, free: 46.47 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006615/1.668, allocations: 3.654 MB / 0.6904 GB, free: 45.37 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001204/1.669, allocations: 43 kB / 0.6905 GB, free: 45.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01925/1.688, allocations: 8.1 MB / 0.6984 GB, free: 43.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.688, allocations: 75.02 kB / 0.6984 GB, free: 43.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/1.688, allocations: 149.8 kB / 0.6986 GB, free: 43.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/1.692, allocations: 0.9542 MB / 0.6995 GB, free: 43.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006637/1.698, allocations: 1.575 MB / 0.7011 GB, free: 42.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/1.709, allocations: 7.249 MB / 0.7081 GB, free: 38.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006561/1.716, allocations: 232.6 kB / 0.7084 GB, free: 38.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.717, allocations: 417 kB / 0.7088 GB, free: 38.27 MB / 458.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 (832): * Single equations (assignments): 827 * 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.001322/1.719, allocations: 467 kB / 0.7092 GB, free: 37.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008723/1.719, allocations: 401.9 kB / 0.7096 GB, free: 37.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007447/1.727, allocations: 3.494 MB / 0.713 GB, free: 35.51 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.954e-05/1.727, allocations: 24 kB / 0.713 GB, free: 35.48 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/1.727, allocations: 8 kB / 0.713 GB, free: 35.48 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-05/1.727, allocations: 13.38 kB / 0.713 GB, free: 35.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01874/1.746, allocations: 8.557 MB / 0.7214 GB, free: 28.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/1.746, allocations: 0 / 0.7214 GB, free: 28.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002158/1.748, allocations: 366.1 kB / 0.7217 GB, free: 28.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002715/1.751, allocations: 0.6742 MB / 0.7224 GB, free: 27.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003182/1.751, allocations: 11.22 kB / 0.7224 GB, free: 27.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008427/1.76, allocations: 6.214 MB / 0.7285 GB, free: 21.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.809e-06/1.76, allocations: 6.594 kB / 0.7285 GB, free: 21.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01086/1.771, allocations: 6.325 MB / 0.7347 GB, free: 16.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002041/1.773, allocations: 0.7083 MB / 0.7354 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008231/1.773, allocations: 7.609 kB / 0.7354 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/1.776, allocations: 83.12 kB / 0.7354 GB, free: 15.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004545/1.776, allocations: 141.1 kB / 0.7356 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002089/1.776, allocations: 62.78 kB / 0.7356 GB, free: 15.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004684/1.781, allocations: 2.482 MB / 0.7381 GB, free: 13.27 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.781, allocations: 0 / 0.7381 GB, free: 13.27 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007178/1.788, allocations: 1.029 MB / 0.7391 GB, free: 12.25 MB / 458.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 (179): * Single equations (assignments): 174 * 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.000493/1.789, allocations: 150.4 kB / 0.7392 GB, free: 12.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009652/1.799, allocations: 5.465 MB / 0.7446 GB, free: 7.172 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.058e-06/1.799, allocations: 4 kB / 0.7446 GB, free: 7.168 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00359/1.802, allocations: 1.946 MB / 0.7465 GB, free: 5.398 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/1.805, allocations: 454.7 kB / 0.7469 GB, free: 5.035 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02873/1.834, allocations: 10.17 MB / 0.7568 GB, free: 12.96 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007715/1.842, allocations: 4.104 MB / 0.7608 GB, free: 9.891 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/1.843, allocations: 329.6 kB / 0.7611 GB, free: 9.582 MB / 474.7 MB Notification: Performance of SimCode: time 1.756e-06/1.843, allocations: 0 / 0.7611 GB, free: 9.582 MB / 474.7 MB Notification: Performance of Templates: time 0.4457/2.289, allocations: 109.8 MB / 0.8684 GB, free: 142.4 MB / 0.5105 GB