Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.GearConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 270.1 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.933e-05/3.925e-05, allocations: 7.984 kB / 348.5 MB, free: 10.69 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.132, allocations: 61.88 MB / 410.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6401/0.7722, allocations: 111.4 MB / 0.5096 GB, free: 8.438 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.7725, allocations: 77.91 kB / 0.5097 GB, free: 8.363 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027/1.8, allocations: 162.3 MB / 0.6682 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.505e-06/1.8, allocations: 0 / 0.6682 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004263/1.8, allocations: 155.1 kB / 0.6683 GB, free: 104.7 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.02954/1.83, allocations: 7.342 MB / 0.6755 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.83, allocations: 10.84 kB / 0.6755 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007627/1.837, allocations: 1.503 MB / 0.677 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07345/1.911, allocations: 10.02 MB / 0.6868 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03006/1.941, allocations: 8.024 MB / 0.6946 GB, free: 98.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008157/1.942, allocations: 0.6059 MB / 0.6952 GB, free: 97.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005209/1.947, allocations: 0.8059 MB / 0.696 GB, free: 97.64 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05969/2.007, allocations: 19.82 MB / 0.7153 GB, free: 83.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005242/2.007, allocations: 87.19 kB / 0.7154 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004689/2.012, allocations: 383.1 kB / 0.7158 GB, free: 83.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004249/2.016, allocations: 2.043 MB / 0.7178 GB, free: 81.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04856/2.065, allocations: 17.06 MB / 0.7344 GB, free: 63.95 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5807/2.646, allocations: 83.53 MB / 0.816 GB, free: 95.75 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02825/2.674, allocations: 7.708 MB / 0.8235 GB, free: 94.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01089/2.685, allocations: 4.915 MB / 0.8283 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004329/2.686, allocations: 67.78 kB / 0.8284 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.212e-05/2.686, allocations: 74.02 kB / 0.8285 GB, free: 94.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=429): time 9.207e-06/2.686, allocations: 0 / 0.8285 GB, free: 94.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=476): time 0.1422/2.828, allocations: 34.58 MB / 0.8622 GB, free: 89.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/2.828, allocations: 229.5 kB / 0.8624 GB, free: 89.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01419/2.842, allocations: 5.588 MB / 0.8679 GB, free: 88.81 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00108/2.843, allocations: 95.27 kB / 0.868 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004901/2.848, allocations: 5.569 MB / 0.8734 GB, free: 84.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002711/2.851, allocations: 1.733 MB / 0.8751 GB, free: 83.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001577/2.853, allocations: 221.7 kB / 0.8753 GB, free: 83.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001077/2.854, allocations: 0.779 MB / 0.8761 GB, free: 82.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01173/2.866, allocations: 4.604 MB / 0.8806 GB, free: 81.14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01579/2.881, allocations: 10.57 MB / 0.8909 GB, free: 71.61 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0159/2.897, allocations: 7.044 MB / 0.8978 GB, free: 69.53 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002767/2.898, allocations: 60.81 kB / 0.8978 GB, free: 69.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1448) (initialization): time 0.04358/2.941, allocations: 15.82 MB / 0.9133 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001778/2.942, allocations: 96.69 kB / 0.9134 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003179/2.942, allocations: 209.6 kB / 0.9136 GB, free: 64.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007512/2.949, allocations: 1.711 MB / 0.9153 GB, free: 64.56 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01644/2.966, allocations: 2.515 MB / 0.9177 GB, free: 64.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02263/2.989, allocations: 14 MB / 0.9314 GB, free: 50.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01208/3.001, allocations: 0.6441 MB / 0.932 GB, free: 50.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002566/3.003, allocations: 0.6143 MB / 0.9326 GB, free: 49.82 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.002626/3.006, allocations: 0.9118 MB / 0.9335 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001573/3.008, allocations: 0.6015 MB / 0.9341 GB, free: 48.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02415/3.032, allocations: 9.112 MB / 0.943 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001737/3.032, allocations: 94.09 kB / 0.9431 GB, free: 40.57 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.96e-05/3.032, allocations: 15.88 kB / 0.9431 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.271e-05/3.032, allocations: 18.7 kB / 0.9431 GB, free: 40.56 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05979/3.092, allocations: 20.68 MB / 0.9633 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.589e-05/3.092, allocations: 8 kB / 0.9633 GB, free: 23.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007182/3.099, allocations: 0.7464 MB / 0.9641 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006905/3.106, allocations: 1.362 MB / 0.9654 GB, free: 21.64 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/3.107, allocations: 83.66 kB / 0.9655 GB, free: 21.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0284/3.136, allocations: 12.86 MB / 0.978 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.038e-05/3.136, allocations: 15.94 kB / 0.978 GB, free: 9.414 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05281/3.189, allocations: 16.41 MB / 0.9941 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002827/3.192, allocations: 0.6196 MB / 0.9947 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003048/3.195, allocations: 79.52 kB / 0.9948 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006444/3.201, allocations: 296.9 kB / 0.995 GB, free: 9.426 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001562/3.203, allocations: 295.5 kB / 0.9953 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000605/3.203, allocations: 125.6 kB / 0.9954 GB, free: 9.113 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01066/3.214, allocations: 3.869 MB / 0.9992 GB, free: 5.715 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.31e-07/3.214, allocations: 0 / 0.9992 GB, free: 5.715 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0147/3.229, allocations: 1.974 MB / 1.001 GB, free: 3.75 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.4434/3.672, allocations: 19.21 MB / 1.02 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02916/3.702, allocations: 11.13 MB / 1.031 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-05/3.702, allocations: 5.844 kB / 1.031 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01209/3.714, allocations: 4.563 MB / 1.035 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00626/3.72, allocations: 0.7224 MB / 1.036 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06085/3.781, allocations: 19.5 MB / 1.055 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01625/3.797, allocations: 6.12 MB / 1.061 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01786/3.815, allocations: 4.009 MB / 1.065 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009795/3.825, allocations: 3.931 MB / 1.069 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of SimCode: time 2.445e-06/3.825, allocations: 3.062 kB / 1.069 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3171/4.142, allocations: 144.5 MB / 1.21 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/4.142, allocations: 175.6 kB / 1.21 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/12.36, allocations: 0 / 1.21 GB, free: 11.53 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat does not exist to compare? outputFormat=mat