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.281/2.281, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.189e-05, allocations: 0 / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4328/0.4328, allocations: 54.86 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.6241, allocations: 103.2 MB / 467.9 MB, free: 9.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/0.6245, allocations: 87.89 kB / 467.9 MB, free: 9.141 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773/2.397, allocations: 284.9 MB / 0.7352 GB, free: 42.31 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.216e-06/2.397, allocations: 0 / 0.7352 GB, free: 42.31 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001087/2.398, allocations: 279.3 kB / 0.7355 GB, free: 42.3 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.05415/2.452, allocations: 13.19 MB / 0.7484 GB, free: 37.14 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/2.452, allocations: 10.31 kB / 0.7484 GB, free: 37.14 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0137/2.466, allocations: 2.694 MB / 0.751 GB, free: 36.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1341/2.6, allocations: 18.53 MB / 0.7691 GB, free: 35.97 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05239/2.653, allocations: 14.89 MB / 0.7837 GB, free: 34.45 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001467/2.654, allocations: 1.102 MB / 0.7847 GB, free: 34.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009274/2.664, allocations: 1.468 MB / 0.7862 GB, free: 34.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1132/2.777, allocations: 36.22 MB / 0.8215 GB, free: 26.25 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0011/2.778, allocations: 133.1 kB / 0.8217 GB, free: 26.18 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00846/2.787, allocations: 0.6675 MB / 0.8223 GB, free: 25.61 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007748/2.794, allocations: 3.718 MB / 0.826 GB, free: 22.55 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09834/2.893, allocations: 32.53 MB / 0.8577 GB, free: 9.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6716/3.564, allocations: 140.4 MB / 0.9948 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05598/3.62, allocations: 15.61 MB / 1.01 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01945/3.64, allocations: 9.558 MB / 1.019 GB, free: 28.76 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09983/3.74, allocations: 35.73 MB / 1.054 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.651e-05/3.74, allocations: 111.4 kB / 1.054 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=747): time 1.22e-05/3.74, allocations: 0 / 1.054 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=829): time 0.7309/4.471, allocations: 70.03 MB / 1.123 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/4.471, allocations: 313.4 kB / 1.123 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02488/4.496, allocations: 9.274 MB / 1.132 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001944/4.498, allocations: 139.6 kB / 1.132 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00827/4.506, allocations: 9.484 MB / 1.142 GB, free: 99.32 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005071/4.511, allocations: 2.993 MB / 1.144 GB, free: 97.54 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003547/4.515, allocations: 355.1 kB / 1.145 GB, free: 97.54 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002294/4.517, allocations: 1.109 MB / 1.146 GB, free: 97.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02072/4.538, allocations: 8.117 MB / 1.154 GB, free: 97.14 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02784/4.566, allocations: 17.67 MB / 1.171 GB, free: 85.08 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02849/4.595, allocations: 12.07 MB / 1.183 GB, free: 82.47 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005021/4.595, allocations: 96.25 kB / 1.183 GB, free: 82.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2401) (initialization): time 0.07605/4.671, allocations: 27.16 MB / 1.209 GB, free: 73.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002979/4.672, allocations: 147.2 kB / 1.21 GB, free: 73.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000533/4.672, allocations: 331.4 kB / 1.21 GB, free: 73.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01141/4.684, allocations: 2.401 MB / 1.212 GB, free: 73.11 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02895/4.713, allocations: 4.282 MB / 1.216 GB, free: 72.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02944/4.742, allocations: 14.36 MB / 1.23 GB, free: 60.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02159/4.764, allocations: 1.095 MB / 1.232 GB, free: 59.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004644/4.768, allocations: 0.9986 MB / 1.233 GB, free: 58.74 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 () * 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.007944/4.776, allocations: 1.41 MB / 1.234 GB, free: 57.33 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003947/4.78, allocations: 1.018 MB / 1.235 GB, free: 56.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0477/4.828, allocations: 15.79 MB / 1.25 GB, free: 42.97 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002973/4.828, allocations: 159.1 kB / 1.25 GB, free: 42.83 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.776e-05/4.828, allocations: 12 kB / 1.251 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001888/4.829, allocations: 35.25 kB / 1.251 GB, free: 42.81 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5189/5.348, allocations: 34.73 MB / 1.284 GB, free: 91.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001086/5.348, allocations: 8.969 kB / 1.284 GB, free: 91.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01469/5.363, allocations: 1.396 MB / 1.286 GB, free: 91.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01072/5.373, allocations: 1.769 MB / 1.288 GB, free: 91.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002118/5.375, allocations: 132.9 kB / 1.288 GB, free: 91.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03235/5.408, allocations: 12.9 MB / 1.3 GB, free: 88.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.287e-05/5.408, allocations: 11.19 kB / 1.3 GB, free: 88.48 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06571/5.474, allocations: 26.45 MB / 1.326 GB, free: 85.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009453/5.483, allocations: 2.253 MB / 1.328 GB, free: 85.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004324/5.488, allocations: 128.4 kB / 1.328 GB, free: 85.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01152/5.499, allocations: 0.5341 MB / 1.329 GB, free: 85.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002804/5.502, allocations: 451 kB / 1.329 GB, free: 85.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001246/5.503, allocations: 190 kB / 1.33 GB, free: 85.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01732/5.521, allocations: 6.411 MB / 1.336 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.312e-06/5.521, allocations: 0 / 1.336 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02214/5.543, allocations: 3.436 MB / 1.339 GB, free: 85.23 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 () * 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.06537/5.608, allocations: 27.91 MB / 1.366 GB, free: 78.29 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04633/5.655, allocations: 19.51 MB / 1.386 GB, free: 72.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/5.655, allocations: 0 / 1.386 GB, free: 72.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01952/5.674, allocations: 7.642 MB / 1.393 GB, free: 69.27 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01113/5.685, allocations: 1.264 MB / 1.394 GB, free: 68.72 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1211/5.807, allocations: 35.98 MB / 1.429 GB, free: 41.62 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02858/5.835, allocations: 10.59 MB / 1.44 GB, free: 33.99 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02075/5.856, allocations: 7.584 MB / 1.447 GB, free: 26.96 MB / 0.5417 GB Notification: Performance of SimCode: time 1.824e-06/5.856, allocations: 0 / 1.447 GB, free: 26.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.823/14.68, allocations: 411.4 MB / 1.849 GB, free: 59.11 MB / 0.5886 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