Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.418/2.418, allocations: 235 MB / 247.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.994e-05/4.018e-05, allocations: 8.938 kB / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4179, allocations: 54.85 MB / 359.9 MB, free: 2.781 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.6179, allocations: 104 MB / 463.9 MB, free: 8.797 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.6183, allocations: 71.97 kB / 463.9 MB, free: 8.727 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024/1.642, allocations: 163.5 MB / 0.6127 GB, free: 75.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.642, allocations: 0 / 0.6127 GB, free: 75.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006147/1.643, allocations: 163.9 kB / 0.6129 GB, free: 75.47 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.03414/1.677, allocations: 7.507 MB / 0.6202 GB, free: 67.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/1.677, allocations: 16.03 kB / 0.6202 GB, free: 67.86 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007239/1.684, allocations: 1.541 MB / 0.6218 GB, free: 66.31 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07175/1.756, allocations: 10.05 MB / 0.6316 GB, free: 56.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03049/1.786, allocations: 8.405 MB / 0.6398 GB, free: 47.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000834/1.787, allocations: 0.6256 MB / 0.6404 GB, free: 47.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005167/1.793, allocations: 0.8277 MB / 0.6412 GB, free: 46.28 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0601/1.853, allocations: 20.35 MB / 0.6611 GB, free: 24.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005704/1.853, allocations: 91.22 kB / 0.6612 GB, free: 24.37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004748/1.858, allocations: 399.7 kB / 0.6615 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004314/1.862, allocations: 2.097 MB / 0.6636 GB, free: 21.87 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05173/1.914, allocations: 17.77 MB / 0.6809 GB, free: 4.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6296/2.544, allocations: 85.05 MB / 0.764 GB, free: 32.92 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02749/2.571, allocations: 7.979 MB / 0.7718 GB, free: 31.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01079/2.582, allocations: 5.071 MB / 0.7767 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006507/2.583, allocations: 65.36 kB / 0.7768 GB, free: 31.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.607e-05/2.583, allocations: 81.64 kB / 0.7769 GB, free: 31.55 MB / 474.7 MB Notification: Performance of pre-optimization done (n=450): time 1.058e-05/2.583, allocations: 0 / 0.7769 GB, free: 31.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=501): time 0.1606/2.744, allocations: 37.64 MB / 0.8136 GB, free: 20.37 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/2.744, allocations: 227 kB / 0.8139 GB, free: 20.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01599/2.76, allocations: 5.671 MB / 0.8194 GB, free: 18.19 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001356/2.761, allocations: 93.83 kB / 0.8195 GB, free: 18.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005236/2.767, allocations: 5.684 MB / 0.825 GB, free: 13.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003078/2.77, allocations: 1.816 MB / 0.8268 GB, free: 12.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002513/2.772, allocations: 219.9 kB / 0.827 GB, free: 12.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.002224/2.775, allocations: 0.7951 MB / 0.8278 GB, free: 11.86 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01956/2.794, allocations: 4.807 MB / 0.8325 GB, free: 10.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02664/2.821, allocations: 10.94 MB / 0.8432 GB, free: 14.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03025/2.851, allocations: 7.301 MB / 0.8503 GB, free: 8.516 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000361/2.852, allocations: 64 kB / 0.8504 GB, free: 8.453 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.08281/2.935, allocations: 16.94 MB / 0.8669 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000307/2.935, allocations: 96 kB / 0.867 GB, free: 9.918 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002006/2.937, allocations: 212 kB / 0.8672 GB, free: 9.711 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/2.949, allocations: 1.718 MB / 0.8689 GB, free: 8.379 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02408/2.973, allocations: 2.598 MB / 0.8714 GB, free: 6.145 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.044/3.017, allocations: 14.02 MB / 0.8851 GB, free: 9.012 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02179/3.039, allocations: 0.6614 MB / 0.8858 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005001/3.044, allocations: 0.6302 MB / 0.8864 GB, free: 7.844 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.007781/3.052, allocations: 0.9273 MB / 0.8873 GB, free: 6.922 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003049/3.055, allocations: 0.617 MB / 0.8879 GB, free: 6.297 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4661/3.521, allocations: 9.9 MB / 0.8975 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002226/3.521, allocations: 90.72 kB / 0.8976 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-05/3.522, allocations: 9.375 kB / 0.8976 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001281/3.522, allocations: 26.14 kB / 0.8977 GB, free: 124.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06932/3.591, allocations: 21.58 MB / 0.9187 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.715e-05/3.591, allocations: 10 kB / 0.9188 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007853/3.599, allocations: 0.795 MB / 0.9195 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006991/3.606, allocations: 1.361 MB / 0.9209 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001263/3.607, allocations: 90.81 kB / 0.9209 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/3.629, allocations: 12.87 MB / 0.9335 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/3.629, allocations: 16.59 kB / 0.9335 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03857/3.667, allocations: 17.13 MB / 0.9503 GB, free: 111.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005917/3.673, allocations: 1.383 MB / 0.9516 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002691/3.676, allocations: 86.59 kB / 0.9517 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00707/3.683, allocations: 311.8 kB / 0.952 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001863/3.685, allocations: 305.3 kB / 0.9523 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008736/3.686, allocations: 129.1 kB / 0.9524 GB, free: 111 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01105/3.697, allocations: 3.928 MB / 0.9562 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.483e-06/3.697, allocations: 0 / 0.9562 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01493/3.712, allocations: 2.038 MB / 0.9582 GB, free: 109.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.04042/3.753, allocations: 19.89 MB / 0.9777 GB, free: 98.87 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02785/3.78, allocations: 11.98 MB / 0.9894 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/3.781, allocations: 6.281 kB / 0.9894 GB, free: 92.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01185/3.792, allocations: 4.861 MB / 0.9941 GB, free: 88.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007074/3.8, allocations: 0.7281 MB / 0.9948 GB, free: 87.84 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06722/3.867, allocations: 20.17 MB / 1.015 GB, free: 70.22 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01625/3.883, allocations: 6.266 MB / 1.021 GB, free: 65.61 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01944/3.903, allocations: 4.121 MB / 1.025 GB, free: 63.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01091/3.914, allocations: 4.072 MB / 1.029 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of SimCode: time 1.542e-06/3.914, allocations: 0 / 1.029 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8258/4.739, allocations: 149.6 MB / 1.175 GB, free: 88.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/4.74, allocations: 169.4 kB / 1.175 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/13.43, allocations: 11.94 kB / 1.175 GB, free: 88.17 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat