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.601/1.601, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.576e-05/3.586e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2546, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.3988, allocations: 85.52 MB / 343.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.3992, allocations: 83.95 kB / 343.9 MB, free: 8.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.567/0.9662, allocations: 92.42 MB / 436.3 MB, free: 39.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.9662, allocations: 4 kB / 436.4 MB, free: 39.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002901/0.9665, allocations: 91.94 kB / 436.4 MB, free: 39.43 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.01612/0.9827, allocations: 4.488 MB / 440.9 MB, free: 34.87 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.9827, allocations: 12.03 kB / 440.9 MB, free: 34.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04753/1.03, allocations: 6.737 MB / 447.7 MB, free: 28.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02033/1.051, allocations: 6.146 MB / 453.8 MB, free: 21.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002503/1.051, allocations: 148 kB / 454 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/1.053, allocations: 259.9 kB / 454.2 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01443/1.067, allocations: 6.198 MB / 460.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/1.09, allocations: 9.435 MB / 469.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002749/1.091, allocations: 71.36 kB / 469.9 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/1.092, allocations: 28 kB / 470 MB, free: 4.801 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002055/1.094, allocations: 1.007 MB / 471 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3267/1.421, allocations: 44.05 MB / 0.5029 GB, free: 50.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005651/1.427, allocations: 3.189 MB / 0.5061 GB, free: 50.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003259/1.43, allocations: 1.983 MB / 0.508 GB, free: 50.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008252/1.431, allocations: 0.6534 MB / 0.5086 GB, free: 49.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/1.431, allocations: 51.41 kB / 0.5087 GB, free: 49.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=175): time 5.21e-06/1.431, allocations: 0 / 0.5087 GB, free: 49.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=210): time 0.06103/1.492, allocations: 18.35 MB / 0.5266 GB, free: 46.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.492, allocations: 257.5 kB / 0.5268 GB, free: 46.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008246/1.5, allocations: 3.243 MB / 0.53 GB, free: 45.94 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005615/1.501, allocations: 29.58 kB / 0.53 GB, free: 45.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002706/1.504, allocations: 3.221 MB / 0.5332 GB, free: 44.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/1.505, allocations: 0.7764 MB / 0.5339 GB, free: 43.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007097/1.506, allocations: 3.906 kB / 0.5339 GB, free: 43.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003858/1.506, allocations: 0.5688 MB / 0.5345 GB, free: 43.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004775/1.511, allocations: 2.135 MB / 0.5366 GB, free: 42.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00675/1.518, allocations: 5.792 MB / 0.5422 GB, free: 36.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/1.525, allocations: 3.494 MB / 0.5457 GB, free: 35.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/1.525, allocations: 37.72 kB / 0.5457 GB, free: 35.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=809) (initialization): time 0.02528/1.55, allocations: 8.637 MB / 0.5541 GB, free: 33.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.25e-05/1.551, allocations: 61.41 kB / 0.5542 GB, free: 33.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/1.551, allocations: 131 kB / 0.5543 GB, free: 33.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009386/1.56, allocations: 1.956 MB / 0.5562 GB, free: 32.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007801/1.568, allocations: 1.347 MB / 0.5575 GB, free: 31.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02647/1.594, allocations: 14.12 MB / 0.5713 GB, free: 19.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006812/1.601, allocations: 225 kB / 0.5715 GB, free: 18.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001282/1.603, allocations: 380.8 kB / 0.5719 GB, free: 18.56 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * 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 (721): * Single equations (assignments): 715 * 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 {(5,80.0%) 33,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.001189/1.604, allocations: 436 kB / 0.5723 GB, free: 18.14 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01174/1.616, allocations: 4.258 MB / 0.5765 GB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/1.617, allocations: 359.4 kB / 0.5768 GB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/1.628, allocations: 3.991 MB / 0.5807 GB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.923e-05/1.629, allocations: 20 kB / 0.5807 GB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/1.629, allocations: 10.44 kB / 0.5807 GB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.239e-05/1.629, allocations: 10.55 kB / 0.5808 GB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/1.653, allocations: 8.99 MB / 0.5895 GB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.309e-05/1.653, allocations: 1.969 kB / 0.5895 GB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/1.656, allocations: 302.4 kB / 0.5898 GB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005842/1.662, allocations: 1.197 MB / 0.591 GB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003814/1.662, allocations: 4 kB / 0.591 GB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01581/1.678, allocations: 7.035 MB / 0.5979 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.678, allocations: 3.938 kB / 0.5979 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/1.696, allocations: 7.003 MB / 0.6047 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002563/1.699, allocations: 0.688 MB / 0.6054 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009014/1.7, allocations: 8 kB / 0.6054 GB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.702, allocations: 87.98 kB / 0.6055 GB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005242/1.703, allocations: 120.3 kB / 0.6056 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.703, allocations: 56.64 kB / 0.6056 GB, free: 5.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005224/1.708, allocations: 2.2 MB / 0.6078 GB, free: 3.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.41e-07/1.709, allocations: 0 / 0.6078 GB, free: 3.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00767/1.716, allocations: 0.9782 MB / 0.6087 GB, free: 2.781 MB / 362.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.0194/1.736, allocations: 7.882 MB / 0.6164 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0151/1.751, allocations: 5.763 MB / 0.6221 GB, free: 5.098 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.751, allocations: 0 / 0.6221 GB, free: 5.098 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005653/1.756, allocations: 2.01 MB / 0.624 GB, free: 3.078 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003984/1.76, allocations: 457.5 kB / 0.6245 GB, free: 2.648 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03406/1.795, allocations: 10.32 MB / 0.6345 GB, free: 8.285 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007627/1.802, allocations: 3.618 MB / 0.6381 GB, free: 4.656 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005246/1.808, allocations: 2.112 MB / 0.6401 GB, free: 2.543 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/1.808, allocations: 0 / 0.6401 GB, free: 2.543 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.583/6.391, allocations: 124.4 MB / 0.7617 GB, free: 32.75 MB / 394.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