Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.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.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.133e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3467, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.5317, allocations: 103.3 MB / 461.5 MB, free: 7.441 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.532, allocations: 79.89 kB / 461.5 MB, free: 7.363 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9105/1.443, allocations: 160 MB / 0.6069 GB, free: 7.316 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.235e-06/1.443, allocations: 0 / 0.6069 GB, free: 7.316 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006657/1.443, allocations: 156 kB / 0.6071 GB, free: 7.164 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.0334/1.477, allocations: 7.5 MB / 0.6144 GB, free: 15.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/1.477, allocations: 8.031 kB / 0.6144 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07678/1.554, allocations: 10.05 MB / 0.6242 GB, free: 5.488 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6707/2.224, allocations: 8.395 MB / 0.6324 GB, free: 63.87 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000647/2.225, allocations: 274.2 kB / 0.6327 GB, free: 63.87 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004971/2.23, allocations: 495.3 kB / 0.6332 GB, free: 63.87 MB / 458.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03376/2.264, allocations: 13.1 MB / 0.646 GB, free: 63.82 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06417/2.328, allocations: 18.78 MB / 0.6643 GB, free: 59.89 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007402/2.329, allocations: 99.59 kB / 0.6644 GB, free: 59.89 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005027/2.334, allocations: 47.59 kB / 0.6645 GB, free: 59.89 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004801/2.339, allocations: 2.103 MB / 0.6665 GB, free: 59.87 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.181/2.52, allocations: 81.03 MB / 0.7456 GB, free: 9.426 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01338/2.533, allocations: 8.055 MB / 0.7535 GB, free: 5.086 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008963/2.542, allocations: 4.992 MB / 0.7584 GB, free: 1.023 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004586/2.543, allocations: 63.62 kB / 0.7584 GB, free: 0.9805 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.948e-05/2.543, allocations: 80.47 kB / 0.7585 GB, free: 0.8945 MB / 458.8 MB Notification: Performance of pre-optimization done (n=452): time 9.037e-06/2.543, allocations: 0 / 0.7585 GB, free: 0.8945 MB / 458.8 MB Notification: Performance of matching and sorting (n=499): time 0.1454/2.688, allocations: 37.61 MB / 0.7952 GB, free: 3.727 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/2.689, allocations: 230.1 kB / 0.7955 GB, free: 3.461 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01368/2.702, allocations: 5.146 MB / 0.8005 GB, free: 15.13 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001085/2.703, allocations: 25.7 kB / 0.8005 GB, free: 15.1 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006182/2.71, allocations: 5.729 MB / 0.8061 GB, free: 9.953 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003319/2.713, allocations: 1.759 MB / 0.8078 GB, free: 8.363 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00183/2.715, allocations: 0 / 0.8078 GB, free: 8.363 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001559/2.716, allocations: 0.825 MB / 0.8086 GB, free: 7.668 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01226/2.729, allocations: 4.651 MB / 0.8132 GB, free: 3.484 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3706/3.099, allocations: 11.42 MB / 0.8243 GB, free: 96.16 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01829/3.118, allocations: 7.238 MB / 0.8314 GB, free: 96.09 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005019/3.118, allocations: 66.12 kB / 0.8315 GB, free: 96.09 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1557) (initialization): time 0.04539/3.164, allocations: 15.68 MB / 0.8468 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002506/3.164, allocations: 100.2 kB / 0.8469 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003758/3.164, allocations: 229.3 kB / 0.8471 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00743/3.172, allocations: 1.723 MB / 0.8488 GB, free: 95.43 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01751/3.189, allocations: 2.726 MB / 0.8514 GB, free: 95.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02165/3.211, allocations: 13.17 MB / 0.8643 GB, free: 90.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01264/3.224, allocations: 471.4 kB / 0.8647 GB, free: 90.09 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003237/3.227, allocations: 0.667 MB / 0.8654 GB, free: 90.09 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1048 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1433): * Single equations (assignments): 1420 * 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.00486/3.232, allocations: 0.6712 MB / 0.8661 GB, free: 89.74 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02385/3.256, allocations: 8.705 MB / 0.8746 GB, free: 89.52 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002161/3.258, allocations: 0.5901 MB / 0.8751 GB, free: 89.52 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02572/3.284, allocations: 9.141 MB / 0.8841 GB, free: 89.18 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002048/3.284, allocations: 93.8 kB / 0.8841 GB, free: 89.18 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.191e-05/3.284, allocations: 8.312 kB / 0.8842 GB, free: 89.18 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/3.284, allocations: 20.16 kB / 0.8842 GB, free: 89.18 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05574/3.34, allocations: 19.7 MB / 0.9034 GB, free: 82.3 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.568e-05/3.34, allocations: 11.75 kB / 0.9034 GB, free: 82.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007387/3.347, allocations: 0.789 MB / 0.9042 GB, free: 82.24 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006667/3.354, allocations: 1.35 MB / 0.9055 GB, free: 81.93 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/3.355, allocations: 26.45 kB / 0.9055 GB, free: 81.93 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01986/3.375, allocations: 12.12 MB / 0.9174 GB, free: 73.94 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.668e-05/3.375, allocations: 19.8 kB / 0.9174 GB, free: 73.94 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03425/3.41, allocations: 16.58 MB / 0.9336 GB, free: 59 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004929/3.415, allocations: 1.337 MB / 0.9349 GB, free: 57.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002209/3.417, allocations: 18.8 kB / 0.9349 GB, free: 57.74 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006389/3.423, allocations: 246.5 kB / 0.9351 GB, free: 57.61 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001712/3.425, allocations: 299.5 kB / 0.9354 GB, free: 57.41 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008839/3.426, allocations: 135 kB / 0.9356 GB, free: 57.29 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008598/3.435, allocations: 3.407 MB / 0.9389 GB, free: 54.34 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.52e-07/3.435, allocations: 0 / 0.9389 GB, free: 54.34 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01449/3.449, allocations: 1.75 MB / 0.9406 GB, free: 52.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (383): * Single equations (assignments): 370 * 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.03582/3.485, allocations: 19.43 MB / 0.9596 GB, free: 34.56 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02446/3.509, allocations: 11.45 MB / 0.9707 GB, free: 24.08 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/3.51, allocations: 0 / 0.9707 GB, free: 24.08 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01033/3.52, allocations: 4.671 MB / 0.9753 GB, free: 19.8 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005372/3.525, allocations: 0.545 MB / 0.9758 GB, free: 19.32 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06711/3.592, allocations: 20.6 MB / 0.996 GB, free: 1.297 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.382/3.974, allocations: 6.975 MB / 1.003 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01196/3.986, allocations: 4.163 MB / 1.007 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.994e-06/3.987, allocations: 0 / 1.007 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.218/10.2, allocations: 304.8 MB / 1.305 GB, free: 76.01 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat