Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.983/1.983, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.875e-05, allocations: 4 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.5525, allocations: 96.33 MB / 412.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.5528, allocations: 73.83 kB / 412.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9509/1.504, allocations: 159.9 MB / 0.5592 GB, free: 70.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.504, allocations: 0 / 0.5592 GB, free: 70.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004511/1.504, allocations: 162.1 kB / 0.5594 GB, free: 70.62 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.03062/1.535, allocations: 7.512 MB / 0.5667 GB, free: 63.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/1.535, allocations: 8.031 kB / 0.5667 GB, free: 63.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1134/1.648, allocations: 10.05 MB / 0.5765 GB, free: 52.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02964/1.678, allocations: 8.398 MB / 0.5847 GB, free: 44.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000604/1.679, allocations: 272 kB / 0.585 GB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005215/1.684, allocations: 491.8 kB / 0.5855 GB, free: 43.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03179/1.716, allocations: 13.11 MB / 0.5983 GB, free: 30.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0552/1.771, allocations: 18.79 MB / 0.6166 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004805/1.772, allocations: 87.27 kB / 0.6167 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00411/1.776, allocations: 44 kB / 0.6168 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004347/1.78, allocations: 2.103 MB / 0.6188 GB, free: 8.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7995/2.58, allocations: 80.94 MB / 0.6978 GB, free: 31.2 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/2.593, allocations: 8.059 MB / 0.7057 GB, free: 29.41 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009263/2.603, allocations: 4.977 MB / 0.7106 GB, free: 29.36 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004602/2.603, allocations: 72.53 kB / 0.7106 GB, free: 29.35 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.892e-05/2.603, allocations: 73.11 kB / 0.7107 GB, free: 29.31 MB / 426.8 MB Notification: Performance of pre-optimization done (n=452): time 8.777e-06/2.603, allocations: 2.906 kB / 0.7107 GB, free: 29.31 MB / 426.8 MB Notification: Performance of matching and sorting (n=499): time 0.1782/2.782, allocations: 36.53 MB / 0.7464 GB, free: 16.35 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/2.782, allocations: 232.5 kB / 0.7466 GB, free: 16.12 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02469/2.806, allocations: 5.15 MB / 0.7516 GB, free: 14.28 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001099/2.808, allocations: 25.7 kB / 0.7517 GB, free: 14.25 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004916/2.813, allocations: 5.714 MB / 0.7572 GB, free: 9.895 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002987/2.816, allocations: 1.762 MB / 0.759 GB, free: 8.57 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/2.817, allocations: 3.406 kB / 0.759 GB, free: 8.57 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.001082/2.818, allocations: 0.8287 MB / 0.7598 GB, free: 8.039 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01108/2.829, allocations: 4.641 MB / 0.7643 GB, free: 6.395 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01775/2.847, allocations: 11.13 MB / 0.7752 GB, free: 9.289 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01866/2.866, allocations: 7.243 MB / 0.7823 GB, free: 3.387 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000319/2.866, allocations: 64 kB / 0.7823 GB, free: 3.324 MB / 442.8 MB Notification: Performance of matching and sorting (n=1556) (initialization): time 0.05077/2.917, allocations: 15.68 MB / 0.7976 GB, free: 5.727 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002134/2.917, allocations: 104 kB / 0.7977 GB, free: 5.625 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004749/2.918, allocations: 235 kB / 0.798 GB, free: 5.402 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008197/2.926, allocations: 1.716 MB / 0.7996 GB, free: 4.062 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01909/2.945, allocations: 2.722 MB / 0.8023 GB, free: 1.719 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02694/2.972, allocations: 13.18 MB / 0.8152 GB, free: 5.395 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01294/2.985, allocations: 469.8 kB / 0.8156 GB, free: 5.043 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003439/2.989, allocations: 0.6649 MB / 0.8163 GB, free: 4.391 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1047 * 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 (1432): * Single equations (assignments): 1419 * 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.004926/2.994, allocations: 0.6841 MB / 0.8169 GB, free: 3.703 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3632/3.357, allocations: 8.698 MB / 0.8254 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002596/3.36, allocations: 0.5972 MB / 0.826 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03143/3.391, allocations: 9.127 MB / 0.8349 GB, free: 110.8 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002495/3.391, allocations: 97.06 kB / 0.835 GB, free: 110.8 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.242e-05/3.391, allocations: 13.12 kB / 0.835 GB, free: 110.8 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001111/3.392, allocations: 22.64 kB / 0.835 GB, free: 110.8 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06016/3.452, allocations: 19.71 MB / 0.8543 GB, free: 109.7 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.879e-05/3.452, allocations: 9.938 kB / 0.8543 GB, free: 109.7 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007642/3.459, allocations: 0.7909 MB / 0.8551 GB, free: 109.7 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006748/3.466, allocations: 1.343 MB / 0.8564 GB, free: 109.6 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001241/3.468, allocations: 30.58 kB / 0.8564 GB, free: 109.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0204/3.488, allocations: 12.11 MB / 0.8682 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.07e-05/3.488, allocations: 17.41 kB / 0.8683 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03665/3.525, allocations: 16.58 MB / 0.8844 GB, free: 94.66 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00533/3.53, allocations: 1.334 MB / 0.8858 GB, free: 94.09 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00284/3.533, allocations: 17.36 kB / 0.8858 GB, free: 94.09 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006677/3.54, allocations: 245.6 kB / 0.886 GB, free: 94.09 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001829/3.542, allocations: 300.4 kB / 0.8863 GB, free: 94.04 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001097/3.543, allocations: 133.6 kB / 0.8864 GB, free: 94.02 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.009224/3.552, allocations: 3.42 MB / 0.8898 GB, free: 92.79 MB / 474.8 MB Notification: Performance of sort global known variables: time 4.078e-06/3.552, allocations: 0 / 0.8898 GB, free: 92.79 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01513/3.567, allocations: 1.751 MB / 0.8915 GB, free: 92.79 MB / 474.8 MB 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.03778/3.605, allocations: 19.43 MB / 0.9104 GB, free: 82.06 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02532/3.63, allocations: 11.45 MB / 0.9216 GB, free: 71.95 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.76e-05/3.63, allocations: 4 kB / 0.9216 GB, free: 71.95 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01054/3.641, allocations: 4.67 MB / 0.9262 GB, free: 67.67 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005758/3.647, allocations: 0.5374 MB / 0.9267 GB, free: 67.21 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0678/3.715, allocations: 20.59 MB / 0.9468 GB, free: 49.33 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01611/3.731, allocations: 6.27 MB / 0.9529 GB, free: 44.71 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01179/3.743, allocations: 4.154 MB / 0.957 GB, free: 40.87 MB / 474.8 MB Notification: Performance of SimCode: time 2.064e-06/3.743, allocations: 0 / 0.957 GB, free: 40.87 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.638/10.38, allocations: 304.7 MB / 1.255 GB, free: 85.05 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat