Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.73/1.73, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.675e-05/3.692e-05, allocations: 8 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.262, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.156/0.4181, allocations: 80.92 MB / 344.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004035/0.4186, allocations: 83.95 kB / 344.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5893/1.008, allocations: 82.47 MB / 427.3 MB, free: 46.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.075e-06/1.008, allocations: 0 / 427.3 MB, free: 46.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000291/1.008, allocations: 79.92 kB / 427.4 MB, free: 46.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: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01582/1.024, allocations: 3.96 MB / 431.3 MB, free: 42.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.805e-05/1.024, allocations: 8.031 kB / 431.4 MB, free: 42.11 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002874/1.027, allocations: 0.6555 MB / 432 MB, free: 41.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06783/1.095, allocations: 6.625 MB / 438.6 MB, free: 34.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02507/1.12, allocations: 5.808 MB / 444.4 MB, free: 28.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/1.12, allocations: 275 kB / 444.7 MB, free: 28.67 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002079/1.122, allocations: 371.7 kB / 445.1 MB, free: 28.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02587/1.148, allocations: 9.02 MB / 454.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002985/1.149, allocations: 59.45 kB / 454.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001809/1.151, allocations: 175.9 kB / 454.3 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00198/1.153, allocations: 0.8885 MB / 455.2 MB, free: 17.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02182/1.174, allocations: 7.476 MB / 462.7 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3147/1.489, allocations: 42.18 MB / 0.493 GB, free: 73.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01394/1.503, allocations: 3.718 MB / 0.4967 GB, free: 72.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00374/1.507, allocations: 1.944 MB / 0.4986 GB, free: 72.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006171/1.508, allocations: 331.5 kB / 0.4989 GB, free: 72.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/1.508, allocations: 52.73 kB / 0.4989 GB, free: 72.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 5.009e-06/1.508, allocations: 0 / 0.4989 GB, free: 72.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.08438/1.592, allocations: 17.19 MB / 0.5157 GB, free: 70.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.592, allocations: 251 kB / 0.516 GB, free: 69.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008864/1.601, allocations: 3.427 MB / 0.5193 GB, free: 69.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000541/1.602, allocations: 53.23 kB / 0.5194 GB, free: 69.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002549/1.604, allocations: 2.717 MB / 0.522 GB, free: 68.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.606, allocations: 0.7191 MB / 0.5227 GB, free: 67.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000792/1.607, allocations: 109.1 kB / 0.5228 GB, free: 67.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004963/1.607, allocations: 0.5442 MB / 0.5234 GB, free: 67.31 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005427/1.612, allocations: 2.035 MB / 0.5253 GB, free: 67.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007603/1.62, allocations: 5.261 MB / 0.5305 GB, free: 62.42 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007624/1.628, allocations: 3.259 MB / 0.5337 GB, free: 61.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/1.628, allocations: 31.66 kB / 0.5337 GB, free: 61.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02462/1.653, allocations: 8.179 MB / 0.5417 GB, free: 59.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.653, allocations: 52.62 kB / 0.5417 GB, free: 59.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/1.653, allocations: 116.3 kB / 0.5418 GB, free: 59.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007138/1.66, allocations: 1.383 MB / 0.5432 GB, free: 58.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008059/1.668, allocations: 1.223 MB / 0.5444 GB, free: 58.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01901/1.687, allocations: 8.406 MB / 0.5526 GB, free: 50.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006725/1.694, allocations: 310.5 kB / 0.5529 GB, free: 50.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001418/1.696, allocations: 332 kB / 0.5532 GB, free: 50.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (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 (650): * Single equations (assignments): 646 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002235/1.698, allocations: 0.5126 MB / 0.5537 GB, free: 49.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.699, allocations: 355.4 kB / 0.554 GB, free: 49.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01311/1.712, allocations: 3.884 MB / 0.5578 GB, free: 46.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-05/1.712, allocations: 23.38 kB / 0.5579 GB, free: 46.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/1.712, allocations: 8 kB / 0.5579 GB, free: 46.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.464e-05/1.712, allocations: 7.547 kB / 0.5579 GB, free: 46.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02855/1.741, allocations: 8.882 MB / 0.5665 GB, free: 39.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.95e-05/1.741, allocations: 0 / 0.5665 GB, free: 39.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/1.744, allocations: 263.2 kB / 0.5668 GB, free: 38.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006496/1.75, allocations: 1.211 MB / 0.568 GB, free: 37.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004877/1.751, allocations: 35.61 kB / 0.568 GB, free: 37.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/1.768, allocations: 7.554 MB / 0.5754 GB, free: 31.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/1.768, allocations: 3.938 kB / 0.5754 GB, free: 31.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01798/1.786, allocations: 6.763 MB / 0.582 GB, free: 25.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002658/1.789, allocations: 0.6804 MB / 0.5827 GB, free: 24.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/1.79, allocations: 32 kB / 0.5827 GB, free: 24.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003471/1.793, allocations: 112.7 kB / 0.5828 GB, free: 24.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000814/1.794, allocations: 110.4 kB / 0.5829 GB, free: 24.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.794, allocations: 44 kB / 0.583 GB, free: 24.58 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.006453/1.801, allocations: 2.424 MB / 0.5853 GB, free: 22.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.801, allocations: 0 / 0.5853 GB, free: 22.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007075/1.808, allocations: 0.9948 MB / 0.5863 GB, free: 21.19 MB / 346.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 (135): * Single equations (assignments): 131 * 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.01893/1.827, allocations: 7.694 MB / 0.5938 GB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/1.839, allocations: 5.113 MB / 0.5988 GB, free: 8.344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.839, allocations: 0 / 0.5988 GB, free: 8.344 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005681/1.845, allocations: 1.953 MB / 0.6007 GB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/1.849, allocations: 452.5 kB / 0.6011 GB, free: 5.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03146/1.881, allocations: 9.236 MB / 0.6102 GB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007622/1.889, allocations: 3.169 MB / 0.6132 GB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005076/1.894, allocations: 1.81 MB / 0.615 GB, free: 7.695 MB / 362.7 MB Notification: Performance of SimCode: time 1.653e-06/1.894, allocations: 0 / 0.615 GB, free: 7.695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.112/7.006, allocations: 94.41 MB / 0.7072 GB, free: 36.06 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat