Running command: "" <> buildModelFMU(PlanarMechanics.Examples.KinematicLoop_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_KinematicLoop_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.079/2.079, allocations: 234.8 MB / 247 MB, free: 2.07 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.984e-05/3.995e-05, allocations: 4 kB / 302.3 MB, free: 14.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 52.37 MB / 354.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4541/0.5755, allocations: 88.38 MB / 443.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.5759, allocations: 78.39 kB / 443.1 MB, free: 8.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3604/0.9363, allocations: 74.12 MB / 0.5051 GB, free: 13.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.9363, allocations: 4 kB / 0.5051 GB, free: 13.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002528/0.9366, allocations: 60 kB / 0.5052 GB, free: 13.81 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: 1368 * Number of variables: 1368 Notification: Performance of Generate backend data structure: time 0.03416/0.9708, allocations: 3.917 MB / 0.509 GB, free: 9.836 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.863e-05/0.9709, allocations: 12.03 kB / 0.509 GB, free: 9.824 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004733/0.9757, allocations: 0.6768 MB / 0.5097 GB, free: 9.137 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02255/0.9983, allocations: 2.004 MB / 0.5117 GB, free: 7.125 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007172/1.006, allocations: 1.896 MB / 0.5135 GB, free: 5.184 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000542/1.006, allocations: 266.9 kB / 0.5138 GB, free: 4.922 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002643/1.009, allocations: 347.8 kB / 0.5141 GB, free: 4.582 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3656/1.374, allocations: 8.774 MB / 0.5227 GB, free: 97.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003168/1.375, allocations: 29.33 kB / 0.5227 GB, free: 97.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00241/1.377, allocations: 161 kB / 0.5228 GB, free: 97.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003877/1.381, allocations: 1.039 MB / 0.5239 GB, free: 97.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03711/1.418, allocations: 7.932 MB / 0.5316 GB, free: 97.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06465/1.483, allocations: 30.02 MB / 0.5609 GB, free: 81.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/1.496, allocations: 2.968 MB / 0.5638 GB, free: 80.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002891/1.499, allocations: 1.082 MB / 0.5649 GB, free: 79.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/1.511, allocations: 6.314 MB / 0.571 GB, free: 75.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/1.511, allocations: 46.94 kB / 0.5711 GB, free: 75.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 5.861e-06/1.511, allocations: 0 / 0.5711 GB, free: 75.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=239): time 0.04403/1.555, allocations: 10.58 MB / 0.5814 GB, free: 71.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01101/1.567, allocations: 6.446 MB / 0.5877 GB, free: 67.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005831/1.572, allocations: 2.683 MB / 0.5903 GB, free: 66.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004118/1.573, allocations: 63.03 kB / 0.5904 GB, free: 66.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001866/1.575, allocations: 2.416 MB / 0.5927 GB, free: 64.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/1.576, allocations: 0.8665 MB / 0.5936 GB, free: 64.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005284/1.576, allocations: 99.75 kB / 0.5937 GB, free: 63.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003731/1.577, allocations: 0.5171 MB / 0.5942 GB, free: 63.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004178/1.581, allocations: 1.61 MB / 0.5958 GB, free: 63.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005884/1.587, allocations: 4.188 MB / 0.5999 GB, free: 59.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005983/1.593, allocations: 2.656 MB / 0.6025 GB, free: 58.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.198e-05/1.593, allocations: 25.88 kB / 0.6025 GB, free: 58.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=668) (initialization): time 0.01764/1.611, allocations: 6.224 MB / 0.6086 GB, free: 54.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.53e-05/1.611, allocations: 44.19 kB / 0.6086 GB, free: 54.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/1.611, allocations: 92 kB / 0.6087 GB, free: 54.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002954/1.614, allocations: 0.7059 MB / 0.6094 GB, free: 53.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006515/1.621, allocations: 1.071 MB / 0.6104 GB, free: 53.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01832/1.639, allocations: 12.35 MB / 0.6225 GB, free: 41.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005797/1.645, allocations: 299.1 kB / 0.6228 GB, free: 40.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001119/1.646, allocations: 302.8 kB / 0.6231 GB, free: 40.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 413 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 579 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(2,100.0%) 17,(1,100.0%) 1,(2,100.0%) 10} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001132/1.647, allocations: 476.6 kB / 0.6235 GB, free: 40.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007338/1.648, allocations: 288.2 kB / 0.6238 GB, free: 39.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009098/1.657, allocations: 3.34 MB / 0.627 GB, free: 36.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007319/1.664, allocations: 2.876 MB / 0.6299 GB, free: 34.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/1.664, allocations: 11.95 kB / 0.6299 GB, free: 34.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.704e-05/1.664, allocations: 14.64 kB / 0.6299 GB, free: 34.42 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02764/1.692, allocations: 10.46 MB / 0.6401 GB, free: 25.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.062e-05/1.692, allocations: 7.703 kB / 0.6401 GB, free: 25.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/1.694, allocations: 272.6 kB / 0.6404 GB, free: 25.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003233/1.698, allocations: 0.7437 MB / 0.6411 GB, free: 24.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003755/1.698, allocations: 52.78 kB / 0.6411 GB, free: 24.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02594/1.724, allocations: 12.26 MB / 0.6531 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01375/1.738, allocations: 5.71 MB / 0.6587 GB, free: 6.305 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01809/1.756, allocations: 5.122 MB / 0.6637 GB, free: 1.004 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/1.758, allocations: 377.4 kB / 0.664 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/1.759, allocations: 43.98 kB / 0.6641 GB, free: 0.5703 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003856/1.763, allocations: 108.8 kB / 0.6642 GB, free: 476 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007679/1.764, allocations: 165.7 kB / 0.6644 GB, free: 312 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003181/1.764, allocations: 69.23 kB / 0.6644 GB, free: 244 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006768/1.771, allocations: 1.884 MB / 0.6663 GB, free: 14.35 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.771, allocations: 0 / 0.6663 GB, free: 14.35 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01067/1.782, allocations: 1.004 MB / 0.6672 GB, free: 13.35 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 ($STATESET2.x,$STATESET1.x[2],$STATESET1.x[1],revolute4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 149 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 15,(1,100.0%) 1,(3,88.9%) 13} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.02092/1.803, allocations: 6.534 MB / 0.6736 GB, free: 6.703 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01701/1.82, allocations: 4.508 MB / 0.678 GB, free: 2.168 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/1.82, allocations: 0 / 0.678 GB, free: 2.168 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008094/1.828, allocations: 2.055 MB / 0.68 GB, free: 68 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003934/1.832, allocations: 431 kB / 0.6804 GB, free: 15.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02759/1.86, allocations: 7.85 MB / 0.6881 GB, free: 7.719 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006416/1.866, allocations: 3.046 MB / 0.6911 GB, free: 4.648 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006904/1.873, allocations: 1.408 MB / 0.6925 GB, free: 3.246 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004282/1.877, allocations: 1.636 MB / 0.6941 GB, free: 1.609 MB / 474.7 MB Notification: Performance of SimCode: time 1.563e-06/1.877, allocations: 0 / 0.6941 GB, free: 1.609 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5145/2.392, allocations: 70.77 MB / 0.7632 GB, free: 96.98 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/2.392, allocations: 208.4 kB / 0.7634 GB, free: 96.74 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.208/7.6, allocations: 0 / 0.7634 GB, free: 96.74 MB / 474.7 MB