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.32/2.32, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.56e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.3979, allocations: 54.86 MB / 359.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1892/0.5871, allocations: 104 MB / 463.9 MB, free: 8.934 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5874, allocations: 77.17 kB / 463.9 MB, free: 8.859 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.069/1.657, allocations: 163.5 MB / 0.6127 GB, free: 75.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.657, allocations: 0 / 0.6127 GB, free: 75.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004425/1.657, allocations: 159.9 kB / 0.6129 GB, free: 75.74 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: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.02848/1.686, allocations: 7.507 MB / 0.6202 GB, free: 68.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/1.686, allocations: 8.031 kB / 0.6202 GB, free: 68.14 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008081/1.694, allocations: 1.549 MB / 0.6217 GB, free: 66.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07329/1.767, allocations: 10.05 MB / 0.6316 GB, free: 56.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03/1.797, allocations: 8.42 MB / 0.6398 GB, free: 47.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007946/1.798, allocations: 0.6217 MB / 0.6404 GB, free: 47.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005217/1.803, allocations: 0.8199 MB / 0.6412 GB, free: 46.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05992/1.863, allocations: 20.26 MB / 0.661 GB, free: 24.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005777/1.864, allocations: 87.2 kB / 0.6611 GB, free: 24.74 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00489/1.869, allocations: 395.8 kB / 0.6614 GB, free: 24.35 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004398/1.873, allocations: 2.101 MB / 0.6635 GB, free: 22.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07069/1.944, allocations: 17.48 MB / 0.6806 GB, free: 4.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5401/2.484, allocations: 85.05 MB / 0.7636 GB, free: 33.35 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02683/2.511, allocations: 7.943 MB / 0.7714 GB, free: 32.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01019/2.521, allocations: 5.076 MB / 0.7763 GB, free: 32.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004204/2.522, allocations: 71.12 kB / 0.7764 GB, free: 32.03 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.847e-05/2.522, allocations: 77.97 kB / 0.7765 GB, free: 31.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 9.798e-06/2.522, allocations: 0 / 0.7765 GB, free: 31.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.1553/2.677, allocations: 37.63 MB / 0.8132 GB, free: 20.44 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/2.677, allocations: 234.5 kB / 0.8134 GB, free: 20.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01568/2.693, allocations: 5.672 MB / 0.819 GB, free: 18.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001214/2.694, allocations: 94.44 kB / 0.8191 GB, free: 18.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004795/2.699, allocations: 5.523 MB / 0.8245 GB, free: 13.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002976/2.702, allocations: 1.818 MB / 0.8262 GB, free: 12.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001593/2.704, allocations: 221.4 kB / 0.8264 GB, free: 12.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009975/2.705, allocations: 0.7953 MB / 0.8272 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01224/2.717, allocations: 4.805 MB / 0.8319 GB, free: 10.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01742/2.735, allocations: 10.88 MB / 0.8425 GB, free: 15.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01924/2.754, allocations: 7.296 MB / 0.8497 GB, free: 9.477 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003008/2.754, allocations: 64 kB / 0.8497 GB, free: 9.414 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.05336/2.808, allocations: 16.21 MB / 0.8656 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002082/2.808, allocations: 102.4 kB / 0.8657 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004602/2.808, allocations: 215 kB / 0.8659 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008392/2.817, allocations: 1.722 MB / 0.8675 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0188/2.836, allocations: 2.601 MB / 0.8701 GB, free: 7.988 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02845/2.864, allocations: 14.02 MB / 0.8838 GB, free: 10.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/2.877, allocations: 0.6614 MB / 0.8844 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003249/2.881, allocations: 0.6265 MB / 0.885 GB, free: 9.707 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 (1363): * Single equations (assignments): 1350 * 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.005026/2.886, allocations: 0.9312 MB / 0.8859 GB, free: 8.781 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002126/2.888, allocations: 0.6131 MB / 0.8865 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03177/2.92, allocations: 9.603 MB / 0.8959 GB, free: 112 kB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002297/2.92, allocations: 97.81 kB / 0.896 GB, free: 20 kB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.845e-05/2.92, allocations: 8 kB / 0.896 GB, free: 12 kB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001236/2.92, allocations: 24.25 kB / 0.896 GB, free: 8 kB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4617/3.382, allocations: 21.54 MB / 0.9171 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.279e-05/3.382, allocations: 12.62 kB / 0.9171 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007839/3.39, allocations: 0.7938 MB / 0.9179 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006971/3.397, allocations: 1.358 MB / 0.9192 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001278/3.398, allocations: 88.64 kB / 0.9193 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/3.42, allocations: 12.88 MB / 0.9319 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.727e-05/3.42, allocations: 19.67 kB / 0.9319 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03718/3.457, allocations: 17.13 MB / 0.9486 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005645/3.463, allocations: 1.379 MB / 0.9499 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002507/3.465, allocations: 84.8 kB / 0.95 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007042/3.473, allocations: 317.8 kB / 0.9503 GB, free: 113 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001803/3.474, allocations: 300.5 kB / 0.9506 GB, free: 113 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009052/3.475, allocations: 125.5 kB / 0.9507 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01067/3.486, allocations: 3.933 MB / 0.9546 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.212e-06/3.486, allocations: 0 / 0.9546 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01507/3.501, allocations: 2.036 MB / 0.9566 GB, free: 111.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (385): * Single equations (assignments): 372 * 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.03964/3.541, allocations: 19.89 MB / 0.976 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02765/3.569, allocations: 11.63 MB / 0.9874 GB, free: 94.62 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.661e-05/3.569, allocations: 0 / 0.9874 GB, free: 94.62 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01162/3.58, allocations: 4.794 MB / 0.992 GB, free: 90.22 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006805/3.587, allocations: 0.7237 MB / 0.9927 GB, free: 89.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06589/3.653, allocations: 21.11 MB / 1.013 GB, free: 71.23 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01607/3.669, allocations: 6.279 MB / 1.019 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01232/3.682, allocations: 4.159 MB / 1.024 GB, free: 62.76 MB / 0.5105 GB Notification: Performance of SimCode: time 1.994e-06/3.682, allocations: 4 kB / 1.024 GB, free: 62.76 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.934/10.62, allocations: 307.4 MB / 1.324 GB, free: 156.6 MB / 0.5573 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