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.174/2.174, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004291/0.0004293, allocations: 12 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2771, allocations: 54.87 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.09252/0.3697, allocations: 57.52 MB / 426.7 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03225/0.402, allocations: 13.52 MB / 440.2 MB, free: 3.48 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.4126, allocations: 287.3 kB / 440.5 MB, free: 3.199 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008751/0.4214, allocations: 2.932 MB / 443.4 MB, free: 260 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02709/0.4485, allocations: 8.283 MB / 451.7 MB, free: 7.949 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004068/0.4527, allocations: 0.8074 MB / 452.5 MB, free: 7.141 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03767/0.4904, allocations: 17.86 MB / 470.4 MB, free: 5.258 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2841/0.7745, allocations: 6.565 MB / 477 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003175/0.7778, allocations: 1.41 MB / 478.4 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003345/0.7811, allocations: 1.862 MB / 480.2 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009353/0.7821, allocations: 191.4 kB / 480.4 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.7847, allocations: 1.006 MB / 481.4 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.7873, allocations: 2.092 MB / 483.5 MB, free: 19.7 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/0.7886, allocations: 1.096 MB / 484.6 MB, free: 19.66 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008743/0.7973, allocations: 7.564 MB / 492.2 MB, free: 19.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.7974, allocations: 0 / 492.2 MB, free: 19.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.15e-06/0.7974, allocations: 0 / 492.2 MB, free: 19.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002179/0.7976, allocations: 0 / 492.2 MB, free: 19.18 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.01389/0.8115, allocations: 5.625 MB / 497.8 MB, free: 16.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.8116, allocations: 8.625 kB / 497.8 MB, free: 16.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05219/0.8638, allocations: 8.037 MB / 0.494 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009961/0.8738, allocations: 4.266 MB / 0.4982 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.8741, allocations: 316.6 kB / 0.4985 GB, free: 11.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001558/0.8757, allocations: 439.9 kB / 0.4989 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02518/0.9009, allocations: 12.32 MB / 0.5109 GB, free: 5.707 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/0.9011, allocations: 56.61 kB / 0.511 GB, free: 5.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008154/0.9019, allocations: 196.6 kB / 0.5112 GB, free: 5.625 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003292/0.9053, allocations: 2.088 MB / 0.5132 GB, free: 3.926 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02544/0.9307, allocations: 10.43 MB / 0.5234 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07628/1.007, allocations: 47.06 MB / 0.5693 GB, free: 5.469 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01542/1.023, allocations: 4.483 MB / 0.5737 GB, free: 1.898 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02195/1.045, allocations: 10.13 MB / 0.5836 GB, free: 10.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.006e-05/1.045, allocations: 59.52 kB / 0.5837 GB, free: 10.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.398e-06/1.045, allocations: 4 kB / 0.5837 GB, free: 10.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=218): time 0.07396/1.119, allocations: 19.83 MB / 0.603 GB, free: 6.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/1.119, allocations: 197.2 kB / 0.6032 GB, free: 6.586 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01035/1.129, allocations: 5.031 MB / 0.6081 GB, free: 1.559 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004174/1.13, allocations: 61.7 kB / 0.6082 GB, free: 1.492 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003679/1.133, allocations: 3.61 MB / 0.6117 GB, free: 13.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/1.135, allocations: 0.8237 MB / 0.6125 GB, free: 13.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005132/1.135, allocations: 132 kB / 0.6127 GB, free: 12.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005964/1.136, allocations: 0.5876 MB / 0.6132 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005621/1.141, allocations: 2.332 MB / 0.6155 GB, free: 10.02 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009745/1.151, allocations: 6.265 MB / 0.6216 GB, free: 1.871 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008254/1.159, allocations: 3.747 MB / 0.6253 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/1.16, allocations: 40 kB / 0.6253 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of matching and sorting (n=853) (initialization): time 0.02348/1.183, allocations: 9.01 MB / 0.6341 GB, free: 6.035 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/1.183, allocations: 68 kB / 0.6342 GB, free: 5.969 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002203/1.184, allocations: 136 kB / 0.6343 GB, free: 5.836 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004489/1.188, allocations: 1.095 MB / 0.6354 GB, free: 4.734 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007202/1.195, allocations: 1.496 MB / 0.6368 GB, free: 3.367 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/1.211, allocations: 8.389 MB / 0.645 GB, free: 10.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006341/1.218, allocations: 363.4 kB / 0.6454 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.219, allocations: 396.2 kB / 0.6458 GB, free: 10.06 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * 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 (791): * Single equations (assignments): 786 * 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.006281/1.225, allocations: 2.568 MB / 0.6483 GB, free: 7.609 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/1.226, allocations: 430.4 kB / 0.6487 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/1.237, allocations: 3.881 MB / 0.6525 GB, free: 3.301 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.632e-05/1.237, allocations: 20 kB / 0.6525 GB, free: 3.281 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/1.237, allocations: 11.28 kB / 0.6525 GB, free: 3.273 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.924e-05/1.237, allocations: 11.97 kB / 0.6525 GB, free: 3.262 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2888/1.526, allocations: 9.775 MB / 0.6621 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/1.526, allocations: 2.406 kB / 0.6621 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00227/1.528, allocations: 346.9 kB / 0.6624 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003625/1.532, allocations: 0.8543 MB / 0.6632 GB, free: 194.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003143/1.532, allocations: 36.77 kB / 0.6633 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/1.544, allocations: 7.541 MB / 0.6706 GB, free: 190 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.201e-06/1.544, allocations: 0.5625 kB / 0.6706 GB, free: 190 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/1.558, allocations: 6.644 MB / 0.6771 GB, free: 187.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002214/1.56, allocations: 0.7739 MB / 0.6779 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006698/1.561, allocations: 35.8 kB / 0.6779 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002358/1.563, allocations: 118.3 kB / 0.678 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004753/1.563, allocations: 133.8 kB / 0.6781 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002097/1.564, allocations: 63.36 kB / 0.6782 GB, free: 187.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006136/1.57, allocations: 3.224 MB / 0.6814 GB, free: 186.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.7e-07/1.57, allocations: 0 / 0.6814 GB, free: 186.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007407/1.577, allocations: 1.22 MB / 0.6825 GB, free: 185.9 MB / 0.5105 GB 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.0006125/1.578, allocations: 180.8 kB / 0.6827 GB, free: 185.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01139/1.589, allocations: 5.911 MB / 0.6885 GB, free: 182.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.688e-06/1.589, allocations: 1.5 kB / 0.6885 GB, free: 182.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003889/1.593, allocations: 2.075 MB / 0.6905 GB, free: 181 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/1.596, allocations: 0.5259 MB / 0.691 GB, free: 180.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02328/1.62, allocations: 14.14 MB / 0.7048 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005839/1.626, allocations: 4.105 MB / 0.7088 GB, free: 164.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/1.627, allocations: 342.5 kB / 0.7092 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of SimCode: time 2.215e-06/1.627, allocations: 0 / 0.7092 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.1435/1.771, allocations: 112.8 MB / 0.8193 GB, free: 52.29 MB / 0.5105 GB