Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.057/2.057, allocations: 209.4 MB / 216.5 MB, free: 6.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.5e-05/2.52e-05, allocations: 4 kB / 267.6 MB, free: 4.949 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 48.7 MB / 316.3 MB, free: 4.164 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4699/0.5799, allocations: 96.31 MB / 412.6 MB, free: 12.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003417/0.5803, allocations: 72.97 kB / 412.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.047/1.627, allocations: 159.9 MB / 0.5592 GB, free: 70.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.627, allocations: 0 / 0.5592 GB, free: 70.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005174/1.628, allocations: 159.1 kB / 0.5594 GB, free: 70.57 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.03106/1.659, allocations: 7.505 MB / 0.5667 GB, free: 63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.19e-05/1.659, allocations: 19.97 kB / 0.5667 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07153/1.73, allocations: 10.05 MB / 0.5766 GB, free: 52.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02979/1.76, allocations: 8.392 MB / 0.5847 GB, free: 44.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005399/1.761, allocations: 272 kB / 0.585 GB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005044/1.766, allocations: 491.8 kB / 0.5855 GB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03295/1.799, allocations: 13.1 MB / 0.5983 GB, free: 30.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05201/1.851, allocations: 18.79 MB / 0.6166 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005288/1.852, allocations: 91.22 kB / 0.6167 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004933/1.856, allocations: 47.98 kB / 0.6168 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004579/1.861, allocations: 2.104 MB / 0.6188 GB, free: 8.156 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8067/2.668, allocations: 80.94 MB / 0.6978 GB, free: 31.31 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01388/2.682, allocations: 8.054 MB / 0.7057 GB, free: 29.51 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009687/2.691, allocations: 4.978 MB / 0.7106 GB, free: 29.46 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000506/2.692, allocations: 67.91 kB / 0.7106 GB, free: 29.46 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.766e-05/2.692, allocations: 78.39 kB / 0.7107 GB, free: 29.41 MB / 426.8 MB Notification: Performance of pre-optimization done (n=452): time 1.023e-05/2.692, allocations: 0 / 0.7107 GB, free: 29.41 MB / 426.8 MB Notification: Performance of matching and sorting (n=499): time 0.1193/2.811, allocations: 36.53 MB / 0.7464 GB, free: 16.41 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/2.812, allocations: 234.5 kB / 0.7466 GB, free: 16.18 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01342/2.825, allocations: 5.147 MB / 0.7516 GB, free: 14.34 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001194/2.826, allocations: 28 kB / 0.7517 GB, free: 14.3 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005307/2.832, allocations: 5.827 MB / 0.7574 GB, free: 9.938 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002943/2.835, allocations: 1.763 MB / 0.7591 GB, free: 8.613 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/2.836, allocations: 0 / 0.7591 GB, free: 8.613 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.001212/2.838, allocations: 0.8222 MB / 0.7599 GB, free: 8.094 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01157/2.849, allocations: 4.645 MB / 0.7644 GB, free: 6.445 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01778/2.867, allocations: 11.14 MB / 0.7753 GB, free: 9.191 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01913/2.886, allocations: 7.229 MB / 0.7824 GB, free: 3.312 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003116/2.887, allocations: 64 kB / 0.7824 GB, free: 3.25 MB / 442.8 MB Notification: Performance of matching and sorting (n=1556) (initialization): time 0.05338/2.94, allocations: 15.84 MB / 0.7979 GB, free: 5.52 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003178/2.941, allocations: 104 kB / 0.798 GB, free: 5.418 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006624/2.941, allocations: 228 kB / 0.7982 GB, free: 5.195 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01154/2.953, allocations: 1.716 MB / 0.7999 GB, free: 3.859 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02585/2.979, allocations: 2.719 MB / 0.8025 GB, free: 1.516 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03854/3.017, allocations: 13.19 MB / 0.8154 GB, free: 5.18 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02056/3.038, allocations: 470.7 kB / 0.8159 GB, free: 4.828 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00452/3.042, allocations: 0.6681 MB / 0.8165 GB, free: 4.172 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.006373/3.049, allocations: 0.6805 MB / 0.8172 GB, free: 3.488 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3948/3.444, allocations: 8.68 MB / 0.8257 GB, free: 111.4 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002331/3.446, allocations: 0.5861 MB / 0.8262 GB, free: 111.4 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02775/3.474, allocations: 9.141 MB / 0.8352 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002102/3.474, allocations: 91.45 kB / 0.8352 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.43e-05/3.474, allocations: 9.25 kB / 0.8353 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/3.474, allocations: 21.95 kB / 0.8353 GB, free: 111.1 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05616/3.53, allocations: 19.7 MB / 0.8545 GB, free: 109.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.119e-05/3.531, allocations: 16.31 kB / 0.8545 GB, free: 109.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00763/3.538, allocations: 0.7936 MB / 0.8553 GB, free: 109.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006717/3.545, allocations: 1.336 MB / 0.8566 GB, free: 109.9 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001201/3.546, allocations: 33.27 kB / 0.8566 GB, free: 109.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02028/3.567, allocations: 12.12 MB / 0.8685 GB, free: 102.7 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.689e-05/3.567, allocations: 17.23 kB / 0.8685 GB, free: 102.7 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03675/3.603, allocations: 16.58 MB / 0.8847 GB, free: 94.86 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005354/3.609, allocations: 1.339 MB / 0.886 GB, free: 94.21 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003315/3.612, allocations: 14.19 kB / 0.886 GB, free: 94.21 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008871/3.621, allocations: 250.7 kB / 0.8862 GB, free: 94.21 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002448/3.624, allocations: 296.8 kB / 0.8865 GB, free: 94.16 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00121/3.625, allocations: 129 kB / 0.8866 GB, free: 94.13 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01214/3.637, allocations: 3.418 MB / 0.89 GB, free: 92.9 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.443e-06/3.637, allocations: 4.969 kB / 0.89 GB, free: 92.9 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02082/3.658, allocations: 1.754 MB / 0.8917 GB, free: 92.9 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.04474/3.703, allocations: 19.42 MB / 0.9107 GB, free: 81.94 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0247/3.727, allocations: 11.45 MB / 0.9218 GB, free: 71.83 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/3.728, allocations: 0 / 0.9218 GB, free: 71.83 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01023/3.738, allocations: 4.668 MB / 0.9264 GB, free: 67.55 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005619/3.743, allocations: 0.5479 MB / 0.9269 GB, free: 67.09 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06012/3.804, allocations: 19.63 MB / 0.9461 GB, free: 50 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01465/3.818, allocations: 6.26 MB / 0.9522 GB, free: 45.39 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01893/3.837, allocations: 4.28 MB / 0.9564 GB, free: 42.7 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01034/3.848, allocations: 4.06 MB / 0.9604 GB, free: 38.94 MB / 474.8 MB Notification: Performance of SimCode: time 1.362e-06/3.848, allocations: 4 kB / 0.9604 GB, free: 38.93 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6633/4.511, allocations: 140.4 MB / 1.098 GB, free: 50.73 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/4.511, allocations: 142.9 kB / 1.098 GB, free: 50.54 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.565/13.08, allocations: 0 / 1.098 GB, free: 50.54 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat