Running command: "" <> buildModelFMU(PlanarMechanics.Examples.CounterSpin,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CounterSpin",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.192/2.192, allocations: 234.8 MB / 247 MB, free: 1.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.678e-05/3.687e-05, allocations: 4.219 kB / 302.3 MB, free: 14.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 52.37 MB / 354.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4848/0.5995, allocations: 85.59 MB / 440.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.5998, allocations: 71.97 kB / 440.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2177/0.8175, allocations: 52.13 MB / 492.5 MB, free: 6.609 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8176, allocations: 0 / 492.5 MB, free: 6.609 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001103/0.8177, allocations: 40 kB / 492.5 MB, free: 6.57 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.01531/0.8331, allocations: 2.577 MB / 495.1 MB, free: 3.938 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.145e-05/0.8332, allocations: 12.03 kB / 495.1 MB, free: 3.926 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002774/0.8359, allocations: 0.4912 MB / 495.6 MB, free: 3.426 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01599/0.852, allocations: 1.861 MB / 497.5 MB, free: 1.559 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005357/0.8574, allocations: 1.481 MB / 498.9 MB, free: 36 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.8578, allocations: 184.7 kB / 499.1 MB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001727/0.8595, allocations: 239.8 kB / 499.3 MB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0204/0.8799, allocations: 6.551 MB / 0.494 GB, free: 8.766 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.8801, allocations: 19.86 kB / 0.4941 GB, free: 8.746 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008413/0.881, allocations: 107.9 kB / 0.4942 GB, free: 8.641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002071/0.883, allocations: 0.7897 MB / 0.4949 GB, free: 7.848 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02018/0.9033, allocations: 6.195 MB / 0.501 GB, free: 1.645 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3818/1.285, allocations: 20.95 MB / 0.5214 GB, free: 102.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/1.292, allocations: 1.889 MB / 0.5233 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/1.294, allocations: 0.5769 MB / 0.5238 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007961/1.302, allocations: 3.359 MB / 0.5271 GB, free: 100.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/1.302, allocations: 37.31 kB / 0.5272 GB, free: 100.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 5.48e-06/1.302, allocations: 0 / 0.5272 GB, free: 100.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.005806/1.308, allocations: 1.34 MB / 0.5285 GB, free: 100 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/1.308, allocations: 59.45 kB / 0.5285 GB, free: 99.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005015/1.313, allocations: 1.945 MB / 0.5304 GB, free: 99.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/1.313, allocations: 38.83 kB / 0.5305 GB, free: 99.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001697/1.315, allocations: 1.82 MB / 0.5322 GB, free: 98.84 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005967/1.316, allocations: 369.4 kB / 0.5326 GB, free: 98.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/1.316, allocations: 63.84 kB / 0.5327 GB, free: 98.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000282/1.316, allocations: 439.7 kB / 0.5331 GB, free: 98.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/1.319, allocations: 0.9552 MB / 0.534 GB, free: 98.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004149/1.323, allocations: 2.811 MB / 0.5368 GB, free: 95.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004491/1.328, allocations: 1.69 MB / 0.5384 GB, free: 95.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.694e-05/1.328, allocations: 19.28 kB / 0.5384 GB, free: 95.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01127/1.339, allocations: 3.527 MB / 0.5419 GB, free: 95.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.138e-05/1.339, allocations: 37.22 kB / 0.5419 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001268/1.339, allocations: 66.69 kB / 0.542 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/1.34, allocations: 98.16 kB / 0.5421 GB, free: 95.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004795/1.344, allocations: 0.7098 MB / 0.5428 GB, free: 95.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000174/1.345, allocations: 133.3 kB / 0.5429 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004099/1.349, allocations: 468.5 kB / 0.5433 GB, free: 95.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000815/1.35, allocations: 196.2 kB / 0.5435 GB, free: 95.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 305 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (386): * Single equations (assignments): 382 * Array equations: 4 * 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.0006534/1.35, allocations: 336.7 kB / 0.5438 GB, free: 95.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004695/1.351, allocations: 166 kB / 0.544 GB, free: 95.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002727/1.353, allocations: 1.145 MB / 0.5451 GB, free: 94.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001997/1.354, allocations: 20.31 kB / 0.5451 GB, free: 94.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.354, allocations: 0 / 0.5451 GB, free: 94.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/1.354, allocations: 3.281 kB / 0.5451 GB, free: 94.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/1.364, allocations: 3.88 MB / 0.5489 GB, free: 94.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.364, allocations: 7.938 kB / 0.5489 GB, free: 94.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/1.365, allocations: 131 kB / 0.5491 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/1.365, allocations: 6.906 kB / 0.5491 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.107e-05/1.365, allocations: 22.44 kB / 0.5491 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.044e-05/1.365, allocations: 9.906 kB / 0.5491 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.365, allocations: 3.688 kB / 0.5491 GB, free: 94.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/1.369, allocations: 2.01 MB / 0.5511 GB, free: 93.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007816/1.37, allocations: 289 kB / 0.5513 GB, free: 93.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003187/1.37, allocations: 14.47 kB / 0.5513 GB, free: 93.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/1.371, allocations: 37.11 kB / 0.5514 GB, free: 93.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/1.371, allocations: 48.78 kB / 0.5514 GB, free: 93.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.254e-05/1.372, allocations: 29.5 kB / 0.5515 GB, free: 93.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002914/1.374, allocations: 1.385 MB / 0.5528 GB, free: 93.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.375, allocations: 0 / 0.5528 GB, free: 93.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004/1.379, allocations: 0.7087 MB / 0.5535 GB, free: 92.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.r[1],body.v[1],body.phi,slipBasedRolling.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * Array equations: 4 * 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 Backend phase and start with SimCode phase: time 0.004141/1.383, allocations: 3.248 MB / 0.5567 GB, free: 90.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004896/1.388, allocations: 2.063 MB / 0.5587 GB, free: 90.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/1.388, allocations: 6.781 kB / 0.5587 GB, free: 90.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/1.389, allocations: 0.4931 MB / 0.5592 GB, free: 89.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/1.391, allocations: 284.5 kB / 0.5594 GB, free: 89.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/1.407, allocations: 5.157 MB / 0.5645 GB, free: 87.81 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003176/1.411, allocations: 2.342 MB / 0.5668 GB, free: 86.67 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004233/1.415, allocations: 1.005 MB / 0.5678 GB, free: 86.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002229/1.417, allocations: 1.047 MB / 0.5688 GB, free: 85.74 MB / 442.7 MB Notification: Performance of SimCode: time 1.763e-06/1.417, allocations: 0 / 0.5688 GB, free: 85.74 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09749/1.515, allocations: 41.21 MB / 0.609 GB, free: 58.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/1.515, allocations: 137.5 kB / 0.6092 GB, free: 58.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.543/5.058, allocations: 0 / 0.6092 GB, free: 58.13 MB / 442.7 MB