Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.678/2.678, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.623e-05, allocations: 0 / 299.6 MB, free: 196 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3963, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2089/0.6053, allocations: 101.7 MB / 456.2 MB, free: 9.305 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/0.6058, allocations: 83.94 kB / 456.3 MB, free: 9.223 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8358/1.442, allocations: 104.2 MB / 0.5473 GB, free: 17.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.442, allocations: 0 / 0.5473 GB, free: 17.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004094/1.442, allocations: 112 kB / 0.5474 GB, free: 17.15 MB / 394.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.02346/1.466, allocations: 5.259 MB / 0.5525 GB, free: 11.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/1.466, allocations: 8.031 kB / 0.5525 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0605/1.526, allocations: 6.931 MB / 0.5593 GB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0283/1.554, allocations: 6.883 MB / 0.566 GB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004241/1.555, allocations: 172 kB / 0.5662 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003254/1.558, allocations: 331.8 kB / 0.5665 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02364/1.582, allocations: 7.553 MB / 0.5739 GB, free: 5.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03582/1.618, allocations: 11.32 MB / 0.5849 GB, free: 9.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004407/1.618, allocations: 67.41 kB / 0.585 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002389/1.621, allocations: 43.98 kB / 0.585 GB, free: 9.301 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003195/1.624, allocations: 1.125 MB / 0.5861 GB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5319/2.156, allocations: 55.92 MB / 0.6408 GB, free: 60.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007064/2.163, allocations: 3.505 MB / 0.6442 GB, free: 59.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004685/2.168, allocations: 2.269 MB / 0.6464 GB, free: 59.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006534/2.168, allocations: 339.1 kB / 0.6467 GB, free: 59.27 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/2.168, allocations: 57.75 kB / 0.6468 GB, free: 59.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=201): time 6.692e-06/2.168, allocations: 3.844 kB / 0.6468 GB, free: 59.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.07038/2.239, allocations: 19.96 MB / 0.6663 GB, free: 55.81 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/2.239, allocations: 205.4 kB / 0.6665 GB, free: 55.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007828/2.247, allocations: 3.658 MB / 0.67 GB, free: 55.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005303/2.247, allocations: 28.92 kB / 0.6701 GB, free: 55.17 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003266/2.251, allocations: 3.811 MB / 0.6738 GB, free: 53.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00129/2.252, allocations: 0.8419 MB / 0.6746 GB, free: 52.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006358/2.253, allocations: 2.25 kB / 0.6746 GB, free: 52.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004415/2.253, allocations: 0.5946 MB / 0.6752 GB, free: 52.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005119/2.258, allocations: 2.17 MB / 0.6773 GB, free: 52.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008234/2.267, allocations: 6.234 MB / 0.6834 GB, free: 46.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/2.275, allocations: 3.648 MB / 0.687 GB, free: 45.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001589/2.276, allocations: 43.72 kB / 0.687 GB, free: 45.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02533/2.301, allocations: 8.235 MB / 0.695 GB, free: 43.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/2.301, allocations: 74.7 kB / 0.6951 GB, free: 43.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002372/2.301, allocations: 147.1 kB / 0.6953 GB, free: 43.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004991/2.306, allocations: 0.9557 MB / 0.6962 GB, free: 43.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/2.318, allocations: 1.571 MB / 0.6977 GB, free: 42.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/2.332, allocations: 7.25 MB / 0.7048 GB, free: 38.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008038/2.34, allocations: 233.9 kB / 0.705 GB, free: 38.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001489/2.342, allocations: 417 kB / 0.7054 GB, free: 38.33 MB / 458.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.001497/2.343, allocations: 480.2 kB / 0.7059 GB, free: 37.95 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01115/2.354, allocations: 3.76 MB / 0.7095 GB, free: 35.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001371/2.356, allocations: 398.8 kB / 0.7099 GB, free: 34.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/2.367, allocations: 3.485 MB / 0.7133 GB, free: 31.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-05/2.367, allocations: 24 kB / 0.7134 GB, free: 31.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/2.367, allocations: 11.38 kB / 0.7134 GB, free: 31.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.546e-05/2.367, allocations: 14.31 kB / 0.7134 GB, free: 31.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02771/2.395, allocations: 8.564 MB / 0.7217 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.048e-05/2.395, allocations: 3.953 kB / 0.7217 GB, free: 24.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003986/2.399, allocations: 359 kB / 0.7221 GB, free: 24.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/2.403, allocations: 0.674 MB / 0.7227 GB, free: 24.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005149/2.404, allocations: 9.359 kB / 0.7228 GB, free: 24.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/2.416, allocations: 6.201 MB / 0.7288 GB, free: 18.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/2.416, allocations: 4 kB / 0.7288 GB, free: 18.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/2.432, allocations: 6.345 MB / 0.735 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002844/2.435, allocations: 0.7085 MB / 0.7357 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00142/2.436, allocations: 4 kB / 0.7357 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003717/2.44, allocations: 85.19 kB / 0.7358 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00078/2.441, allocations: 146.7 kB / 0.7359 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003125/2.441, allocations: 56 kB / 0.736 GB, free: 11.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006461/2.448, allocations: 2.481 MB / 0.7384 GB, free: 9.676 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/2.448, allocations: 2.75 kB / 0.7384 GB, free: 9.676 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00955/2.457, allocations: 1.027 MB / 0.7394 GB, free: 8.652 MB / 458.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.01688/2.474, allocations: 7.336 MB / 0.7466 GB, free: 2.031 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01598/2.49, allocations: 5.496 MB / 0.7519 GB, free: 13.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/2.49, allocations: 0 / 0.7519 GB, free: 13.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006254/2.497, allocations: 1.951 MB / 0.7538 GB, free: 11.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004673/2.501, allocations: 442 kB / 0.7543 GB, free: 11.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0427/2.544, allocations: 10.82 MB / 0.7648 GB, free: 1.703 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01084/2.555, allocations: 4.11 MB / 0.7688 GB, free: 14.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01194/2.567, allocations: 2.18 MB / 0.771 GB, free: 13.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006996/2.574, allocations: 2.436 MB / 0.7734 GB, free: 11 MB / 490.7 MB Notification: Performance of SimCode: time 1.442e-06/2.574, allocations: 0 / 0.7734 GB, free: 11 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7026/3.277, allocations: 86.33 MB / 0.8577 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002418/3.277, allocations: 153.4 kB / 0.8578 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.697/9.974, allocations: 0 / 0.8578 GB, free: 133.4 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat