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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.268/2.268, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.674e-05, allocations: 8 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3794, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1883/0.5678, allocations: 102.6 MB / 460.7 MB, free: 8.141 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5681, allocations: 79.95 kB / 460.8 MB, free: 8.062 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734/2.302, allocations: 278.1 MB / 0.7216 GB, free: 42.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.284e-06/2.303, allocations: 0 / 0.7216 GB, free: 42.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008438/2.303, allocations: 282.8 kB / 0.7219 GB, free: 42.35 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: 5457 * Number of variables: 5457 Notification: Performance of Generate backend data structure: time 0.05417/2.358, allocations: 13.18 MB / 0.7347 GB, free: 37.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/2.358, allocations: 6.75 kB / 0.7347 GB, free: 37.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1456/2.503, allocations: 18.53 MB / 0.7528 GB, free: 27.43 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05147/2.555, allocations: 14.88 MB / 0.7674 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009802/2.556, allocations: 480 kB / 0.7678 GB, free: 13.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009/2.565, allocations: 0.8552 MB / 0.7687 GB, free: 12.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06295/2.628, allocations: 24.23 MB / 0.7923 GB, free: 4.332 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4867/3.115, allocations: 32.99 MB / 0.8245 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001069/3.116, allocations: 132.8 kB / 0.8247 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00821/3.124, allocations: 65.66 kB / 0.8247 GB, free: 56.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007904/3.132, allocations: 3.712 MB / 0.8283 GB, free: 56.26 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.259/3.391, allocations: 135.6 MB / 0.9608 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02856/3.419, allocations: 14.52 MB / 0.9749 GB, free: 7.457 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02642/3.446, allocations: 9.399 MB / 0.9841 GB, free: 3.605 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00238/3.448, allocations: 1.31 MB / 0.9854 GB, free: 2.418 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001098/3.449, allocations: 115.2 kB / 0.9855 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=810): time 1.395e-05/3.449, allocations: 0 / 0.9855 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of matching and sorting (n=883): time 0.6285/4.077, allocations: 79.24 MB / 1.063 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/4.077, allocations: 313.2 kB / 1.063 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01897/4.096, allocations: 8.308 MB / 1.071 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001832/4.098, allocations: 29.42 kB / 1.071 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007897/4.106, allocations: 9.627 MB / 1.081 GB, free: 102 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004902/4.111, allocations: 3.076 MB / 1.084 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00231/4.113, allocations: 0 / 1.084 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001553/4.115, allocations: 1.158 MB / 1.085 GB, free: 99.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01819/4.133, allocations: 7.949 MB / 1.093 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02626/4.159, allocations: 18.12 MB / 1.11 GB, free: 83.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02746/4.187, allocations: 12.11 MB / 1.122 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004864/4.188, allocations: 103.6 kB / 1.122 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2534) (initialization): time 0.07046/4.258, allocations: 25.72 MB / 1.147 GB, free: 57.62 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002568/4.258, allocations: 158 kB / 1.148 GB, free: 57.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006491/4.259, allocations: 356 kB / 1.148 GB, free: 57.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01094/4.27, allocations: 2.406 MB / 1.15 GB, free: 55.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03003/4.3, allocations: 4.528 MB / 1.155 GB, free: 51.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02739/4.327, allocations: 13.69 MB / 1.168 GB, free: 39.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02053/4.348, allocations: 0.76 MB / 1.169 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004864/4.353, allocations: 1.062 MB / 1.17 GB, free: 37.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1631 * 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 (2338): * Single equations (assignments): 2321 * 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.007578/4.361, allocations: 1.024 MB / 1.171 GB, free: 36.64 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.07224/4.433, allocations: 14.92 MB / 1.185 GB, free: 23.65 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00497/4.438, allocations: 0.991 MB / 1.186 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5196/4.957, allocations: 16.83 MB / 1.203 GB, free: 94.35 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004904/4.958, allocations: 168.4 kB / 1.203 GB, free: 94.35 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.043e-05/4.958, allocations: 13.25 kB / 1.203 GB, free: 94.35 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002277/4.958, allocations: 37.23 kB / 1.203 GB, free: 94.35 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1009/5.059, allocations: 35.22 MB / 1.237 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001129/5.059, allocations: 16.66 kB / 1.237 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01425/5.074, allocations: 1.49 MB / 1.239 GB, free: 92.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009702/5.083, allocations: 1.756 MB / 1.241 GB, free: 92.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001885/5.085, allocations: 43.38 kB / 1.241 GB, free: 92.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02476/5.11, allocations: 12.13 MB / 1.252 GB, free: 89.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.257e-05/5.11, allocations: 22.03 kB / 1.252 GB, free: 89.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06105/5.171, allocations: 28.9 MB / 1.281 GB, free: 78.77 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00908/5.18, allocations: 2.251 MB / 1.283 GB, free: 78.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003792/5.184, allocations: 23.53 kB / 1.283 GB, free: 78.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01125/5.196, allocations: 436.9 kB / 1.283 GB, free: 78.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002957/5.199, allocations: 0.4901 MB / 1.284 GB, free: 78.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001485/5.2, allocations: 217.7 kB / 1.284 GB, free: 78.05 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01512/5.215, allocations: 5.54 MB / 1.289 GB, free: 76.11 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.21e-07/5.215, allocations: 0 / 1.289 GB, free: 76.11 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02387/5.239, allocations: 2.98 MB / 1.292 GB, free: 76.11 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (705): * Single equations (assignments): 688 * 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.06319/5.302, allocations: 31.14 MB / 1.323 GB, free: 56.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04308/5.346, allocations: 19.23 MB / 1.342 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.062e-05/5.346, allocations: 0 / 1.342 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01915/5.365, allocations: 7.939 MB / 1.349 GB, free: 32.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/5.375, allocations: 0.9416 MB / 1.35 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1188/5.494, allocations: 36.05 MB / 1.385 GB, free: 352 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04042/5.534, allocations: 11.08 MB / 1.396 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4289/5.963, allocations: 8.113 MB / 1.404 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.824e-06/5.963, allocations: 0 / 1.404 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.933/13.9, allocations: 406 MB / 1.801 GB, free: 10.38 MB / 0.573 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