Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.422e-05, allocations: 4 kB / 292.8 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 50.42 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4818/0.5925, allocations: 99.63 MB / 442.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003235/0.5929, allocations: 81.64 kB / 442.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7616/1.355, allocations: 104.3 MB / 0.5344 GB, free: 92.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.355, allocations: 3.594 kB / 0.5344 GB, free: 92.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005478/1.355, allocations: 103.6 kB / 0.5345 GB, free: 92.9 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.05027/1.405, allocations: 5.107 MB / 0.5395 GB, free: 90.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/1.406, allocations: 13.12 kB / 0.5395 GB, free: 90.86 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0125/1.418, allocations: 0.895 MB / 0.5404 GB, free: 90.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06106/1.479, allocations: 6.897 MB / 0.5471 GB, free: 90.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02582/1.505, allocations: 6.419 MB / 0.5534 GB, free: 89.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005764/1.506, allocations: 392.9 kB / 0.5537 GB, free: 89.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003245/1.509, allocations: 0.515 MB / 0.5542 GB, free: 89.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03919/1.548, allocations: 12.15 MB / 0.5661 GB, free: 86.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000501/1.549, allocations: 77.41 kB / 0.5662 GB, free: 86.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002899/1.552, allocations: 249.2 kB / 0.5664 GB, free: 86.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/1.554, allocations: 1.066 MB / 0.5675 GB, free: 86.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.031/1.585, allocations: 9.674 MB / 0.5769 GB, free: 85.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0837/1.669, allocations: 55.56 MB / 0.6312 GB, free: 43.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01775/1.687, allocations: 4.126 MB / 0.6352 GB, free: 41.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00451/1.691, allocations: 2.209 MB / 0.6374 GB, free: 39.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/1.719, allocations: 9.363 MB / 0.6465 GB, free: 31.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/1.719, allocations: 51.5 kB / 0.6466 GB, free: 31.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 5.62e-06/1.719, allocations: 0 / 0.6466 GB, free: 31.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.07416/1.793, allocations: 15.08 MB / 0.6613 GB, free: 18.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/1.793, allocations: 204.9 kB / 0.6615 GB, free: 18.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01067/1.804, allocations: 4.096 MB / 0.6655 GB, free: 14.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004865/1.804, allocations: 57.7 kB / 0.6655 GB, free: 14.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003465/1.808, allocations: 3.65 MB / 0.6691 GB, free: 11.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00118/1.809, allocations: 0.7592 MB / 0.6698 GB, free: 10.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000914/1.81, allocations: 128 kB / 0.67 GB, free: 10.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006038/1.811, allocations: 0.5662 MB / 0.6705 GB, free: 10.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005472/1.816, allocations: 2.032 MB / 0.6725 GB, free: 8.441 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007966/1.824, allocations: 5.837 MB / 0.6782 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008671/1.833, allocations: 3.456 MB / 0.6816 GB, free: 14.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/1.833, allocations: 40 kB / 0.6816 GB, free: 14 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.02653/1.86, allocations: 8.013 MB / 0.6894 GB, free: 6.008 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/1.86, allocations: 64 kB / 0.6895 GB, free: 5.945 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000239/1.86, allocations: 136 kB / 0.6896 GB, free: 5.812 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00505/1.865, allocations: 0.9262 MB / 0.6905 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009603/1.875, allocations: 1.439 MB / 0.6919 GB, free: 3.441 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3509/2.226, allocations: 7.416 MB / 0.6992 GB, free: 94.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007836/2.234, allocations: 343 kB / 0.6995 GB, free: 94.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/2.236, allocations: 383.3 kB / 0.6999 GB, free: 94.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (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 (760): * Single equations (assignments): 755 * 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.002656/2.238, allocations: 0.5968 MB / 0.7005 GB, free: 94.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/2.24, allocations: 414.9 kB / 0.7008 GB, free: 94.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/2.252, allocations: 3.161 MB / 0.7039 GB, free: 94.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-05/2.253, allocations: 26 kB / 0.704 GB, free: 94.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.36e-05/2.253, allocations: 7.953 kB / 0.704 GB, free: 94.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.353e-05/2.253, allocations: 9.641 kB / 0.704 GB, free: 94.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03171/2.284, allocations: 8.524 MB / 0.7123 GB, free: 93.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.721e-05/2.285, allocations: 1.375 kB / 0.7123 GB, free: 93.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/2.288, allocations: 305.9 kB / 0.7126 GB, free: 93.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004225/2.292, allocations: 0.6859 MB / 0.7133 GB, free: 93.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004839/2.292, allocations: 31.41 kB / 0.7133 GB, free: 93.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/2.305, allocations: 6.54 MB / 0.7197 GB, free: 90.97 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.902e-06/2.305, allocations: 3.188 kB / 0.7197 GB, free: 90.97 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/2.32, allocations: 5.69 MB / 0.7252 GB, free: 90.35 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001798/2.322, allocations: 457.5 kB / 0.7257 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001701/2.323, allocations: 27.16 kB / 0.7257 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003895/2.327, allocations: 100.4 kB / 0.7258 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008029/2.328, allocations: 121.9 kB / 0.7259 GB, free: 90.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002844/2.328, allocations: 52.94 kB / 0.726 GB, free: 90.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0085/2.337, allocations: 2.888 MB / 0.7288 GB, free: 89.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.222e-06/2.337, allocations: 0 / 0.7288 GB, free: 89.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009021/2.346, allocations: 1.131 MB / 0.7299 GB, free: 89.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * 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.01588/2.362, allocations: 6.551 MB / 0.7363 GB, free: 87.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01308/2.375, allocations: 5.045 MB / 0.7412 GB, free: 85.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/2.375, allocations: 2.719 kB / 0.7412 GB, free: 85.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005069/2.38, allocations: 1.746 MB / 0.7429 GB, free: 84.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004934/2.385, allocations: 0.5107 MB / 0.7434 GB, free: 84.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03804/2.423, allocations: 10.47 MB / 0.7536 GB, free: 80.87 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/2.434, allocations: 3.968 MB / 0.7575 GB, free: 79.44 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01034/2.444, allocations: 1.997 MB / 0.7595 GB, free: 79.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007522/2.452, allocations: 2.359 MB / 0.7618 GB, free: 77.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.893e-06/2.452, allocations: 0 / 0.7618 GB, free: 77.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/2.712, allocations: 88.36 MB / 0.8481 GB, free: 9.383 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/2.712, allocations: 199.1 kB / 0.8482 GB, free: 9.156 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.539/9.251, allocations: 0 / 0.8482 GB, free: 9.156 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat does not exist to compare? outputFormat=mat