Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.419/2.419, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006152/0.0006154, allocations: 11.98 kB / 314.5 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3752/0.3759, allocations: 54.86 MB / 369.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.5649, allocations: 103.3 MB / 472.7 MB, free: 5.191 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/0.5653, allocations: 87.95 kB / 472.8 MB, free: 5.105 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.956/2.522, allocations: 284.6 MB / 0.7396 GB, free: 49.79 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.196e-06/2.522, allocations: 3.281 kB / 0.7396 GB, free: 49.79 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008682/2.523, allocations: 278.2 kB / 0.7398 GB, free: 49.78 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.05771/2.58, allocations: 14.11 MB / 0.7536 GB, free: 44.19 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/2.58, allocations: 10.09 kB / 0.7536 GB, free: 44.19 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01439/2.595, allocations: 2.703 MB / 0.7563 GB, free: 44.01 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1338/2.729, allocations: 18.52 MB / 0.7744 GB, free: 42.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05099/2.78, allocations: 14.94 MB / 0.7889 GB, free: 39.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001538/2.781, allocations: 1.097 MB / 0.79 GB, free: 39.09 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009695/2.791, allocations: 1.46 MB / 0.7914 GB, free: 38.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1136/2.905, allocations: 36.58 MB / 0.8272 GB, free: 8.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001119/2.906, allocations: 134.8 kB / 0.8273 GB, free: 8.117 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009603/2.915, allocations: 0.6618 MB / 0.8279 GB, free: 7.555 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0115/2.927, allocations: 3.714 MB / 0.8316 GB, free: 3.852 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1617/3.089, allocations: 33.11 MB / 0.8639 GB, free: 2.715 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7408/3.83, allocations: 140.4 MB / 1.001 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06449/3.894, allocations: 15.78 MB / 1.016 GB, free: 20.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09856/3.993, allocations: 35.74 MB / 1.051 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000138/3.993, allocations: 102.4 kB / 1.051 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=747): time 1.206e-05/3.993, allocations: 0 / 1.051 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of matching and sorting (n=829): time 0.8431/4.836, allocations: 85.1 MB / 1.134 GB, free: 120 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/4.836, allocations: 314.2 kB / 1.135 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02625/4.863, allocations: 9.364 MB / 1.144 GB, free: 119 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001898/4.865, allocations: 139.8 kB / 1.144 GB, free: 119 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008329/4.873, allocations: 9.479 MB / 1.153 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005151/4.878, allocations: 2.993 MB / 1.156 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003383/4.882, allocations: 360.2 kB / 1.157 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002383/4.884, allocations: 1.114 MB / 1.158 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02174/4.906, allocations: 8.318 MB / 1.166 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03455/4.94, allocations: 17.88 MB / 1.183 GB, free: 94.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02861/4.969, allocations: 12.18 MB / 1.195 GB, free: 84.96 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003673/4.969, allocations: 96 kB / 1.195 GB, free: 84.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.07729/5.047, allocations: 27.57 MB / 1.222 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002747/5.047, allocations: 144 kB / 1.222 GB, free: 61.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006179/5.048, allocations: 336.1 kB / 1.223 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01128/5.059, allocations: 2.404 MB / 1.225 GB, free: 58.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02847/5.088, allocations: 4.283 MB / 1.229 GB, free: 55.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03306/5.121, allocations: 14.83 MB / 1.244 GB, free: 42.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02181/5.143, allocations: 1.096 MB / 1.245 GB, free: 41.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004553/5.147, allocations: 0.9957 MB / 1.246 GB, free: 40.29 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1510 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2205): * Single equations (assignments): 2188 * Array equations: 15 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02275/5.17, allocations: 7.178 MB / 1.253 GB, free: 34.08 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004205/5.174, allocations: 1.014 MB / 1.254 GB, free: 33.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05051/5.225, allocations: 16.06 MB / 1.269 GB, free: 19.51 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002933/5.225, allocations: 166.5 kB / 1.27 GB, free: 19.37 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.499e-05/5.225, allocations: 12 kB / 1.27 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002014/5.225, allocations: 31.88 kB / 1.27 GB, free: 19.36 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5457/5.771, allocations: 34.96 MB / 1.304 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001152/5.771, allocations: 11.42 kB / 1.304 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01369/5.785, allocations: 1.397 MB / 1.305 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01014/5.795, allocations: 1.783 MB / 1.307 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001997/5.797, allocations: 133.8 kB / 1.307 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0285/5.826, allocations: 13.37 MB / 1.32 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.528e-06/5.826, allocations: 8.594 kB / 1.32 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0677/5.893, allocations: 26.85 MB / 1.346 GB, free: 97.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008952/5.902, allocations: 2.249 MB / 1.348 GB, free: 97.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004818/5.907, allocations: 124.4 kB / 1.349 GB, free: 97.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01169/5.919, allocations: 0.5336 MB / 1.349 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00289/5.922, allocations: 443.2 kB / 1.349 GB, free: 97.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00169/5.924, allocations: 198.7 kB / 1.35 GB, free: 97.02 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01849/5.942, allocations: 6.494 MB / 1.356 GB, free: 94.93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.072e-06/5.942, allocations: 2.312 kB / 1.356 GB, free: 94.93 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02416/5.967, allocations: 3.438 MB / 1.359 GB, free: 94.55 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.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 (655): * Single equations (assignments): 638 * Array equations: 15 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07178/6.038, allocations: 28.3 MB / 1.387 GB, free: 72.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0491/6.088, allocations: 19.88 MB / 1.406 GB, free: 55.99 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/6.088, allocations: 0 / 1.406 GB, free: 55.99 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02044/6.108, allocations: 7.799 MB / 1.414 GB, free: 49.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01117/6.119, allocations: 1.257 MB / 1.415 GB, free: 48.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.299/7.418, allocations: 373 MB / 1.78 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02987/7.448, allocations: 10.59 MB / 1.79 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02217/7.471, allocations: 7.583 MB / 1.797 GB, free: 166.1 MB / 0.6823 GB Notification: Performance of SimCode: time 1.694e-06/7.471, allocations: 0.875 kB / 1.797 GB, free: 166.1 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.067/16.54, allocations: 409.7 MB / 2.197 GB, free: 214.3 MB / 0.6823 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat