Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.755e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3314, allocations: 44.5 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1637/0.4952, allocations: 86.02 MB / 380.2 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.4956, allocations: 83.95 kB / 380.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6172/1.113, allocations: 81.03 MB / 461.3 MB, free: 85.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.824e-06/1.113, allocations: 0 / 461.3 MB, free: 85.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002923/1.113, allocations: 80.44 kB / 461.4 MB, free: 85.37 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01655/1.13, allocations: 3.959 MB / 465.4 MB, free: 82.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/1.13, allocations: 12.03 kB / 465.4 MB, free: 82.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04713/1.177, allocations: 6.614 MB / 472 MB, free: 75.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02089/1.198, allocations: 5.815 MB / 477.8 MB, free: 70.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/1.198, allocations: 116 kB / 477.9 MB, free: 69.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002113/1.2, allocations: 223.8 kB / 478.2 MB, free: 69.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0133/1.214, allocations: 5.238 MB / 483.4 MB, free: 64.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02083/1.235, allocations: 8.178 MB / 491.6 MB, free: 55.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003056/1.235, allocations: 55.53 kB / 491.6 MB, free: 55.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001674/1.237, allocations: 28 kB / 491.6 MB, free: 55.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001968/1.239, allocations: 0.8923 MB / 492.5 MB, free: 54.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05817/1.297, allocations: 40.6 MB / 0.5206 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005389/1.302, allocations: 3.041 MB / 0.5236 GB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003387/1.306, allocations: 1.904 MB / 0.5255 GB, free: 7.719 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005875/1.306, allocations: 335.3 kB / 0.5258 GB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/1.306, allocations: 59.8 kB / 0.5258 GB, free: 7.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.4e-06/1.306, allocations: 0 / 0.5258 GB, free: 7.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=189): time 0.06378/1.37, allocations: 16.79 MB / 0.5422 GB, free: 6.398 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/1.37, allocations: 256.6 kB / 0.5425 GB, free: 6.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008404/1.379, allocations: 3.001 MB / 0.5454 GB, free: 3.094 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000553/1.379, allocations: 25.7 kB / 0.5454 GB, free: 3.062 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003484/1.383, allocations: 2.811 MB / 0.5482 GB, free: 220 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001511/1.385, allocations: 0.6938 MB / 0.5489 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007524/1.385, allocations: 4 kB / 0.5489 GB, free: 15.51 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005795/1.386, allocations: 0.5464 MB / 0.5494 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005538/1.391, allocations: 1.979 MB / 0.5513 GB, free: 12.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009403/1.401, allocations: 5.295 MB / 0.5565 GB, free: 5.984 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008591/1.41, allocations: 3.221 MB / 0.5597 GB, free: 2.758 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/1.41, allocations: 36 kB / 0.5597 GB, free: 2.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.3628/1.773, allocations: 7.594 MB / 0.5671 GB, free: 100.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001754/1.773, allocations: 60.23 kB / 0.5672 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003357/1.773, allocations: 118.9 kB / 0.5673 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009127/1.782, allocations: 1.372 MB / 0.5686 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01011/1.792, allocations: 1.264 MB / 0.5699 GB, free: 100.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02293/1.815, allocations: 7.852 MB / 0.5775 GB, free: 99.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008895/1.824, allocations: 214.9 kB / 0.5777 GB, free: 99.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/1.826, allocations: 339.4 kB / 0.578 GB, free: 99.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * 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 (674): * Single equations (assignments): 670 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001728/1.828, allocations: 411.7 kB / 0.5784 GB, free: 99.27 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01751/1.845, allocations: 4.033 MB / 0.5824 GB, free: 99.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/1.847, allocations: 325.7 kB / 0.5827 GB, free: 99.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/1.864, allocations: 3.744 MB / 0.5863 GB, free: 98.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-05/1.864, allocations: 20.78 kB / 0.5864 GB, free: 98.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.707e-05/1.864, allocations: 9.125 kB / 0.5864 GB, free: 98.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.735e-05/1.864, allocations: 19.08 kB / 0.5864 GB, free: 98.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02788/1.892, allocations: 8.148 MB / 0.5944 GB, free: 95.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.462e-05/1.892, allocations: 0 / 0.5944 GB, free: 95.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002463/1.895, allocations: 260.4 kB / 0.5946 GB, free: 95.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006123/1.901, allocations: 1.195 MB / 0.5958 GB, free: 94.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004695/1.901, allocations: 9.391 kB / 0.5958 GB, free: 94.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/1.916, allocations: 7.038 MB / 0.6026 GB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.917, allocations: 0 / 0.6026 GB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/1.933, allocations: 6.6 MB / 0.6091 GB, free: 88.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002477/1.936, allocations: 0.6434 MB / 0.6097 GB, free: 87.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.937, allocations: 6.094 kB / 0.6097 GB, free: 87.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002995/1.94, allocations: 84.88 kB / 0.6098 GB, free: 87.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006941/1.941, allocations: 118.4 kB / 0.6099 GB, free: 87.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002016/1.941, allocations: 51.14 kB / 0.61 GB, free: 87.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004926/1.946, allocations: 2.039 MB / 0.612 GB, free: 85.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.232e-06/1.946, allocations: 0 / 0.612 GB, free: 85.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007429/1.953, allocations: 0.8599 MB / 0.6128 GB, free: 85.11 MB / 394.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.01723/1.971, allocations: 7.519 MB / 0.6201 GB, free: 78.51 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01171/1.982, allocations: 4.985 MB / 0.625 GB, free: 74.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.982, allocations: 5.688 kB / 0.625 GB, free: 74.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004838/1.987, allocations: 1.894 MB / 0.6269 GB, free: 72.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003694/1.991, allocations: 383.5 kB / 0.6272 GB, free: 72.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/2.02, allocations: 9.019 MB / 0.636 GB, free: 64.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007011/2.027, allocations: 3.167 MB / 0.6391 GB, free: 61.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004859/2.032, allocations: 1.793 MB / 0.6409 GB, free: 60.33 MB / 394.7 MB Notification: Performance of SimCode: time 1.903e-06/2.032, allocations: 0 / 0.6409 GB, free: 60.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.439/6.472, allocations: 92.4 MB / 0.7311 GB, free: 111.1 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat