Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.117/2.117, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004418/0.0004419, allocations: 12 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.356, allocations: 48.7 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1756/0.5316, allocations: 96.85 MB / 428.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.532, allocations: 79.95 kB / 428.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8989/1.431, allocations: 163.4 MB / 0.5778 GB, free: 17.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.431, allocations: 0 / 0.5778 GB, free: 17.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004487/1.431, allocations: 156 kB / 0.5779 GB, free: 16.96 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: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.03116/1.463, allocations: 8.007 MB / 0.5858 GB, free: 8.855 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/1.463, allocations: 8.031 kB / 0.5858 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007285/1.47, allocations: 1.541 MB / 0.5873 GB, free: 7.297 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0918/1.562, allocations: 10.05 MB / 0.5971 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03687/1.599, allocations: 8.424 MB / 0.6053 GB, free: 4.699 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/1.6, allocations: 0.6217 MB / 0.6059 GB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00574/1.606, allocations: 0.8277 MB / 0.6067 GB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3845/1.99, allocations: 20.52 MB / 0.6268 GB, free: 62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006064/1.991, allocations: 91.06 kB / 0.6268 GB, free: 62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004246/1.995, allocations: 400 kB / 0.6272 GB, free: 62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005189/2, allocations: 2.101 MB / 0.6293 GB, free: 61.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05369/2.054, allocations: 18.08 MB / 0.6469 GB, free: 61.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1419/2.196, allocations: 84.98 MB / 0.7299 GB, free: 9.676 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.028/2.224, allocations: 8.066 MB / 0.7378 GB, free: 6.293 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005591/2.225, allocations: 63.11 kB / 0.7379 GB, free: 6.281 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.933e-05/2.225, allocations: 75.88 kB / 0.7379 GB, free: 6.211 MB / 426.7 MB Notification: Performance of pre-optimization done (n=450): time 1.03e-05/2.225, allocations: 2.062 kB / 0.7379 GB, free: 6.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=501): time 0.1823/2.407, allocations: 44.11 MB / 0.781 GB, free: 7.699 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001788/2.407, allocations: 227 kB / 0.7812 GB, free: 7.434 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01585/2.423, allocations: 5.732 MB / 0.7868 GB, free: 2.621 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001253/2.424, allocations: 97.7 kB / 0.7869 GB, free: 2.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3418/2.766, allocations: 5.509 MB / 0.7923 GB, free: 98.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003187/2.769, allocations: 1.816 MB / 0.7941 GB, free: 97.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001648/2.771, allocations: 228.6 kB / 0.7943 GB, free: 97.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00109/2.772, allocations: 0.7961 MB / 0.7951 GB, free: 97.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01369/2.786, allocations: 4.91 MB / 0.7999 GB, free: 97.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01871/2.805, allocations: 11.04 MB / 0.8106 GB, free: 89.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01779/2.823, allocations: 7.341 MB / 0.8178 GB, free: 89.78 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003782/2.823, allocations: 63.5 kB / 0.8179 GB, free: 89.78 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.04795/2.871, allocations: 16.95 MB / 0.8344 GB, free: 88.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002124/2.871, allocations: 95.81 kB / 0.8345 GB, free: 88.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003817/2.872, allocations: 215 kB / 0.8347 GB, free: 88.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009117/2.881, allocations: 1.719 MB / 0.8364 GB, free: 88.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0228/2.904, allocations: 2.603 MB / 0.8389 GB, free: 88.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03388/2.938, allocations: 14.36 MB / 0.853 GB, free: 79.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01811/2.956, allocations: 0.6629 MB / 0.8536 GB, free: 79.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003068/2.959, allocations: 0.63 MB / 0.8542 GB, free: 79.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1362): * Single equations (assignments): 1349 * 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.01323/2.972, allocations: 4.192 MB / 0.8583 GB, free: 77.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002167/2.974, allocations: 0.6184 MB / 0.8589 GB, free: 77.28 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02931/3.004, allocations: 9.726 MB / 0.8684 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001894/3.004, allocations: 88.94 kB / 0.8685 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-05/3.004, allocations: 13.81 kB / 0.8685 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001314/3.004, allocations: 24.97 kB / 0.8686 GB, free: 73.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06375/3.068, allocations: 21.71 MB / 0.8898 GB, free: 60.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.192e-05/3.068, allocations: 15.94 kB / 0.8898 GB, free: 60.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007356/3.075, allocations: 0.7922 MB / 0.8905 GB, free: 59.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006649/3.082, allocations: 1.36 MB / 0.8919 GB, free: 58.76 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001146/3.083, allocations: 92.98 kB / 0.892 GB, free: 58.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/3.105, allocations: 13.26 MB / 0.9049 GB, free: 46.24 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-05/3.105, allocations: 19.69 kB / 0.9049 GB, free: 46.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03607/3.141, allocations: 17.32 MB / 0.9218 GB, free: 30.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004551/3.146, allocations: 1.392 MB / 0.9232 GB, free: 28.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001746/3.147, allocations: 89.09 kB / 0.9233 GB, free: 28.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005916/3.153, allocations: 315.6 kB / 0.9236 GB, free: 28.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00183/3.155, allocations: 295.4 kB / 0.9239 GB, free: 28.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005164/3.156, allocations: 131.7 kB / 0.924 GB, free: 28.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01027/3.166, allocations: 3.995 MB / 0.9279 GB, free: 25.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.82e-07/3.166, allocations: 0 / 0.9279 GB, free: 25.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02292/3.189, allocations: 2.038 MB / 0.9299 GB, free: 23.07 MB / 458.7 MB 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 () * Number of clocked 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.05809/3.247, allocations: 20.08 MB / 0.9495 GB, free: 4.504 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3791/3.626, allocations: 12.26 MB / 0.9615 GB, free: 91.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.039e-05/3.626, allocations: 2.188 kB / 0.9615 GB, free: 91.42 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01313/3.64, allocations: 4.924 MB / 0.9663 GB, free: 90.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006432/3.646, allocations: 0.7267 MB / 0.967 GB, free: 90.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5887/4.235, allocations: 223.4 MB / 1.185 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01702/4.252, allocations: 6.289 MB / 1.191 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01147/4.263, allocations: 4.156 MB / 1.195 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of SimCode: time 2.254e-06/4.264, allocations: 0 / 1.195 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.877/11.14, allocations: 308.4 MB / 1.497 GB, free: 135.2 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat