Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.606/1.606, allocations: 171.2 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.0003911, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07742/0.07784, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2889/0.3668, allocations: 57.45 MB / 330.1 MB, free: 500 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03694/0.4037, allocations: 13.47 MB / 343.6 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01276/0.4166, allocations: 287.3 kB / 343.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01055/0.4271, allocations: 2.936 MB / 346.8 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03161/0.4588, allocations: 8.28 MB / 355.1 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004954/0.4638, allocations: 0.7996 MB / 355.9 MB, free: 9.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.05164/0.5155, allocations: 17.84 MB / 373.7 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01316/0.5287, allocations: 6.554 MB / 380.3 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003017/0.5318, allocations: 1.402 MB / 381.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003884/0.5357, allocations: 1.854 MB / 383.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001178/0.5369, allocations: 188 kB / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00335/0.5403, allocations: 1.007 MB / 384.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003368/0.5437, allocations: 2.088 MB / 386.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.5456, allocations: 1.088 MB / 387.9 MB, free: 9.562 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/0.5572, allocations: 7.552 MB / 395.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.5572, allocations: 0 / 395.4 MB, free: 1.992 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.5572, allocations: 3.938 kB / 395.4 MB, free: 1.988 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002898/0.5575, allocations: 0 / 395.4 MB, free: 1.988 MB / 314.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.02005/0.5776, allocations: 5.625 MB / 401.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.5777, allocations: 8.031 kB / 401.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08587/0.6635, allocations: 8.028 MB / 409.1 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01334/0.6769, allocations: 4.267 MB / 413.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.6773, allocations: 316 kB / 413.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001301/0.6786, allocations: 427.6 kB / 414.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03051/0.7091, allocations: 12 MB / 426.1 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/0.7094, allocations: 51.53 kB / 426.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008329/0.7102, allocations: 195.8 kB / 426.3 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005115/0.7154, allocations: 2.093 MB / 428.4 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03016/0.7455, allocations: 9.989 MB / 438.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3103/1.056, allocations: 46.5 MB / 484.9 MB, free: 95.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02108/1.077, allocations: 4.249 MB / 489.2 MB, free: 92.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02106/1.098, allocations: 9.659 MB / 498.8 MB, free: 86.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/1.098, allocations: 55.84 kB / 498.9 MB, free: 85.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 6.272e-06/1.098, allocations: 0 / 498.9 MB, free: 85.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.08607/1.184, allocations: 20.43 MB / 0.5071 GB, free: 65.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/1.184, allocations: 205.2 kB / 0.5073 GB, free: 65.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009326/1.194, allocations: 5.042 MB / 0.5123 GB, free: 60.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000568/1.194, allocations: 54.64 kB / 0.5123 GB, free: 60.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004072/1.198, allocations: 3.749 MB / 0.516 GB, free: 56.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001474/1.2, allocations: 0.8285 MB / 0.5168 GB, free: 55.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008073/1.201, allocations: 132 kB / 0.5169 GB, free: 55.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005297/1.201, allocations: 0.575 MB / 0.5175 GB, free: 54.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007984/1.209, allocations: 2.32 MB / 0.5197 GB, free: 52.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01102/1.22, allocations: 6.231 MB / 0.5258 GB, free: 44.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/1.232, allocations: 3.752 MB / 0.5295 GB, free: 40.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/1.232, allocations: 43.95 kB / 0.5295 GB, free: 40.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.0326/1.264, allocations: 9.149 MB / 0.5385 GB, free: 31.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001363/1.265, allocations: 64 kB / 0.5385 GB, free: 31.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/1.265, allocations: 140 kB / 0.5386 GB, free: 31.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006632/1.271, allocations: 1.097 MB / 0.5397 GB, free: 30.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01158/1.283, allocations: 1.505 MB / 0.5412 GB, free: 28.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02013/1.303, allocations: 8.376 MB / 0.5494 GB, free: 19.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009309/1.313, allocations: 360.4 kB / 0.5497 GB, free: 19.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00131/1.314, allocations: 400.8 kB / 0.5501 GB, free: 19.19 MB / 362.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.007109/1.321, allocations: 2.574 MB / 0.5526 GB, free: 16.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.322, allocations: 426.5 kB / 0.553 GB, free: 16.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/1.337, allocations: 3.853 MB / 0.5568 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.974e-05/1.337, allocations: 19.92 kB / 0.5568 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/1.337, allocations: 0 / 0.5568 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00349/1.34, allocations: 0.7798 MB / 0.5576 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001573/1.342, allocations: 35.98 kB / 0.5576 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004469/1.347, allocations: 115.9 kB / 0.5577 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009074/1.348, allocations: 149.8 kB / 0.5578 GB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01366/1.361, allocations: 4.371 MB / 0.5621 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01196/1.373, allocations: 5.905 MB / 0.5679 GB, free: 0.9102 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.2306/1.604, allocations: 1.539 MB / 0.5694 GB, free: 116.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007811/1.612, allocations: 3.225 MB / 0.5725 GB, free: 116.3 MB / 362.7 MB Notification: Performance of Backend: time 9.22e-07/1.612, allocations: 0 / 0.5725 GB, free: 116.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01393/1.626, allocations: 4.686 MB / 0.5771 GB, free: 114.7 MB / 362.7 MB Notification: Performance of SimCode: time 0.02754/1.653, allocations: 13.63 MB / 0.5904 GB, free: 107.7 MB / 362.7 MB Notification: Performance of Templates: time 0.1415/1.795, allocations: 52.6 MB / 0.6418 GB, free: 60.71 MB / 362.7 MB