Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 194.8 MB / 211.6 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 12 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08301/0.0834, allocations: 44.5 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0769/0.1603, allocations: 57.48 MB / 365.8 MB, free: 7.398 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.265/0.4254, allocations: 13.5 MB / 379.3 MB, free: 7.156 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01282/0.4383, allocations: 292.3 kB / 379.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008999/0.4473, allocations: 2.931 MB / 382.6 MB, free: 7.152 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02659/0.474, allocations: 8.28 MB / 390.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004372/0.4784, allocations: 0.8019 MB / 391.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03334/0.5118, allocations: 17.86 MB / 409.5 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01169/0.5235, allocations: 6.574 MB / 416.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.5268, allocations: 1.405 MB / 417.5 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003635/0.5304, allocations: 1.861 MB / 419.3 MB, free: 9.789 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000952/0.5314, allocations: 192 kB / 419.5 MB, free: 9.602 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003238/0.5347, allocations: 1.008 MB / 420.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003297/0.538, allocations: 2.096 MB / 422.6 MB, free: 7.289 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.54, allocations: 1.093 MB / 423.7 MB, free: 6.859 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.5516, allocations: 7.558 MB / 431.3 MB, free: 300 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.3e-06/0.5516, allocations: 0 / 431.3 MB, free: 300 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.881e-06/0.5516, allocations: 0 / 431.3 MB, free: 300 kB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002086/0.5518, allocations: 0 / 431.3 MB, free: 300 kB / 330.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.01555/0.5674, allocations: 5.628 MB / 436.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5675, allocations: 8.031 kB / 436.9 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05347/0.621, allocations: 8.037 MB / 444.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01073/0.6317, allocations: 4.273 MB / 449.2 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00035/0.6321, allocations: 311.4 kB / 449.5 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001785/0.6339, allocations: 445.9 kB / 450 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02823/0.6622, allocations: 12.32 MB / 462.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002271/0.6625, allocations: 58.88 kB / 462.3 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001021/0.6635, allocations: 197.2 kB / 462.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004123/0.6676, allocations: 2.082 MB / 464.6 MB, free: 4.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0271/0.6948, allocations: 10.43 MB / 475 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07875/0.7736, allocations: 47.05 MB / 0.5099 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01559/0.7892, allocations: 4.492 MB / 0.5142 GB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2412/1.03, allocations: 10.12 MB / 0.5241 GB, free: 157.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/1.031, allocations: 49.69 kB / 0.5242 GB, free: 157 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 6.623e-06/1.031, allocations: 0 / 0.5242 GB, free: 157 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.07015/1.101, allocations: 19.83 MB / 0.5435 GB, free: 150.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/1.101, allocations: 200 kB / 0.5437 GB, free: 150.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00873/1.11, allocations: 5.03 MB / 0.5486 GB, free: 148.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003999/1.11, allocations: 65.62 kB / 0.5487 GB, free: 148.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002439/1.112, allocations: 3.602 MB / 0.5522 GB, free: 145.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.114, allocations: 0.8322 MB / 0.553 GB, free: 145.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005114/1.114, allocations: 129.7 kB / 0.5532 GB, free: 145.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003826/1.114, allocations: 0.5872 MB / 0.5537 GB, free: 144.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004866/1.119, allocations: 2.334 MB / 0.556 GB, free: 143.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006443/1.126, allocations: 6.272 MB / 0.5621 GB, free: 135.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006552/1.132, allocations: 3.747 MB / 0.5658 GB, free: 131.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.133, allocations: 40 kB / 0.5658 GB, free: 131.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.01983/1.152, allocations: 9.004 MB / 0.5746 GB, free: 122.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.153, allocations: 71.81 kB / 0.5747 GB, free: 122.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/1.153, allocations: 136 kB / 0.5748 GB, free: 122.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/1.157, allocations: 1.089 MB / 0.5759 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005911/1.163, allocations: 1.501 MB / 0.5774 GB, free: 119.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/1.174, allocations: 8.389 MB / 0.5855 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006073/1.181, allocations: 368.3 kB / 0.5859 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001059/1.182, allocations: 396 kB / 0.5863 GB, free: 110.3 MB / 426.7 MB 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.005258/1.187, allocations: 2.563 MB / 0.5888 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009683/1.188, allocations: 434.4 kB / 0.5892 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009001/1.197, allocations: 3.888 MB / 0.593 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-05/1.197, allocations: 26.25 kB / 0.593 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/1.197, allocations: 4 kB / 0.593 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-05/1.197, allocations: 11.97 kB / 0.593 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02329/1.22, allocations: 9.772 MB / 0.6026 GB, free: 93.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.75e-05/1.221, allocations: 3.266 kB / 0.6026 GB, free: 93.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/1.223, allocations: 351.9 kB / 0.6029 GB, free: 93.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003453/1.226, allocations: 0.8477 MB / 0.6037 GB, free: 92.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004154/1.227, allocations: 37.25 kB / 0.6038 GB, free: 92.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/1.238, allocations: 7.539 MB / 0.6111 GB, free: 84.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/1.238, allocations: 3.984 kB / 0.6111 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01259/1.25, allocations: 6.641 MB / 0.6176 GB, free: 77.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/1.253, allocations: 0.7649 MB / 0.6184 GB, free: 77.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/1.254, allocations: 41 kB / 0.6184 GB, free: 77.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002714/1.256, allocations: 115.9 kB / 0.6185 GB, free: 76.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006165/1.257, allocations: 133.8 kB / 0.6187 GB, free: 76.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002338/1.257, allocations: 56.61 kB / 0.6187 GB, free: 76.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006371/1.264, allocations: 3.221 MB / 0.6219 GB, free: 73.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.209e-06/1.264, allocations: 0 / 0.6219 GB, free: 73.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00728/1.271, allocations: 1.225 MB / 0.623 GB, free: 72.29 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.0007708/1.272, allocations: 190.8 kB / 0.6232 GB, free: 72.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.284, allocations: 5.895 MB / 0.629 GB, free: 66.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.659e-06/1.284, allocations: 4 kB / 0.629 GB, free: 66.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004146/1.288, allocations: 2.082 MB / 0.631 GB, free: 64.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.291, allocations: 0.529 MB / 0.6315 GB, free: 63.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02529/1.317, allocations: 14.13 MB / 0.6453 GB, free: 49.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00722/1.324, allocations: 4.103 MB / 0.6493 GB, free: 45.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/1.325, allocations: 343.4 kB / 0.6497 GB, free: 44.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.597e-06/1.325, allocations: 0 / 0.6497 GB, free: 44.95 MB / 426.7 MB Notification: Performance of Templates: time 0.3827/1.708, allocations: 112.7 MB / 0.7598 GB, free: 77.57 MB / 426.7 MB