Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.724e-05/3.747e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.261, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1554/0.4164, allocations: 86.19 MB / 350 MB, free: 3.438 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003265/0.4168, allocations: 79.95 kB / 350.1 MB, free: 3.359 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6051/1.022, allocations: 94.22 MB / 444.3 MB, free: 29.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.022, allocations: 4 kB / 444.3 MB, free: 29.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000328/1.022, allocations: 88 kB / 444.4 MB, free: 29.14 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1552 * Number of variables: 1552 Notification: Performance of Generate backend data structure: time 0.01766/1.04, allocations: 4.488 MB / 448.9 MB, free: 24.58 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/1.04, allocations: 19.95 kB / 448.9 MB, free: 24.56 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003431/1.043, allocations: 0.7829 MB / 449.7 MB, free: 23.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04962/1.093, allocations: 6.733 MB / 456.4 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02226/1.115, allocations: 6.157 MB / 462.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004175/1.116, allocations: 328.6 kB / 462.9 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002433/1.118, allocations: 439.8 kB / 463.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03022/1.149, allocations: 10.41 MB / 473.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004168/1.149, allocations: 67.3 kB / 473.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002218/1.151, allocations: 215.9 kB / 474 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002685/1.154, allocations: 1.007 MB / 475 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02884/1.183, allocations: 8.549 MB / 483.6 MB, free: 4.801 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3291/1.512, allocations: 46.03 MB / 0.5172 GB, free: 39.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01491/1.527, allocations: 3.973 MB / 0.5211 GB, free: 38.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003945/1.531, allocations: 2.014 MB / 0.5231 GB, free: 38.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009637/1.532, allocations: 0.6488 MB / 0.5237 GB, free: 37.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.704e-05/1.532, allocations: 54.16 kB / 0.5237 GB, free: 37.87 MB / 346.7 MB Notification: Performance of pre-optimization done (n=175): time 6.001e-06/1.532, allocations: 0 / 0.5237 GB, free: 37.87 MB / 346.7 MB Notification: Performance of matching and sorting (n=210): time 0.09007/1.622, allocations: 18.84 MB / 0.5421 GB, free: 34.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.623, allocations: 253.1 kB / 0.5424 GB, free: 34.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009288/1.632, allocations: 3.691 MB / 0.546 GB, free: 34.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005569/1.632, allocations: 59.55 kB / 0.546 GB, free: 34.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00278/1.635, allocations: 3.133 MB / 0.5491 GB, free: 32.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001296/1.637, allocations: 0.797 MB / 0.5499 GB, free: 31.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009221/1.638, allocations: 117 kB / 0.55 GB, free: 31.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005648/1.638, allocations: 0.5648 MB / 0.5505 GB, free: 31.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005758/1.644, allocations: 2.205 MB / 0.5527 GB, free: 31.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008211/1.652, allocations: 5.738 MB / 0.5583 GB, free: 25.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008339/1.661, allocations: 3.545 MB / 0.5618 GB, free: 24.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001411/1.661, allocations: 36.06 kB / 0.5618 GB, free: 24.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02946/1.69, allocations: 9.271 MB / 0.5708 GB, free: 21.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.69, allocations: 59.95 kB / 0.5709 GB, free: 21.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001838/1.691, allocations: 124.8 kB / 0.571 GB, free: 21.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/1.701, allocations: 1.984 MB / 0.573 GB, free: 19.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008028/1.709, allocations: 1.293 MB / 0.5742 GB, free: 18.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03152/1.741, allocations: 14.95 MB / 0.5888 GB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007133/1.748, allocations: 348.3 kB / 0.5891 GB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001507/1.749, allocations: 365.8 kB / 0.5895 GB, free: 4.703 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 566 * Number of states: 0 () * Number of discrete variables: 30 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (694): * Single equations (assignments): 688 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.002384/1.752, allocations: 0.5438 MB / 0.59 GB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001064/1.753, allocations: 391 kB / 0.5904 GB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/1.767, allocations: 4.15 MB / 0.5945 GB, free: 448 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.9e-05/1.767, allocations: 23.56 kB / 0.5945 GB, free: 428 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/1.767, allocations: 15.45 kB / 0.5945 GB, free: 416 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-05/1.767, allocations: 15.03 kB / 0.5945 GB, free: 408 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03615/1.803, allocations: 10.04 MB / 0.6043 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/1.803, allocations: 3.844 kB / 0.6043 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003119/1.807, allocations: 299.4 kB / 0.6046 GB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006988/1.814, allocations: 1.215 MB / 0.6058 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005685/1.814, allocations: 40 kB / 0.6058 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01978/1.834, allocations: 7.54 MB / 0.6132 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.834, allocations: 4 kB / 0.6132 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02204/1.856, allocations: 7.185 MB / 0.6202 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003138/1.859, allocations: 0.7302 MB / 0.6209 GB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.861, allocations: 39.56 kB / 0.621 GB, free: 8.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003853/1.865, allocations: 125.6 kB / 0.6211 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008565/1.866, allocations: 125.1 kB / 0.6212 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003786/1.866, allocations: 59.47 kB / 0.6213 GB, free: 8.523 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00804/1.874, allocations: 2.598 MB / 0.6238 GB, free: 5.914 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.874, allocations: 0 / 0.6238 GB, free: 5.914 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008225/1.882, allocations: 1.134 MB / 0.6249 GB, free: 4.785 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (157): * Single equations (assignments): 153 * Array equations: 3 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2837/2.166, allocations: 8.092 MB / 0.6328 GB, free: 92.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01416/2.18, allocations: 5.919 MB / 0.6386 GB, free: 92.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/2.18, allocations: 0 / 0.6386 GB, free: 92.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006025/2.186, allocations: 2.07 MB / 0.6406 GB, free: 91.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004879/2.191, allocations: 0.5266 MB / 0.6411 GB, free: 91.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03667/2.228, allocations: 10.57 MB / 0.6514 GB, free: 90.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008219/2.236, allocations: 3.623 MB / 0.655 GB, free: 89.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005379/2.242, allocations: 2.121 MB / 0.657 GB, free: 89.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/2.242, allocations: 0 / 0.657 GB, free: 89.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.755/6.996, allocations: 126.8 MB / 0.7808 GB, free: 90.84 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat does not exist to compare? outputFormat=mat