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 1.638/1.638, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.354e-05/3.347e-05, allocations: 7.984 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2526, allocations: 38.76 MB / 263.9 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.4029, allocations: 86.19 MB / 350 MB, free: 3.441 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003289/0.4032, allocations: 87.94 kB / 350.1 MB, free: 3.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5746/0.9779, allocations: 94.22 MB / 444.3 MB, free: 29.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.9779, allocations: 0 / 444.3 MB, free: 29.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003323/0.9783, allocations: 87.98 kB / 444.4 MB, free: 29.12 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.01601/0.9943, allocations: 4.496 MB / 448.9 MB, free: 24.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.9944, allocations: 8.031 kB / 448.9 MB, free: 24.55 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002395/0.9968, allocations: 0.7868 MB / 449.7 MB, free: 23.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0475/1.044, allocations: 6.733 MB / 456.5 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.064, allocations: 6.15 MB / 462.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/1.065, allocations: 336.6 kB / 462.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001541/1.066, allocations: 435.8 kB / 463.4 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/1.091, allocations: 10.37 MB / 473.7 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002624/1.091, allocations: 75.34 kB / 473.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000983/1.092, allocations: 215.8 kB / 474 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002235/1.095, allocations: 1.003 MB / 475 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02596/1.121, allocations: 8.381 MB / 483.4 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3124/1.433, allocations: 46.03 MB / 0.517 GB, free: 39.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0139/1.447, allocations: 3.948 MB / 0.5209 GB, free: 39.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003458/1.45, allocations: 2.017 MB / 0.5228 GB, free: 39.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008156/1.451, allocations: 0.6496 MB / 0.5235 GB, free: 38.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/1.451, allocations: 56.34 kB / 0.5235 GB, free: 38.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=175): time 5.029e-06/1.451, allocations: 0 / 0.5235 GB, free: 38.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=210): time 0.08116/1.533, allocations: 18.83 MB / 0.5419 GB, free: 35.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.04e-05/1.533, allocations: 263.6 kB / 0.5422 GB, free: 35.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006939/1.54, allocations: 3.684 MB / 0.5458 GB, free: 34.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005062/1.54, allocations: 59.23 kB / 0.5458 GB, free: 34.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002255/1.542, allocations: 3.134 MB / 0.5489 GB, free: 33.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.544, allocations: 0.7894 MB / 0.5497 GB, free: 32.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004917/1.544, allocations: 121.2 kB / 0.5498 GB, free: 32.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003344/1.544, allocations: 0.5601 MB / 0.5503 GB, free: 32.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004721/1.549, allocations: 2.212 MB / 0.5525 GB, free: 31.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00654/1.556, allocations: 5.7 MB / 0.558 GB, free: 25.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/1.563, allocations: 3.543 MB / 0.5615 GB, free: 24.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-05/1.563, allocations: 33.59 kB / 0.5615 GB, free: 24.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02519/1.588, allocations: 8.936 MB / 0.5703 GB, free: 22.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.481e-05/1.588, allocations: 60 kB / 0.5703 GB, free: 22.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/1.589, allocations: 124 kB / 0.5704 GB, free: 22.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009469/1.598, allocations: 1.973 MB / 0.5724 GB, free: 20.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007341/1.605, allocations: 1.292 MB / 0.5736 GB, free: 19.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02817/1.634, allocations: 14.97 MB / 0.5882 GB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006673/1.64, allocations: 344.5 kB / 0.5886 GB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008645/1.641, allocations: 361.9 kB / 0.5889 GB, free: 5.367 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.001108/1.642, allocations: 0.5558 MB / 0.5895 GB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008284/1.643, allocations: 386.3 kB / 0.5898 GB, free: 4.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/1.655, allocations: 4.152 MB / 0.5939 GB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.918e-05/1.655, allocations: 24 kB / 0.5939 GB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/1.655, allocations: 8 kB / 0.5939 GB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-05/1.655, allocations: 9.234 kB / 0.5939 GB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02887/1.684, allocations: 10.01 MB / 0.6037 GB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/1.684, allocations: 0 / 0.6037 GB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00284/1.687, allocations: 300 kB / 0.604 GB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00631/1.693, allocations: 1.216 MB / 0.6052 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000249/1.694, allocations: 43.89 kB / 0.6052 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01778/1.711, allocations: 7.543 MB / 0.6126 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.711, allocations: 4 kB / 0.6126 GB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01928/1.731, allocations: 7.184 MB / 0.6196 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/1.733, allocations: 0.7186 MB / 0.6203 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007349/1.734, allocations: 32.94 kB / 0.6203 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/1.737, allocations: 127.8 kB / 0.6204 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/1.738, allocations: 129.9 kB / 0.6206 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/1.738, allocations: 52 kB / 0.6206 GB, free: 9.176 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00606/1.744, allocations: 2.599 MB / 0.6232 GB, free: 6.566 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.744, allocations: 0 / 0.6232 GB, free: 6.566 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007557/1.751, allocations: 1.132 MB / 0.6243 GB, free: 5.441 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.2633/2.015, allocations: 8.091 MB / 0.6322 GB, free: 93.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01772/2.033, allocations: 5.707 MB / 0.6377 GB, free: 93.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/2.033, allocations: 5.812 kB / 0.6377 GB, free: 93.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007297/2.04, allocations: 2.047 MB / 0.6397 GB, free: 93.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005717/2.046, allocations: 0.5258 MB / 0.6403 GB, free: 93.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04387/2.09, allocations: 10.57 MB / 0.6506 GB, free: 91.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008083/2.098, allocations: 3.618 MB / 0.6541 GB, free: 90.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004939/2.103, allocations: 2.122 MB / 0.6562 GB, free: 90.49 MB / 378.7 MB Notification: Performance of SimCode: time 1.924e-06/2.103, allocations: 1.969 kB / 0.6562 GB, free: 90.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.577/6.68, allocations: 125.8 MB / 0.779 GB, free: 89.49 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