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 1.986/1.986, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.493e-05/4.51e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4241/0.5263, allocations: 86.67 MB / 386.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.5266, allocations: 84.42 kB / 386.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3387/0.8653, allocations: 82.52 MB / 469.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.8653, allocations: 0 / 469.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003132/0.8657, allocations: 72 kB / 469.3 MB, free: 13.22 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.01692/0.8826, allocations: 3.959 MB / 473.2 MB, free: 9.223 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.8827, allocations: 11.97 kB / 473.2 MB, free: 9.211 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002634/0.8853, allocations: 0.6624 MB / 473.9 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05069/0.936, allocations: 6.613 MB / 480.5 MB, free: 1.938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02362/0.9597, allocations: 5.835 MB / 486.4 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003926/0.9602, allocations: 269.2 kB / 486.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.9623, allocations: 364.7 kB / 487 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02805/0.9904, allocations: 9.02 MB / 496 MB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003178/0.9908, allocations: 63.38 kB / 496.1 MB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001444/0.9922, allocations: 180.5 kB / 496.2 MB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002136/0.9944, allocations: 0.8883 MB / 497.1 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02433/1.019, allocations: 7.472 MB / 0.4928 GB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3464/1.365, allocations: 42.19 MB / 0.534 GB, free: 66.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01503/1.38, allocations: 3.731 MB / 0.5376 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003979/1.384, allocations: 1.945 MB / 0.5395 GB, free: 65.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006347/1.385, allocations: 329.5 kB / 0.5398 GB, free: 65.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/1.385, allocations: 53.75 kB / 0.5399 GB, free: 65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 5.621e-06/1.385, allocations: 2.312 kB / 0.5399 GB, free: 65 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.08102/1.466, allocations: 17.18 MB / 0.5567 GB, free: 62.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.466, allocations: 258.6 kB / 0.5569 GB, free: 62.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008321/1.475, allocations: 3.424 MB / 0.5602 GB, free: 61.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005133/1.475, allocations: 52.67 kB / 0.5603 GB, free: 61.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002435/1.478, allocations: 2.728 MB / 0.563 GB, free: 60.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/1.479, allocations: 0.7142 MB / 0.5637 GB, free: 59.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007244/1.48, allocations: 107.4 kB / 0.5638 GB, free: 59.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000425/1.48, allocations: 0.5491 MB / 0.5643 GB, free: 59.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005103/1.485, allocations: 2.033 MB / 0.5663 GB, free: 59.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007307/1.493, allocations: 5.257 MB / 0.5714 GB, free: 55.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007241/1.5, allocations: 3.27 MB / 0.5746 GB, free: 55.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000135/1.5, allocations: 32.22 kB / 0.5746 GB, free: 55.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02445/1.524, allocations: 8.17 MB / 0.5826 GB, free: 53.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/1.525, allocations: 54 kB / 0.5827 GB, free: 53.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/1.525, allocations: 113.4 kB / 0.5828 GB, free: 53.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006694/1.532, allocations: 1.382 MB / 0.5841 GB, free: 53.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007701/1.539, allocations: 1.218 MB / 0.5853 GB, free: 53.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/1.557, allocations: 8.396 MB / 0.5935 GB, free: 49.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006418/1.564, allocations: 310.6 kB / 0.5938 GB, free: 49.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.565, allocations: 334.3 kB / 0.5941 GB, free: 49.36 MB / 410.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.001866/1.567, allocations: 0.5175 MB / 0.5946 GB, free: 48.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009923/1.568, allocations: 350 kB / 0.595 GB, free: 48.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/1.581, allocations: 3.892 MB / 0.5988 GB, free: 47.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.808e-05/1.581, allocations: 22.66 kB / 0.5988 GB, free: 47.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/1.581, allocations: 11.16 kB / 0.5988 GB, free: 47.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.597e-05/1.581, allocations: 7.594 kB / 0.5988 GB, free: 47.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02669/1.608, allocations: 8.884 MB / 0.6075 GB, free: 42.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.571e-05/1.608, allocations: 7.953 kB / 0.6075 GB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002576/1.611, allocations: 259.3 kB / 0.6077 GB, free: 42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00632/1.617, allocations: 1.219 MB / 0.6089 GB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005784/1.618, allocations: 28.62 kB / 0.609 GB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01709/1.635, allocations: 7.545 MB / 0.6163 GB, free: 34.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.635, allocations: 4 kB / 0.6163 GB, free: 34.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.651, allocations: 6.767 MB / 0.6229 GB, free: 28.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/1.654, allocations: 0.6826 MB / 0.6236 GB, free: 28.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009413/1.655, allocations: 28 kB / 0.6236 GB, free: 28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003099/1.658, allocations: 120.4 kB / 0.6237 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005162/1.659, allocations: 104.3 kB / 0.6238 GB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/1.659, allocations: 53.22 kB / 0.6239 GB, free: 27.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005982/1.665, allocations: 2.42 MB / 0.6263 GB, free: 25.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.452e-06/1.665, allocations: 0 / 0.6263 GB, free: 25.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006527/1.672, allocations: 0.9904 MB / 0.6272 GB, free: 24.71 MB / 410.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.0175/1.689, allocations: 7.696 MB / 0.6347 GB, free: 17.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01141/1.701, allocations: 5.113 MB / 0.6397 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.701, allocations: 0 / 0.6397 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005127/1.706, allocations: 1.959 MB / 0.6417 GB, free: 11.49 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.71, allocations: 453.6 kB / 0.6421 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/1.737, allocations: 9.247 MB / 0.6511 GB, free: 3.109 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006302/1.744, allocations: 3.165 MB / 0.6542 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008598/1.752, allocations: 2.039 MB / 0.6562 GB, free: 15.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/1.752, allocations: 4 kB / 0.6562 GB, free: 15.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.995/6.747, allocations: 94.43 MB / 0.7484 GB, free: 75.75 MB / 426.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