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.814/1.814, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.195e-05/3.197e-05, allocations: 0 / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09565/0.0957, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4474/0.5431, allocations: 86.68 MB / 386.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5435, allocations: 87.44 kB / 386.7 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3273/0.8708, allocations: 82.51 MB / 469.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.8708, allocations: 0 / 469.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002816/0.8711, allocations: 72 kB / 469.3 MB, free: 13.19 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.01677/0.8879, allocations: 3.954 MB / 473.3 MB, free: 9.195 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.888, allocations: 12.03 kB / 473.3 MB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002671/0.8907, allocations: 0.6615 MB / 473.9 MB, free: 8.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04926/0.94, allocations: 6.621 MB / 480.6 MB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02193/0.9619, allocations: 5.827 MB / 486.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003482/0.9623, allocations: 272.6 kB / 486.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002006/0.9643, allocations: 360.2 kB / 487 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02651/0.9909, allocations: 8.981 MB / 496 MB, free: 1.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002661/0.9912, allocations: 67.36 kB / 496 MB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001224/0.9924, allocations: 174.3 kB / 496.2 MB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002071/0.9945, allocations: 0.8842 MB / 497.1 MB, free: 0.6094 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02343/1.018, allocations: 7.326 MB / 0.4926 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3436/1.362, allocations: 42.19 MB / 0.5338 GB, free: 66.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01434/1.376, allocations: 3.712 MB / 0.5374 GB, free: 65.37 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003758/1.38, allocations: 1.95 MB / 0.5393 GB, free: 65.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005533/1.38, allocations: 329.1 kB / 0.5397 GB, free: 65.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/1.381, allocations: 53.75 kB / 0.5397 GB, free: 65.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 5.22e-06/1.381, allocations: 1.312 kB / 0.5397 GB, free: 65.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.07539/1.456, allocations: 17.18 MB / 0.5565 GB, free: 62.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/1.456, allocations: 251.1 kB / 0.5567 GB, free: 62.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007444/1.464, allocations: 3.422 MB / 0.5601 GB, free: 61.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005087/1.464, allocations: 55.66 kB / 0.5601 GB, free: 61.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.466, allocations: 2.724 MB / 0.5628 GB, free: 60.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.468, allocations: 0.7205 MB / 0.5635 GB, free: 60 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000624/1.468, allocations: 106.3 kB / 0.5636 GB, free: 60 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003272/1.469, allocations: 0.5473 MB / 0.5641 GB, free: 59.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004724/1.473, allocations: 2.036 MB / 0.5661 GB, free: 59.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00709/1.48, allocations: 5.226 MB / 0.5712 GB, free: 55.51 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006902/1.487, allocations: 3.264 MB / 0.5744 GB, free: 55.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/1.487, allocations: 30.69 kB / 0.5744 GB, free: 55.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02294/1.51, allocations: 7.854 MB / 0.5821 GB, free: 53.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.14e-05/1.511, allocations: 55.31 kB / 0.5821 GB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.511, allocations: 114.9 kB / 0.5823 GB, free: 53.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006519/1.517, allocations: 1.382 MB / 0.5836 GB, free: 53.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007515/1.525, allocations: 1.22 MB / 0.5848 GB, free: 53.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/1.542, allocations: 8.397 MB / 0.593 GB, free: 49.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006417/1.549, allocations: 316.2 kB / 0.5933 GB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/1.55, allocations: 331.4 kB / 0.5936 GB, free: 49.32 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.001082/1.551, allocations: 0.5161 MB / 0.5941 GB, free: 48.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009018/1.552, allocations: 348.7 kB / 0.5945 GB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/1.563, allocations: 3.9 MB / 0.5983 GB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-05/1.563, allocations: 22.84 kB / 0.5983 GB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.672e-05/1.563, allocations: 6.906 kB / 0.5983 GB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.901e-05/1.564, allocations: 7.219 kB / 0.5983 GB, free: 47.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02433/1.588, allocations: 8.877 MB / 0.607 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/1.588, allocations: 7.375 kB / 0.607 GB, free: 42.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/1.59, allocations: 263.2 kB / 0.6072 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006121/1.597, allocations: 1.215 MB / 0.6084 GB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004436/1.597, allocations: 34.23 kB / 0.6084 GB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01579/1.613, allocations: 7.546 MB / 0.6158 GB, free: 34.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.613, allocations: 4.125 kB / 0.6158 GB, free: 34.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/1.629, allocations: 6.768 MB / 0.6224 GB, free: 29.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002351/1.632, allocations: 0.6771 MB / 0.6231 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007806/1.632, allocations: 39.95 kB / 0.6231 GB, free: 28.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002789/1.635, allocations: 106.6 kB / 0.6232 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004734/1.636, allocations: 113 kB / 0.6233 GB, free: 28.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/1.636, allocations: 52.2 kB / 0.6234 GB, free: 28.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005766/1.642, allocations: 2.417 MB / 0.6257 GB, free: 26.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.642, allocations: 0 / 0.6257 GB, free: 26.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006903/1.649, allocations: 0.9893 MB / 0.6267 GB, free: 25.09 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.01704/1.666, allocations: 7.701 MB / 0.6342 GB, free: 18.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01125/1.677, allocations: 4.931 MB / 0.639 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/1.677, allocations: 0 / 0.639 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004932/1.682, allocations: 1.928 MB / 0.6409 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003756/1.686, allocations: 450.2 kB / 0.6414 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02732/1.713, allocations: 9.23 MB / 0.6504 GB, free: 3.715 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005511/1.719, allocations: 3.174 MB / 0.6535 GB, free: 1.301 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005841/1.725, allocations: 1.888 MB / 0.6553 GB, free: 15.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/1.725, allocations: 4 kB / 0.6553 GB, free: 15.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.468/6.193, allocations: 93.53 MB / 0.7467 GB, free: 76.23 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