Running command: "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.14/2.14, allocations: 234.8 MB / 247 MB, free: 2.047 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.106e-05, allocations: 8.203 kB / 302.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 52.36 MB / 354.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5733/0.7145, allocations: 83.31 MB / 438 MB, free: 13.58 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.7149, allocations: 72.56 kB / 438 MB, free: 13.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2108/0.9257, allocations: 47.48 MB / 485.5 MB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.9258, allocations: 0 / 485.5 MB, free: 13.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.146e-05/0.9259, allocations: 36 kB / 485.6 MB, free: 13.6 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.008973/0.9349, allocations: 2.178 MB / 487.7 MB, free: 11.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.9349, allocations: 16.03 kB / 487.8 MB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001753/0.9367, allocations: 465 kB / 488.2 MB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01529/0.952, allocations: 1.841 MB / 490.1 MB, free: 9.035 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004939/0.957, allocations: 1.407 MB / 491.5 MB, free: 7.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.9573, allocations: 168.3 kB / 491.6 MB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/0.9588, allocations: 219.9 kB / 491.8 MB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01814/0.9769, allocations: 6.006 MB / 497.8 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.9771, allocations: 15.88 kB / 497.9 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006572/0.9777, allocations: 99.91 kB / 498 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00179/0.9795, allocations: 0.7074 MB / 498.7 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01807/0.9976, allocations: 5.781 MB / 0.4926 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/1.043, allocations: 18.16 MB / 0.5104 GB, free: 7.848 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004364/1.047, allocations: 1.514 MB / 0.5118 GB, free: 6.211 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/1.049, allocations: 0.5067 MB / 0.5123 GB, free: 5.699 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006235/1.055, allocations: 2.147 MB / 0.5144 GB, free: 3.426 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/1.055, allocations: 39 kB / 0.5145 GB, free: 3.379 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 4.989e-06/1.055, allocations: 4 kB / 0.5145 GB, free: 3.375 MB / 442.7 MB Notification: Performance of matching and sorting (n=80): time 0.004277/1.059, allocations: 1.066 MB / 0.5155 GB, free: 2.301 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/1.059, allocations: 55.84 kB / 0.5156 GB, free: 2.234 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004707/1.064, allocations: 1.791 MB / 0.5173 GB, free: 448 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000158/1.064, allocations: 37.64 kB / 0.5173 GB, free: 404 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2914/1.356, allocations: 1.643 MB / 0.5189 GB, free: 118.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005871/1.356, allocations: 325.5 kB / 0.5193 GB, free: 118 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/1.357, allocations: 52.38 kB / 0.5193 GB, free: 118 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004379/1.357, allocations: 488.1 kB / 0.5198 GB, free: 117.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/1.36, allocations: 0.866 MB / 0.5206 GB, free: 117.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003938/1.364, allocations: 2.501 MB / 0.5231 GB, free: 115.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003906/1.368, allocations: 1.511 MB / 0.5245 GB, free: 115.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.843e-05/1.368, allocations: 20.62 kB / 0.5246 GB, free: 115.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.009897/1.378, allocations: 3.152 MB / 0.5276 GB, free: 115.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.78e-05/1.378, allocations: 33.97 kB / 0.5277 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001139/1.378, allocations: 58.73 kB / 0.5277 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/1.378, allocations: 89 kB / 0.5278 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00408/1.382, allocations: 0.6124 MB / 0.5284 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001477/1.383, allocations: 119.6 kB / 0.5285 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/1.386, allocations: 410.6 kB / 0.5289 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007378/1.387, allocations: 173.1 kB / 0.5291 GB, free: 115.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * 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 (334): * Single equations (assignments): 330 * 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.0006188/1.388, allocations: 308 kB / 0.5294 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/1.388, allocations: 158.3 kB / 0.5295 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002589/1.391, allocations: 1.003 MB / 0.5305 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00019/1.391, allocations: 20.38 kB / 0.5305 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/1.391, allocations: 3.938 kB / 0.5305 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/1.391, allocations: 8.156 kB / 0.5305 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/1.401, allocations: 3.522 MB / 0.534 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/1.402, allocations: 1.906 kB / 0.534 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/1.403, allocations: 105.8 kB / 0.5341 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/1.403, allocations: 2.844 kB / 0.5341 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.141e-05/1.403, allocations: 17.2 kB / 0.5341 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.106e-05/1.403, allocations: 7.297 kB / 0.5341 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.403, allocations: 1.188 kB / 0.5341 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003969/1.407, allocations: 1.724 MB / 0.5358 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007321/1.408, allocations: 260.2 kB / 0.536 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004195/1.408, allocations: 16.02 kB / 0.5361 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/1.409, allocations: 33.05 kB / 0.5361 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/1.409, allocations: 34.95 kB / 0.5361 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/1.409, allocations: 25.5 kB / 0.5361 GB, free: 113.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00332/1.413, allocations: 1.28 MB / 0.5374 GB, free: 113.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.21e-07/1.413, allocations: 0 / 0.5374 GB, free: 113.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003859/1.417, allocations: 0.6414 MB / 0.538 GB, free: 113.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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.004148/1.421, allocations: 2.612 MB / 0.5406 GB, free: 112.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004678/1.426, allocations: 1.846 MB / 0.5424 GB, free: 111.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.426, allocations: 0 / 0.5424 GB, free: 111.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009927/1.427, allocations: 451.9 kB / 0.5428 GB, free: 111.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/1.429, allocations: 269.4 kB / 0.5431 GB, free: 111.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/1.444, allocations: 4.851 MB / 0.5478 GB, free: 109.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003252/1.447, allocations: 2.209 MB / 0.55 GB, free: 108.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0042/1.451, allocations: 0.8903 MB / 0.5508 GB, free: 108.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00226/1.453, allocations: 0.9317 MB / 0.5517 GB, free: 107.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/1.454, allocations: 0 / 0.5517 GB, free: 107.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08934/1.543, allocations: 37.81 MB / 0.5887 GB, free: 87.39 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/1.543, allocations: 138.3 kB / 0.5888 GB, free: 87.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.499/5.042, allocations: 0 / 0.5888 GB, free: 87.16 MB / 442.7 MB