Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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.Parts.Rotor1D.GearConstraint2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.191/2.191, allocations: 209.2 MB / 224.8 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004824, allocations: 12 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4165, allocations: 48.71 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2234/0.64, allocations: 96.07 MB / 427.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004058/0.6404, allocations: 83.95 kB / 427.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.748/2.388, allocations: 283.8 MB / 0.6947 GB, free: 39.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.106e-06/2.388, allocations: 0 / 0.6947 GB, free: 39.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009696/2.389, allocations: 280.5 kB / 0.6949 GB, free: 39.45 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.0606/2.45, allocations: 14.1 MB / 0.7087 GB, free: 33.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/2.45, allocations: 10 kB / 0.7087 GB, free: 33.84 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01538/2.466, allocations: 2.692 MB / 0.7114 GB, free: 33.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1357/2.601, allocations: 18.43 MB / 0.7294 GB, free: 32.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05082/2.652, allocations: 14.91 MB / 0.7439 GB, free: 25.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001514/2.654, allocations: 1.1 MB / 0.745 GB, free: 24.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01042/2.664, allocations: 1.458 MB / 0.7464 GB, free: 23.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1173/2.782, allocations: 35.82 MB / 0.7814 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001184/2.783, allocations: 134.8 kB / 0.7815 GB, free: 2.574 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009503/2.792, allocations: 0.6622 MB / 0.7822 GB, free: 2.012 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009399/2.802, allocations: 3.722 MB / 0.7858 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5126/3.314, allocations: 32.11 MB / 0.8172 GB, free: 59.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3418/3.656, allocations: 139.1 MB / 0.9531 GB, free: 13.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0579/3.714, allocations: 15.25 MB / 0.9679 GB, free: 5.508 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4554/4.17, allocations: 34.78 MB / 1.002 GB, free: 99.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/4.17, allocations: 102 kB / 1.002 GB, free: 99.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=745): time 1.345e-05/4.17, allocations: 0 / 1.002 GB, free: 99.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=827): time 0.4147/4.585, allocations: 80.3 MB / 1.08 GB, free: 70.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/4.585, allocations: 304.6 kB / 1.081 GB, free: 70.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02414/4.609, allocations: 9.366 MB / 1.09 GB, free: 62.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001883/4.611, allocations: 132.4 kB / 1.09 GB, free: 62.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008024/4.619, allocations: 9.483 MB / 1.099 GB, free: 53.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00491/4.624, allocations: 2.991 MB / 1.102 GB, free: 51.22 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003236/4.627, allocations: 358.1 kB / 1.103 GB, free: 50.87 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.002063/4.629, allocations: 1.103 MB / 1.104 GB, free: 49.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0207/4.65, allocations: 8.214 MB / 1.112 GB, free: 42.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02741/4.677, allocations: 17.78 MB / 1.129 GB, free: 22.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02818/4.706, allocations: 12.06 MB / 1.141 GB, free: 12.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003538/4.706, allocations: 99.94 kB / 1.141 GB, free: 12.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=2399) (initialization): time 0.48/5.186, allocations: 27.34 MB / 1.168 GB, free: 78.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002707/5.186, allocations: 150.5 kB / 1.168 GB, free: 78.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006175/5.187, allocations: 329.9 kB / 1.168 GB, free: 78.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01142/5.199, allocations: 2.411 MB / 1.17 GB, free: 78.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02851/5.227, allocations: 4.265 MB / 1.175 GB, free: 78.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0311/5.258, allocations: 14.84 MB / 1.189 GB, free: 75.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02041/5.279, allocations: 1.079 MB / 1.19 GB, free: 75.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004594/5.283, allocations: 0.9949 MB / 1.191 GB, free: 75.33 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1513 * 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 (2203): * Single equations (assignments): 2186 * 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.02137/5.305, allocations: 7.178 MB / 1.198 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003951/5.309, allocations: 1.007 MB / 1.199 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04976/5.359, allocations: 15.81 MB / 1.214 GB, free: 73.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003071/5.359, allocations: 166.6 kB / 1.215 GB, free: 73.87 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.032e-05/5.359, allocations: 13.03 kB / 1.215 GB, free: 73.87 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001864/5.359, allocations: 34.97 kB / 1.215 GB, free: 73.87 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1087/5.468, allocations: 34.78 MB / 1.249 GB, free: 61.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001158/5.468, allocations: 7.281 kB / 1.249 GB, free: 61.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01354/5.482, allocations: 1.391 MB / 1.25 GB, free: 60.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01013/5.492, allocations: 1.777 MB / 1.252 GB, free: 59.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002042/5.494, allocations: 130.2 kB / 1.252 GB, free: 58.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02843/5.522, allocations: 13.37 MB / 1.265 GB, free: 47.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/5.522, allocations: 8 kB / 1.265 GB, free: 47.22 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09016/5.613, allocations: 26.7 MB / 1.291 GB, free: 23.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0145/5.627, allocations: 2.253 MB / 1.293 GB, free: 21.77 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009609/5.637, allocations: 129.4 kB / 1.293 GB, free: 21.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01468/5.652, allocations: 0.5275 MB / 1.294 GB, free: 21.32 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003495/5.655, allocations: 451.8 kB / 1.294 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002135/5.657, allocations: 189.9 kB / 1.294 GB, free: 20.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.02307/5.68, allocations: 6.504 MB / 1.301 GB, free: 15.58 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.51e-07/5.681, allocations: 0 / 1.301 GB, free: 15.58 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02788/5.708, allocations: 3.425 MB / 1.304 GB, free: 12.17 MB / 490.7 MB 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 (653): * Single equations (assignments): 636 * 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.5004/6.209, allocations: 29.34 MB / 1.333 GB, free: 94.32 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.05173/6.261, allocations: 19.7 MB / 1.352 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.437e-05/6.261, allocations: 0 / 1.352 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02067/6.281, allocations: 7.744 MB / 1.36 GB, free: 93.44 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01116/6.293, allocations: 1.248 MB / 1.361 GB, free: 93.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8138/7.106, allocations: 372.9 MB / 1.725 GB, free: 18.21 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03252/7.139, allocations: 10.59 MB / 1.735 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02321/7.162, allocations: 7.583 MB / 1.743 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of SimCode: time 1.293e-06/7.162, allocations: 0 / 1.743 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.924/16.09, allocations: 409 MB / 2.142 GB, free: 78.72 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2_res.mat does not exist to compare? outputFormat=mat