Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.521e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.313, allocations: 44.49 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1658/0.4789, allocations: 92.09 MB / 386.3 MB, free: 5.863 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.4793, allocations: 95.88 kB / 386.4 MB, free: 5.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6571/1.136, allocations: 103.9 MB / 490.3 MB, free: 58.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.356e-06/1.136, allocations: 0 / 490.3 MB, free: 58.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000354/1.137, allocations: 115.9 kB / 490.4 MB, free: 58.71 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.02124/1.158, allocations: 5.253 MB / 495.7 MB, free: 53.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.64e-05/1.158, allocations: 12.03 kB / 495.7 MB, free: 53.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05869/1.217, allocations: 6.939 MB / 0.4909 GB, free: 46.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02354/1.24, allocations: 6.804 MB / 0.4975 GB, free: 39.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003712/1.241, allocations: 179.9 kB / 0.4977 GB, free: 39.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002788/1.244, allocations: 327.8 kB / 0.498 GB, free: 39.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01846/1.262, allocations: 7.547 MB / 0.5054 GB, free: 31.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02761/1.29, allocations: 11.33 MB / 0.5164 GB, free: 19.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003379/1.29, allocations: 63.41 kB / 0.5165 GB, free: 19.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002135/1.292, allocations: 43.95 kB / 0.5165 GB, free: 19.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/1.295, allocations: 1.124 MB / 0.5176 GB, free: 17.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4254/1.72, allocations: 55.94 MB / 0.5722 GB, free: 55.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008892/1.729, allocations: 3.498 MB / 0.5757 GB, free: 55.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006364/1.736, allocations: 2.278 MB / 0.5779 GB, free: 55.13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000831/1.736, allocations: 336.7 kB / 0.5782 GB, free: 54.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.835e-05/1.736, allocations: 57.5 kB / 0.5783 GB, free: 54.81 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 8.176e-06/1.737, allocations: 3.094 kB / 0.5783 GB, free: 54.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=228): time 0.08559/1.822, allocations: 19.95 MB / 0.5978 GB, free: 51.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/1.822, allocations: 209.5 kB / 0.598 GB, free: 51.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008652/1.831, allocations: 3.654 MB / 0.6015 GB, free: 50.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005315/1.831, allocations: 25.7 kB / 0.6015 GB, free: 50.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003135/1.835, allocations: 3.72 MB / 0.6052 GB, free: 48.77 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/1.836, allocations: 0.8437 MB / 0.606 GB, free: 48.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000862/1.837, allocations: 0 / 0.606 GB, free: 48.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005705/1.838, allocations: 0.5985 MB / 0.6066 GB, free: 47.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00526/1.843, allocations: 2.166 MB / 0.6087 GB, free: 47.14 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007874/1.851, allocations: 6.23 MB / 0.6148 GB, free: 40.87 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/1.859, allocations: 3.667 MB / 0.6184 GB, free: 39.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001543/1.859, allocations: 42.34 kB / 0.6184 GB, free: 39.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.03391/1.893, allocations: 8.099 MB / 0.6263 GB, free: 37.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001903/1.893, allocations: 65.97 kB / 0.6264 GB, free: 37.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000325/1.893, allocations: 148.5 kB / 0.6265 GB, free: 37.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007619/1.901, allocations: 0.9465 MB / 0.6274 GB, free: 37.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01528/1.916, allocations: 1.576 MB / 0.629 GB, free: 37.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.929, allocations: 7.248 MB / 0.6361 GB, free: 30.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007404/1.937, allocations: 233.9 kB / 0.6363 GB, free: 30.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001569/1.938, allocations: 414.7 kB / 0.6367 GB, free: 30.31 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (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 (832): * Single equations (assignments): 827 * Array equations: 3 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001624/1.94, allocations: 479.1 kB / 0.6371 GB, free: 29.84 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009944/1.95, allocations: 3.755 MB / 0.6408 GB, free: 26.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/1.951, allocations: 402.7 kB / 0.6412 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009959/1.961, allocations: 3.482 MB / 0.6446 GB, free: 23.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.148e-05/1.961, allocations: 25.02 kB / 0.6446 GB, free: 23.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/1.961, allocations: 17.27 kB / 0.6446 GB, free: 23.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.105e-05/1.961, allocations: 9.094 kB / 0.6446 GB, free: 23.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02461/1.986, allocations: 8.554 MB / 0.653 GB, free: 16.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.859e-05/1.986, allocations: 4 kB / 0.653 GB, free: 16.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003487/1.99, allocations: 363.6 kB / 0.6533 GB, free: 16.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003756/1.993, allocations: 0.6727 MB / 0.654 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004387/1.994, allocations: 15.7 kB / 0.654 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/2.004, allocations: 6.202 MB / 0.6601 GB, free: 9.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/2.004, allocations: 0 / 0.6601 GB, free: 9.84 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/2.018, allocations: 6.33 MB / 0.6663 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002425/2.02, allocations: 0.7073 MB / 0.6669 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/2.021, allocations: 10.72 kB / 0.667 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003249/2.024, allocations: 80.02 kB / 0.667 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006595/2.025, allocations: 132.8 kB / 0.6672 GB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/2.025, allocations: 62.06 kB / 0.6672 GB, free: 3.316 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005656/2.031, allocations: 2.482 MB / 0.6696 GB, free: 1.156 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.031, allocations: 0 / 0.6696 GB, free: 1.156 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007931/2.039, allocations: 1.033 MB / 0.6706 GB, free: 132 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (179): * Single equations (assignments): 174 * Array equations: 3 * 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%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01671/2.056, allocations: 7.327 MB / 0.6778 GB, free: 9.516 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01429/2.07, allocations: 5.467 MB / 0.6831 GB, free: 4.578 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/2.07, allocations: 0 / 0.6831 GB, free: 4.578 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005284/2.075, allocations: 1.949 MB / 0.685 GB, free: 2.801 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/2.079, allocations: 441 kB / 0.6855 GB, free: 2.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03959/2.119, allocations: 11.44 MB / 0.6966 GB, free: 8.547 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0115/2.131, allocations: 4.122 MB / 0.7007 GB, free: 5.465 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006959/2.138, allocations: 2.486 MB / 0.7031 GB, free: 3.164 MB / 426.7 MB Notification: Performance of SimCode: time 2.845e-06/2.138, allocations: 4 kB / 0.7031 GB, free: 3.16 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.861/6.999, allocations: 142.3 MB / 0.8421 GB, free: 71.23 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat