Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) 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 2.096/2.096, allocations: 194.9 MB / 212.3 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003894, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4335/0.5381, allocations: 92.84 MB / 401.8 MB, free: 18.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000364/0.5386, allocations: 92.55 kB / 401.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4471/0.9857, allocations: 107.1 MB / 0.4971 GB, free: 13.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.9858, allocations: 0 / 0.4971 GB, free: 13.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005714/0.9864, allocations: 108 kB / 0.4972 GB, free: 13.32 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.03458/1.021, allocations: 5.72 MB / 0.5028 GB, free: 7.523 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/1.021, allocations: 12.03 kB / 0.5028 GB, free: 7.512 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05251/1.074, allocations: 6.935 MB / 0.5096 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02716/1.101, allocations: 6.835 MB / 0.5162 GB, free: 9.664 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006001/1.101, allocations: 406.7 kB / 0.5166 GB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003526/1.105, allocations: 0.5387 MB / 0.5171 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3411/1.446, allocations: 12.81 MB / 0.5297 GB, free: 72.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003295/1.447, allocations: 69.47 kB / 0.5297 GB, free: 72.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001539/1.448, allocations: 257.4 kB / 0.53 GB, free: 72.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002175/1.45, allocations: 1.128 MB / 0.5311 GB, free: 72.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03525/1.486, allocations: 10.48 MB / 0.5413 GB, free: 72.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08644/1.572, allocations: 57.08 MB / 0.5971 GB, free: 38.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/1.59, allocations: 4.418 MB / 0.6014 GB, free: 36.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02536/1.615, allocations: 9.973 MB / 0.6111 GB, free: 31.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/1.615, allocations: 55.25 kB / 0.6112 GB, free: 31.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 8.586e-06/1.615, allocations: 3.938 kB / 0.6112 GB, free: 31.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.09072/1.706, allocations: 19.35 MB / 0.6301 GB, free: 24.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/1.706, allocations: 202.6 kB / 0.6303 GB, free: 23.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01153/1.718, allocations: 4.757 MB / 0.6349 GB, free: 22.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005641/1.719, allocations: 57.23 kB / 0.635 GB, free: 22.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003383/1.722, allocations: 3.611 MB / 0.6385 GB, free: 19.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001369/1.723, allocations: 0.8346 MB / 0.6393 GB, free: 18.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008751/1.724, allocations: 127.6 kB / 0.6394 GB, free: 18.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004604/1.725, allocations: 0.5923 MB / 0.64 GB, free: 18.28 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006027/1.731, allocations: 2.26 MB / 0.6422 GB, free: 17.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008194/1.739, allocations: 6.218 MB / 0.6483 GB, free: 11.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008306/1.747, allocations: 3.67 MB / 0.6519 GB, free: 9.969 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/1.748, allocations: 38.12 kB / 0.6519 GB, free: 9.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02343/1.771, allocations: 8.769 MB / 0.6605 GB, free: 2.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.543e-05/1.771, allocations: 64.22 kB / 0.6605 GB, free: 2.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.771, allocations: 144 kB / 0.6607 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004189/1.776, allocations: 0.9344 MB / 0.6616 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009171/1.785, allocations: 1.502 MB / 0.663 GB, free: 428 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/1.801, allocations: 7.615 MB / 0.6705 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007703/1.809, allocations: 352.9 kB / 0.6708 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00188/1.811, allocations: 400.8 kB / 0.6712 GB, free: 8.668 MB / 426.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.008075/1.819, allocations: 2.564 MB / 0.6737 GB, free: 6.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/1.82, allocations: 427.7 kB / 0.6741 GB, free: 5.988 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/1.832, allocations: 3.61 MB / 0.6776 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.516e-05/1.832, allocations: 24 kB / 0.6777 GB, free: 2.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/1.832, allocations: 8 kB / 0.6777 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.974e-05/1.832, allocations: 17.69 kB / 0.6777 GB, free: 2.969 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3418/2.174, allocations: 9.31 MB / 0.6868 GB, free: 84.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.23e-05/2.174, allocations: 3.5 kB / 0.6868 GB, free: 84.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003491/2.178, allocations: 343 kB / 0.6871 GB, free: 84.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004188/2.182, allocations: 0.6911 MB / 0.6878 GB, free: 84.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004975/2.183, allocations: 36.86 kB / 0.6878 GB, free: 84.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/2.196, allocations: 6.746 MB / 0.6944 GB, free: 81.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/2.196, allocations: 1.031 kB / 0.6944 GB, free: 81.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.018/2.214, allocations: 6.25 MB / 0.7005 GB, free: 80.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003007/2.217, allocations: 0.7369 MB / 0.7012 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001562/2.219, allocations: 36.22 kB / 0.7013 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003648/2.222, allocations: 108.5 kB / 0.7014 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006616/2.223, allocations: 135.2 kB / 0.7015 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002116/2.223, allocations: 53.91 kB / 0.7015 GB, free: 80.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007769/2.231, allocations: 2.997 MB / 0.7045 GB, free: 80.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.231, allocations: 1.656 kB / 0.7045 GB, free: 80.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008571/2.24, allocations: 1.185 MB / 0.7056 GB, free: 80.72 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.0007806/2.24, allocations: 180.3 kB / 0.7058 GB, free: 80.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01426/2.255, allocations: 5.758 MB / 0.7114 GB, free: 80.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.255, allocations: 0 / 0.7114 GB, free: 80.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005352/2.26, allocations: 1.994 MB / 0.7134 GB, free: 80.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004517/2.265, allocations: 0.5405 MB / 0.7139 GB, free: 80.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03307/2.298, allocations: 14.04 MB / 0.7276 GB, free: 74.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009774/2.308, allocations: 4.109 MB / 0.7316 GB, free: 74.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002045/2.31, allocations: 332 kB / 0.7319 GB, free: 74.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/2.31, allocations: 1.422 kB / 0.7319 GB, free: 74.02 MB / 426.7 MB Notification: Performance of Templates: time 0.5162/2.826, allocations: 111.8 MB / 0.8412 GB, free: 82.55 MB / 426.7 MB