Running command: "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.234/2.234, allocations: 234.8 MB / 247 MB, free: 2.023 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.586e-05/3.592e-05, allocations: 4 kB / 302.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 52.37 MB / 354.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4669/0.5821, allocations: 96.27 MB / 450.9 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5824, allocations: 85.02 kB / 451 MB, free: 496 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7687/1.351, allocations: 109.2 MB / 0.5471 GB, free: 95.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.351, allocations: 0 / 0.5471 GB, free: 95.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002245/1.351, allocations: 94.94 kB / 0.5472 GB, free: 95.25 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: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.02269/1.374, allocations: 4.77 MB / 0.5518 GB, free: 93.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/1.374, allocations: 15.38 kB / 0.5518 GB, free: 93.17 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005207/1.379, allocations: 1.025 MB / 0.5528 GB, free: 93.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0293/1.409, allocations: 3.698 MB / 0.5565 GB, free: 92.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009889/1.419, allocations: 2.855 MB / 0.5592 GB, free: 92.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005745/1.419, allocations: 399.5 kB / 0.5596 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003751/1.423, allocations: 0.5094 MB / 0.5601 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04672/1.47, allocations: 13.92 MB / 0.5737 GB, free: 86.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003789/1.47, allocations: 64.78 kB / 0.5738 GB, free: 86.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00311/1.473, allocations: 253.2 kB / 0.574 GB, free: 86.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004921/1.478, allocations: 1.593 MB / 0.5756 GB, free: 86.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04398/1.522, allocations: 11.92 MB / 0.5872 GB, free: 82.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08739/1.61, allocations: 57.84 MB / 0.6437 GB, free: 27.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/1.621, allocations: 3.824 MB / 0.6474 GB, free: 23.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003237/1.625, allocations: 1.305 MB / 0.6487 GB, free: 22.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01595/1.64, allocations: 6.833 MB / 0.6554 GB, free: 14.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/1.641, allocations: 51.56 kB / 0.6554 GB, free: 14.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=206): time 6.813e-06/1.641, allocations: 0 / 0.6554 GB, free: 14.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=228): time 0.03383/1.674, allocations: 10.6 MB / 0.6658 GB, free: 4.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/1.675, allocations: 149.8 kB / 0.6659 GB, free: 3.844 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01192/1.686, allocations: 4.75 MB / 0.6706 GB, free: 15.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004501/1.687, allocations: 49.7 kB / 0.6706 GB, free: 15.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005133/1.692, allocations: 4.104 MB / 0.6746 GB, free: 10.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001547/1.694, allocations: 0.8876 MB / 0.6755 GB, free: 10.05 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/1.695, allocations: 171.6 kB / 0.6757 GB, free: 9.891 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008548/1.696, allocations: 0.661 MB / 0.6763 GB, free: 9.223 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007503/1.703, allocations: 2.382 MB / 0.6786 GB, free: 6.832 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3666/2.07, allocations: 7.455 MB / 0.6859 GB, free: 93.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/2.083, allocations: 4.335 MB / 0.6901 GB, free: 93.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004454/2.083, allocations: 52.44 kB / 0.6902 GB, free: 93.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=1078) (initialization): time 0.02935/2.112, allocations: 9.229 MB / 0.6992 GB, free: 93.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/2.113, allocations: 87.17 kB / 0.6993 GB, free: 93.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003915/2.113, allocations: 182 kB / 0.6995 GB, free: 93.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/2.115, allocations: 490.9 kB / 0.6999 GB, free: 93.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01215/2.127, allocations: 1.855 MB / 0.7017 GB, free: 93.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006864/2.134, allocations: 3.561 MB / 0.7052 GB, free: 91.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009362/2.143, allocations: 409.9 kB / 0.7056 GB, free: 91.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002079/2.146, allocations: 0.4987 MB / 0.7061 GB, free: 91.56 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 832 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[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 (1009): * Single equations (assignments): 1000 * Array equations: 8 * 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 {(3,88.9%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00227/2.148, allocations: 0.7333 MB / 0.7068 GB, free: 91.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009617/2.149, allocations: 438.8 kB / 0.7072 GB, free: 91.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00602/2.155, allocations: 2.388 MB / 0.7096 GB, free: 91.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002498/2.155, allocations: 41.89 kB / 0.7096 GB, free: 91.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/2.155, allocations: 3.938 kB / 0.7096 GB, free: 91.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.667e-05/2.155, allocations: 13.69 kB / 0.7096 GB, free: 91.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/2.177, allocations: 8.072 MB / 0.7175 GB, free: 90.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.071e-05/2.177, allocations: 4.312 kB / 0.7175 GB, free: 90.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002435/2.179, allocations: 299.2 kB / 0.7178 GB, free: 90.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009738/2.18, allocations: 216.7 kB / 0.718 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002254/2.18, allocations: 40.7 kB / 0.718 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004331/2.185, allocations: 2.708 MB / 0.7207 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/2.185, allocations: 7.703 kB / 0.7207 GB, free: 88.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/2.195, allocations: 5.361 MB / 0.7259 GB, free: 85.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/2.197, allocations: 0.5082 MB / 0.7264 GB, free: 85.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001514/2.199, allocations: 38.52 kB / 0.7265 GB, free: 85.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003264/2.202, allocations: 95.55 kB / 0.7265 GB, free: 85.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/2.203, allocations: 123.2 kB / 0.7267 GB, free: 85.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002029/2.203, allocations: 69.12 kB / 0.7267 GB, free: 85.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008658/2.211, allocations: 3.289 MB / 0.7299 GB, free: 84.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.211, allocations: 0 / 0.7299 GB, free: 84.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01023/2.222, allocations: 1.214 MB / 0.7311 GB, free: 84.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 153 * Array equations: 8 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01205/2.234, allocations: 6.976 MB / 0.7379 GB, free: 79.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01374/2.248, allocations: 5.465 MB / 0.7433 GB, free: 77.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/2.248, allocations: 3.531 kB / 0.7433 GB, free: 77.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003234/2.251, allocations: 1.397 MB / 0.7446 GB, free: 77.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004762/2.256, allocations: 0.5291 MB / 0.7452 GB, free: 77.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04061/2.296, allocations: 11.1 MB / 0.756 GB, free: 72.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0101/2.307, allocations: 4.178 MB / 0.7601 GB, free: 71.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01202/2.319, allocations: 2.538 MB / 0.7626 GB, free: 69.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006448/2.325, allocations: 2.5 MB / 0.765 GB, free: 67.57 MB / 458.7 MB Notification: Performance of SimCode: time 1.513e-06/2.325, allocations: 0 / 0.765 GB, free: 67.57 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5523/2.877, allocations: 92.91 MB / 0.8557 GB, free: 94.99 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/2.878, allocations: 160.4 kB / 0.8559 GB, free: 94.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.261/9.139, allocations: 2.953 kB / 0.8559 GB, free: 94.77 MB / 490.7 MB