Running command: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.224/2.224, allocations: 234.8 MB / 247 MB, free: 2.062 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.842e-05/3.847e-05, allocations: 11.98 kB / 302.3 MB, free: 14.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 52.35 MB / 354.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.5805, allocations: 93.79 MB / 448.5 MB, free: 3.113 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003555/0.5809, allocations: 103.9 kB / 448.6 MB, free: 3.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7067/1.288, allocations: 99.43 MB / 0.5352 GB, free: 97.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.817e-06/1.288, allocations: 0 / 0.5352 GB, free: 97.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002401/1.288, allocations: 90.2 kB / 0.5352 GB, free: 97.04 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: 1945 * Number of variables: 1945 Notification: Performance of Generate backend data structure: time 0.05023/1.338, allocations: 5.192 MB / 0.5403 GB, free: 95.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/1.338, allocations: 10.06 kB / 0.5403 GB, free: 95.07 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004243/1.343, allocations: 0.9513 MB / 0.5413 GB, free: 94.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02786/1.37, allocations: 3.59 MB / 0.5448 GB, free: 94.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009284/1.38, allocations: 2.638 MB / 0.5473 GB, free: 94.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000445/1.38, allocations: 360.7 kB / 0.5477 GB, free: 94.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003071/1.383, allocations: 477.7 kB / 0.5481 GB, free: 94.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04065/1.424, allocations: 13.36 MB / 0.5612 GB, free: 90.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003258/1.424, allocations: 70.09 kB / 0.5612 GB, free: 90.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00294/1.427, allocations: 235.9 kB / 0.5615 GB, free: 90.78 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003908/1.431, allocations: 1.527 MB / 0.563 GB, free: 90.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03641/1.468, allocations: 11.56 MB / 0.5743 GB, free: 87.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.086/1.554, allocations: 55.67 MB / 0.6286 GB, free: 41.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02321/1.577, allocations: 3.734 MB / 0.6323 GB, free: 38.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003244/1.58, allocations: 1.273 MB / 0.6335 GB, free: 37.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0153/1.596, allocations: 7.603 MB / 0.6409 GB, free: 29.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/1.596, allocations: 55.5 kB / 0.641 GB, free: 29.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=204): time 7.223e-06/1.596, allocations: 0 / 0.641 GB, free: 29.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=222): time 0.03664/1.633, allocations: 10.12 MB / 0.6509 GB, free: 18.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/1.633, allocations: 145.8 kB / 0.651 GB, free: 18.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01005/1.643, allocations: 4.529 MB / 0.6554 GB, free: 14.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003807/1.643, allocations: 53.7 kB / 0.6555 GB, free: 14.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003289/1.646, allocations: 3.908 MB / 0.6593 GB, free: 10.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001179/1.648, allocations: 0.8659 MB / 0.6601 GB, free: 9.328 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/1.649, allocations: 159 kB / 0.6603 GB, free: 9.176 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005725/1.649, allocations: 0.6489 MB / 0.6609 GB, free: 8.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005581/1.655, allocations: 2.198 MB / 0.6631 GB, free: 6.316 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009968/1.665, allocations: 7.18 MB / 0.6701 GB, free: 12.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/1.675, allocations: 4.039 MB / 0.674 GB, free: 8.574 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002161/1.676, allocations: 52 kB / 0.6741 GB, free: 8.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02625/1.702, allocations: 8.59 MB / 0.6825 GB, free: 15.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001663/1.702, allocations: 86.81 kB / 0.6825 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003057/1.702, allocations: 176 kB / 0.6827 GB, free: 15.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/1.703, allocations: 264 kB / 0.683 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/1.715, allocations: 1.848 MB / 0.6848 GB, free: 13.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004579/1.716, allocations: 358.8 kB / 0.6851 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009046/1.725, allocations: 382.4 kB / 0.6855 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002242/1.727, allocations: 0.496 MB / 0.686 GB, free: 12.36 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (999): * Single equations (assignments): 992 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002683/1.73, allocations: 0.702 MB / 0.6867 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.731, allocations: 422.5 kB / 0.6871 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008906/1.74, allocations: 2.076 MB / 0.6891 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003285/1.741, allocations: 46.73 kB / 0.6891 GB, free: 9.102 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.171e-05/1.741, allocations: 0 / 0.6891 GB, free: 9.102 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.597e-05/1.741, allocations: 11.91 kB / 0.6891 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06358/1.804, allocations: 8.346 MB / 0.6973 GB, free: 0.5078 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.473e-05/1.804, allocations: 16 kB / 0.6973 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003554/1.808, allocations: 328.1 kB / 0.6976 GB, free: 176 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003005/1.808, allocations: 44.86 kB / 0.6977 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003883/1.809, allocations: 59.97 kB / 0.6977 GB, free: 68 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3615/2.17, allocations: 1.293 MB / 0.699 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.408e-05/2.17, allocations: 23.78 kB / 0.699 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/2.18, allocations: 6.794 MB / 0.7056 GB, free: 107 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/2.182, allocations: 0.5049 MB / 0.7061 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/2.183, allocations: 53.31 kB / 0.7062 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002941/2.186, allocations: 75.77 kB / 0.7063 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004106/2.187, allocations: 165.8 kB / 0.7064 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/2.187, allocations: 88.56 kB / 0.7065 GB, free: 106.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008378/2.195, allocations: 3.118 MB / 0.7095 GB, free: 106.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.196, allocations: 1.156 kB / 0.7095 GB, free: 106.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009464/2.205, allocations: 1.129 MB / 0.7106 GB, free: 106.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 165 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01192/2.217, allocations: 10.74 MB / 0.7211 GB, free: 99.39 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01222/2.229, allocations: 4.865 MB / 0.7259 GB, free: 99.31 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-05/2.229, allocations: 3.625 kB / 0.7259 GB, free: 99.31 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002812/2.232, allocations: 1.221 MB / 0.7271 GB, free: 99.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004708/2.237, allocations: 0.5211 MB / 0.7276 GB, free: 99.13 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03375/2.271, allocations: 10.35 MB / 0.7377 GB, free: 96.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008266/2.279, allocations: 3.877 MB / 0.7415 GB, free: 95.99 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01109/2.29, allocations: 2.445 MB / 0.7439 GB, free: 95.95 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005161/2.295, allocations: 2.222 MB / 0.746 GB, free: 94.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.923e-06/2.295, allocations: 0 / 0.746 GB, free: 94.79 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1851/2.481, allocations: 86.54 MB / 0.8306 GB, free: 37.11 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/2.481, allocations: 169.8 kB / 0.8307 GB, free: 36.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/8.167, allocations: 0 / 0.8307 GB, free: 36.88 MB / 474.7 MB