Running command: "" <> buildModelFMU(PlanarMechanics.Examples.MeasureDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_MeasureDemo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.242/2.242, allocations: 234.8 MB / 247 MB, free: 2.074 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.055e-05/4.068e-05, allocations: 7.984 kB / 302.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1197, allocations: 52.37 MB / 354.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4702/0.5899, allocations: 95.83 MB / 450.5 MB, free: 1.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5902, allocations: 71.97 kB / 450.6 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2119/0.8021, allocations: 51.14 MB / 0.49 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.8022, allocations: 0 / 0.49 GB, free: 13.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000194/0.8024, allocations: 63.94 kB / 0.49 GB, free: 13.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 869 * Number of variables: 869 Notification: Performance of Generate backend data structure: time 0.01746/0.8199, allocations: 2.947 MB / 0.4929 GB, free: 10.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.82, allocations: 8.031 kB / 0.4929 GB, free: 10.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00172/0.8217, allocations: 464.9 kB / 0.4933 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/0.8231, allocations: 308.2 kB / 0.4936 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004165/0.8273, allocations: 1.185 MB / 0.4948 GB, free: 8.785 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002862/0.8276, allocations: 221.9 kB / 0.495 GB, free: 8.566 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/0.8287, allocations: 307.9 kB / 0.4953 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.8444, allocations: 4.743 MB / 0.4999 GB, free: 3.055 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.8446, allocations: 39.62 kB / 0.5 GB, free: 3.016 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004681/0.8451, allocations: 136 kB / 0.5001 GB, free: 2.883 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007851/0.8459, allocations: 344.2 kB / 0.5004 GB, free: 2.543 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/0.8593, allocations: 3.479 MB / 0.5038 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3584/1.218, allocations: 21.73 MB / 0.525 GB, free: 93.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009505/1.227, allocations: 1.877 MB / 0.5269 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001944/1.229, allocations: 0.6554 MB / 0.5275 GB, free: 92.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01215/1.242, allocations: 5.499 MB / 0.5329 GB, free: 89.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/1.242, allocations: 48.83 kB / 0.5329 GB, free: 89.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=102): time 4.058e-06/1.242, allocations: 0 / 0.5329 GB, free: 89.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=140): time 0.04029/1.282, allocations: 8.517 MB / 0.5413 GB, free: 88.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/1.282, allocations: 65.84 kB / 0.5413 GB, free: 88.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003702/1.286, allocations: 1.57 MB / 0.5429 GB, free: 88.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003167/1.286, allocations: 48.08 kB / 0.5429 GB, free: 88.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/1.288, allocations: 1.731 MB / 0.5446 GB, free: 87.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.289, allocations: 0.5263 MB / 0.5451 GB, free: 86.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/1.289, allocations: 77.09 kB / 0.5452 GB, free: 86.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004764/1.29, allocations: 0.502 MB / 0.5457 GB, free: 86.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003463/1.293, allocations: 1.15 MB / 0.5468 GB, free: 86.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004693/1.298, allocations: 3.307 MB / 0.55 GB, free: 83.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004394/1.303, allocations: 1.864 MB / 0.5518 GB, free: 83.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.399e-05/1.303, allocations: 23.5 kB / 0.5519 GB, free: 83.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.0123/1.315, allocations: 4.453 MB / 0.5562 GB, free: 83.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/1.315, allocations: 34.94 kB / 0.5562 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.586e-05/1.315, allocations: 82.02 kB / 0.5563 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001442/1.317, allocations: 368 kB / 0.5567 GB, free: 83.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005707/1.322, allocations: 0.8925 MB / 0.5575 GB, free: 83.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007101/1.33, allocations: 3.855 MB / 0.5613 GB, free: 81.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00426/1.334, allocations: 217.2 kB / 0.5615 GB, free: 81.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007213/1.335, allocations: 229.5 kB / 0.5617 GB, free: 81.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 352 * Number of states: 0 () * Number of discrete variables: 18 (revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 463 * Array equations: 0 * 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 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008237/1.336, allocations: 402.8 kB / 0.5621 GB, free: 81.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/1.336, allocations: 186.1 kB / 0.5623 GB, free: 80.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006113/1.342, allocations: 2.545 MB / 0.5648 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/1.342, allocations: 15.25 kB / 0.5648 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/1.342, allocations: 3.406 kB / 0.5648 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.616e-05/1.342, allocations: 6.422 kB / 0.5648 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/1.359, allocations: 6.286 MB / 0.5709 GB, free: 77.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/1.359, allocations: 3.375 kB / 0.5709 GB, free: 77.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.361, allocations: 271.8 kB / 0.5712 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001106/1.362, allocations: 256.7 kB / 0.5715 GB, free: 77.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/1.363, allocations: 30.66 kB / 0.5715 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005369/1.368, allocations: 3.168 MB / 0.5746 GB, free: 75.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.368, allocations: 6.656 kB / 0.5746 GB, free: 75.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0079/1.376, allocations: 4.08 MB / 0.5786 GB, free: 73.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007523/1.377, allocations: 246.2 kB / 0.5788 GB, free: 73.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004196/1.377, allocations: 29.92 kB / 0.5788 GB, free: 73.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/1.379, allocations: 106.8 kB / 0.5789 GB, free: 73.33 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003006/1.379, allocations: 90.31 kB / 0.579 GB, free: 73.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.379, allocations: 42.44 kB / 0.5791 GB, free: 73.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002172/1.381, allocations: 1.053 MB / 0.5801 GB, free: 72.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.381, allocations: 0 / 0.5801 GB, free: 72.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004516/1.386, allocations: 0.639 MB / 0.5807 GB, free: 72.81 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 120 * Array equations: 0 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008562/1.395, allocations: 5.635 MB / 0.5862 GB, free: 69.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007195/1.402, allocations: 3.072 MB / 0.5892 GB, free: 68.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.402, allocations: 0.625 kB / 0.5892 GB, free: 68.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002601/1.405, allocations: 1.212 MB / 0.5904 GB, free: 67.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002841/1.407, allocations: 380.7 kB / 0.5908 GB, free: 67.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/1.422, allocations: 4.627 MB / 0.5953 GB, free: 63.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002132/1.424, allocations: 1.875 MB / 0.5971 GB, free: 61.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003839/1.428, allocations: 0.8576 MB / 0.5979 GB, free: 61.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002277/1.43, allocations: 1.06 MB / 0.599 GB, free: 60.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/1.43, allocations: 0 / 0.599 GB, free: 60.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/1.563, allocations: 45.04 MB / 0.643 GB, free: 21.05 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/1.563, allocations: 159.1 kB / 0.6431 GB, free: 20.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.977/5.54, allocations: 4 kB / 0.6431 GB, free: 20.83 MB / 442.7 MB