Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.562/2.562, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.226e-05/4.237e-05, allocations: 7.938 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1335, allocations: 61.88 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5548/0.6883, allocations: 111.4 MB / 0.5096 GB, free: 8.586 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.6887, allocations: 75.97 kB / 0.5096 GB, free: 8.512 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197/1.885, allocations: 162.3 MB / 0.6682 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.124e-06/1.885, allocations: 0 / 0.6682 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004612/1.886, allocations: 152.4 kB / 0.6683 GB, free: 104.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02952/1.915, allocations: 7.348 MB / 0.6755 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/1.915, allocations: 15.66 kB / 0.6755 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007767/1.923, allocations: 1.508 MB / 0.677 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.073/1.996, allocations: 10.02 MB / 0.6867 GB, free: 101 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03022/2.027, allocations: 8.026 MB / 0.6946 GB, free: 98.01 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008345/2.027, allocations: 0.606 MB / 0.6952 GB, free: 97.78 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006779/2.034, allocations: 0.8038 MB / 0.696 GB, free: 97.55 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07389/2.108, allocations: 19.81 MB / 0.7153 GB, free: 83.72 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005689/2.109, allocations: 91.12 kB / 0.7154 GB, free: 83.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00467/2.114, allocations: 386.7 kB / 0.7158 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004143/2.118, allocations: 2.048 MB / 0.7178 GB, free: 81.27 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06565/2.183, allocations: 17.07 MB / 0.7344 GB, free: 64.19 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5488/2.732, allocations: 83.52 MB / 0.816 GB, free: 95.84 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02868/2.761, allocations: 7.717 MB / 0.8235 GB, free: 94.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01076/2.772, allocations: 4.917 MB / 0.8283 GB, free: 94.53 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004165/2.772, allocations: 58.41 kB / 0.8284 GB, free: 94.53 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.573e-05/2.772, allocations: 77.53 kB / 0.8285 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=429): time 1.008e-05/2.772, allocations: 0 / 0.8285 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of matching and sorting (n=476): time 0.1439/2.916, allocations: 34.57 MB / 0.8622 GB, free: 89.65 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/2.917, allocations: 234.1 kB / 0.8624 GB, free: 89.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01381/2.93, allocations: 5.592 MB / 0.8679 GB, free: 88.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001075/2.932, allocations: 91.08 kB / 0.868 GB, free: 88.74 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004993/2.937, allocations: 5.57 MB / 0.8734 GB, free: 84.54 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002902/2.939, allocations: 1.734 MB / 0.8751 GB, free: 83.26 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/2.941, allocations: 217.5 kB / 0.8753 GB, free: 83.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001034/2.942, allocations: 0.7822 MB / 0.8761 GB, free: 82.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01168/2.954, allocations: 4.598 MB / 0.8806 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01847/2.972, allocations: 10.57 MB / 0.8909 GB, free: 71.52 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01643/2.989, allocations: 7.043 MB / 0.8978 GB, free: 69.44 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002669/2.989, allocations: 58.44 kB / 0.8978 GB, free: 69.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.04465/3.034, allocations: 15.83 MB / 0.9133 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001929/3.034, allocations: 93.91 kB / 0.9134 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000345/3.034, allocations: 213.5 kB / 0.9136 GB, free: 64.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0078/3.042, allocations: 1.706 MB / 0.9153 GB, free: 64.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01678/3.059, allocations: 2.521 MB / 0.9177 GB, free: 64.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02332/3.082, allocations: 13.99 MB / 0.9314 GB, free: 51.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01281/3.095, allocations: 0.6417 MB / 0.932 GB, free: 50.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002967/3.098, allocations: 0.6205 MB / 0.9326 GB, free: 49.99 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 962 * Number of states: 0 () * Number of discrete variables: 53 (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.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (1324): * Single equations (assignments): 1311 * 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.004595/3.103, allocations: 0.9025 MB / 0.9335 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001912/3.105, allocations: 0.6015 MB / 0.9341 GB, free: 48.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02672/3.132, allocations: 9.121 MB / 0.943 GB, free: 40.84 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001836/3.132, allocations: 98.45 kB / 0.9431 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.031e-05/3.132, allocations: 8 kB / 0.9431 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001004/3.132, allocations: 16.69 kB / 0.9431 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06015/3.192, allocations: 20.67 MB / 0.9633 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.917e-05/3.192, allocations: 13 kB / 0.9633 GB, free: 23.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007209/3.2, allocations: 0.7512 MB / 0.964 GB, free: 22.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00687/3.207, allocations: 1.359 MB / 0.9654 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001215/3.208, allocations: 88.48 kB / 0.9654 GB, free: 21.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0211/3.229, allocations: 12.87 MB / 0.978 GB, free: 9.613 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.229e-05/3.229, allocations: 19.94 kB / 0.978 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0371/3.266, allocations: 16.36 MB / 0.994 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002696/3.269, allocations: 0.6197 MB / 0.9946 GB, free: 9.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002895/3.272, allocations: 87.05 kB / 0.9947 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006872/3.279, allocations: 293.9 kB / 0.995 GB, free: 9.488 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001776/3.281, allocations: 291.8 kB / 0.9953 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006556/3.281, allocations: 120.5 kB / 0.9954 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01124/3.292, allocations: 3.872 MB / 0.9992 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/3.293, allocations: 4 kB / 0.9992 GB, free: 5.773 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01496/3.307, allocations: 1.973 MB / 1.001 GB, free: 3.809 MB / 0.5417 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 (359): * Single equations (assignments): 346 * 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.4521/3.76, allocations: 19.11 MB / 1.02 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03121/3.791, allocations: 11.14 MB / 1.031 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-05/3.791, allocations: 1.625 kB / 1.031 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01819/3.809, allocations: 4.562 MB / 1.035 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009665/3.819, allocations: 0.7187 MB / 1.036 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06826/3.887, allocations: 19.51 MB / 1.055 GB, free: 122 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01593/3.903, allocations: 6.126 MB / 1.061 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0184/3.922, allocations: 3.998 MB / 1.065 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01049/3.932, allocations: 3.933 MB / 1.069 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.573e-06/3.932, allocations: 0 / 1.069 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3112/4.243, allocations: 144.5 MB / 1.21 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/4.244, allocations: 168.5 kB / 1.21 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.792/13.04, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat