Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.37/2.37, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.056e-05/4.085e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4193, allocations: 54.85 MB / 364.6 MB, free: 5.574 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1949/0.6143, allocations: 104 MB / 468.6 MB, free: 8.422 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.6147, allocations: 75.95 kB / 468.7 MB, free: 8.348 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036/1.651, allocations: 163.6 MB / 0.6174 GB, free: 74.88 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.651, allocations: 3.938 kB / 0.6174 GB, free: 74.88 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004863/1.652, allocations: 156 kB / 0.6176 GB, free: 74.72 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.03052/1.682, allocations: 7.511 MB / 0.6249 GB, free: 67.12 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/1.682, allocations: 8.031 kB / 0.6249 GB, free: 67.12 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008057/1.69, allocations: 1.545 MB / 0.6264 GB, free: 65.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0755/1.766, allocations: 10.05 MB / 0.6363 GB, free: 55.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03122/1.797, allocations: 8.413 MB / 0.6445 GB, free: 46.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008096/1.798, allocations: 0.6256 MB / 0.6451 GB, free: 46.35 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005271/1.803, allocations: 0.8277 MB / 0.6459 GB, free: 45.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06026/1.864, allocations: 20.35 MB / 0.6658 GB, free: 23.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005818/1.864, allocations: 87.22 kB / 0.6659 GB, free: 23.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004843/1.869, allocations: 395.7 kB / 0.6662 GB, free: 23.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004402/1.874, allocations: 2.105 MB / 0.6683 GB, free: 21.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05121/1.925, allocations: 17.77 MB / 0.6856 GB, free: 3.316 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8465/2.772, allocations: 85.05 MB / 0.7687 GB, free: 32.96 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04096/2.813, allocations: 7.987 MB / 0.7765 GB, free: 31.69 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01574/2.828, allocations: 5.069 MB / 0.7815 GB, free: 31.64 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006916/2.829, allocations: 63.48 kB / 0.7815 GB, free: 31.63 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001017/2.829, allocations: 89.05 kB / 0.7816 GB, free: 31.59 MB / 474.8 MB Notification: Performance of pre-optimization done (n=450): time 1.641e-05/2.829, allocations: 3.156 kB / 0.7816 GB, free: 31.59 MB / 474.8 MB Notification: Performance of matching and sorting (n=501): time 0.1877/3.017, allocations: 37.63 MB / 0.8183 GB, free: 20.15 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/3.017, allocations: 227.4 kB / 0.8186 GB, free: 19.93 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01419/3.031, allocations: 5.68 MB / 0.8241 GB, free: 17.96 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001189/3.033, allocations: 92.69 kB / 0.8242 GB, free: 17.88 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004689/3.037, allocations: 5.523 MB / 0.8296 GB, free: 13.66 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003014/3.04, allocations: 1.811 MB / 0.8314 GB, free: 12.32 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001816/3.042, allocations: 224.6 kB / 0.8316 GB, free: 12.15 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001084/3.043, allocations: 0.7971 MB / 0.8324 GB, free: 11.63 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01219/3.056, allocations: 4.805 MB / 0.837 GB, free: 9.734 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01751/3.073, allocations: 10.95 MB / 0.8477 GB, free: 12.71 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01947/3.093, allocations: 7.296 MB / 0.8549 GB, free: 6.691 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002716/3.093, allocations: 64 kB / 0.8549 GB, free: 6.629 MB / 490.8 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.06154/3.155, allocations: 16.75 MB / 0.8713 GB, free: 8.375 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002858/3.155, allocations: 96 kB / 0.8714 GB, free: 8.281 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006212/3.155, allocations: 212 kB / 0.8716 GB, free: 8.074 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0117/3.167, allocations: 1.707 MB / 0.8732 GB, free: 6.746 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02514/3.192, allocations: 2.605 MB / 0.8758 GB, free: 4.508 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03328/3.226, allocations: 14.09 MB / 0.8896 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/3.239, allocations: 0.6626 MB / 0.8902 GB, free: 7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003335/3.242, allocations: 0.629 MB / 0.8908 GB, free: 6.383 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1363): * Single equations (assignments): 1350 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004932/3.247, allocations: 0.9247 MB / 0.8917 GB, free: 5.461 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0026/3.25, allocations: 0.6169 MB / 0.8923 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4387/3.689, allocations: 10.49 MB / 0.9026 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002641/3.689, allocations: 89.2 kB / 0.9026 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-05/3.689, allocations: 11.59 kB / 0.9027 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000149/3.689, allocations: 24.58 kB / 0.9027 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07049/3.76, allocations: 21.58 MB / 0.9238 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.58e-05/3.76, allocations: 11.91 kB / 0.9238 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007976/3.768, allocations: 0.7964 MB / 0.9245 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006967/3.775, allocations: 1.359 MB / 0.9259 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001222/3.776, allocations: 88.06 kB / 0.926 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02142/3.798, allocations: 12.87 MB / 0.9385 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.591e-05/3.798, allocations: 17.38 kB / 0.9385 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03764/3.835, allocations: 17.13 MB / 0.9553 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005698/3.841, allocations: 1.383 MB / 0.9566 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002681/3.844, allocations: 87.78 kB / 0.9567 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007042/3.851, allocations: 308.3 kB / 0.957 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00181/3.853, allocations: 298.2 kB / 0.9573 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006194/3.854, allocations: 131.2 kB / 0.9574 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01058/3.864, allocations: 3.934 MB / 0.9613 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.092e-06/3.864, allocations: 0.9375 kB / 0.9613 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01478/3.879, allocations: 2.037 MB / 0.9632 GB, free: 109.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 39,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0393/3.918, allocations: 19.89 MB / 0.9827 GB, free: 98.78 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02722/3.946, allocations: 11.99 MB / 0.9944 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/3.946, allocations: 4 kB / 0.9944 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01174/3.957, allocations: 4.867 MB / 0.9991 GB, free: 87.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006961/3.964, allocations: 0.7265 MB / 0.9998 GB, free: 86.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0661/4.031, allocations: 21.13 MB / 1.02 GB, free: 68.02 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0145/4.045, allocations: 6.282 MB / 1.027 GB, free: 63.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01086/4.056, allocations: 4.167 MB / 1.031 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of SimCode: time 1.312e-06/4.056, allocations: 0 / 1.031 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.736/10.79, allocations: 309.2 MB / 1.333 GB, free: 156.2 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat