Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.282e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2558, allocations: 38.77 MB / 263.9 MB, free: 9.781 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.3988, allocations: 80.94 MB / 344.8 MB, free: 8.719 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/0.3992, allocations: 83.95 kB / 344.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5745/0.9737, allocations: 82.47 MB / 427.3 MB, free: 46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.9737, allocations: 0 / 427.3 MB, free: 46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000277/0.974, allocations: 71.98 kB / 427.4 MB, free: 45.93 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: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01587/0.9899, allocations: 3.956 MB / 431.4 MB, free: 41.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.99, allocations: 8.031 kB / 431.4 MB, free: 41.9 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002901/0.9929, allocations: 0.6633 MB / 432 MB, free: 41.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04731/1.04, allocations: 6.613 MB / 438.7 MB, free: 34.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02014/1.06, allocations: 5.82 MB / 444.5 MB, free: 28.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/1.061, allocations: 271 kB / 444.7 MB, free: 28.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001925/1.063, allocations: 363.7 kB / 445.1 MB, free: 28.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02403/1.087, allocations: 8.979 MB / 454.1 MB, free: 18.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002675/1.087, allocations: 59.53 kB / 454.1 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001481/1.089, allocations: 175.9 kB / 454.3 MB, free: 17.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00182/1.09, allocations: 0.8884 MB / 455.2 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02088/1.111, allocations: 7.319 MB / 462.5 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.313/1.424, allocations: 42.19 MB / 0.4929 GB, free: 74.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/1.438, allocations: 3.708 MB / 0.4965 GB, free: 73.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003789/1.442, allocations: 1.944 MB / 0.4984 GB, free: 73.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006156/1.443, allocations: 337.9 kB / 0.4987 GB, free: 73.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.789e-05/1.443, allocations: 48.5 kB / 0.4988 GB, free: 73.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 5.35e-06/1.443, allocations: 0 / 0.4988 GB, free: 73.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.08805/1.531, allocations: 17.19 MB / 0.5155 GB, free: 70.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/1.531, allocations: 255.4 kB / 0.5158 GB, free: 70.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01128/1.542, allocations: 3.427 MB / 0.5191 GB, free: 70.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006285/1.543, allocations: 48.08 kB / 0.5192 GB, free: 70 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003382/1.546, allocations: 2.724 MB / 0.5218 GB, free: 68.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001559/1.548, allocations: 0.7195 MB / 0.5225 GB, free: 68.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008678/1.549, allocations: 109.8 kB / 0.5226 GB, free: 68.14 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005146/1.55, allocations: 0.5426 MB / 0.5232 GB, free: 67.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00735/1.557, allocations: 2.035 MB / 0.5252 GB, free: 67.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007848/1.565, allocations: 5.232 MB / 0.5303 GB, free: 62.71 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/1.572, allocations: 3.263 MB / 0.5335 GB, free: 61.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.572, allocations: 31.28 kB / 0.5335 GB, free: 61.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02288/1.595, allocations: 7.85 MB / 0.5411 GB, free: 59.69 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/1.595, allocations: 54.56 kB / 0.5412 GB, free: 59.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/1.595, allocations: 115.8 kB / 0.5413 GB, free: 59.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006624/1.602, allocations: 1.384 MB / 0.5427 GB, free: 59.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007563/1.61, allocations: 1.216 MB / 0.5439 GB, free: 58.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01741/1.627, allocations: 8.413 MB / 0.5521 GB, free: 51.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006447/1.633, allocations: 311 kB / 0.5524 GB, free: 50.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/1.635, allocations: 327.2 kB / 0.5527 GB, free: 50.66 MB / 346.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.001081/1.636, allocations: 0.5193 MB / 0.5532 GB, free: 50.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009195/1.637, allocations: 351.5 kB / 0.5535 GB, free: 49.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1.648, allocations: 3.882 MB / 0.5573 GB, free: 46.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.652e-05/1.648, allocations: 20 kB / 0.5573 GB, free: 46.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/1.648, allocations: 11.62 kB / 0.5573 GB, free: 46.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-05/1.648, allocations: 8.25 kB / 0.5573 GB, free: 46.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02552/1.674, allocations: 8.884 MB / 0.566 GB, free: 39.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.701e-05/1.674, allocations: 0 / 0.566 GB, free: 39.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/1.676, allocations: 262.4 kB / 0.5663 GB, free: 39.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006072/1.682, allocations: 1.214 MB / 0.5675 GB, free: 38.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004063/1.683, allocations: 30.34 kB / 0.5675 GB, free: 38.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/1.699, allocations: 7.551 MB / 0.5749 GB, free: 31.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.699, allocations: 4 kB / 0.5749 GB, free: 31.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01583/1.714, allocations: 6.768 MB / 0.5815 GB, free: 25.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00236/1.717, allocations: 0.6758 MB / 0.5821 GB, free: 25.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008528/1.718, allocations: 29.41 kB / 0.5822 GB, free: 25.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002798/1.721, allocations: 115.8 kB / 0.5823 GB, free: 25.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/1.721, allocations: 113.1 kB / 0.5824 GB, free: 24.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/1.721, allocations: 47.75 kB / 0.5824 GB, free: 24.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005161/1.726, allocations: 2.424 MB / 0.5848 GB, free: 22.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.263e-06/1.726, allocations: 2.188 kB / 0.5848 GB, free: 22.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006492/1.733, allocations: 0.9874 MB / 0.5858 GB, free: 21.56 MB / 346.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.01706/1.75, allocations: 7.694 MB / 0.5933 GB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01101/1.761, allocations: 4.933 MB / 0.5981 GB, free: 8.895 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.761, allocations: 4 kB / 0.5981 GB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00494/1.766, allocations: 1.927 MB / 0.6 GB, free: 6.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/1.77, allocations: 448.4 kB / 0.6004 GB, free: 6.527 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02875/1.799, allocations: 9.235 MB / 0.6094 GB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007117/1.806, allocations: 3.161 MB / 0.6125 GB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004629/1.81, allocations: 1.807 MB / 0.6143 GB, free: 8.289 MB / 362.7 MB Notification: Performance of SimCode: time 1.393e-06/1.81, allocations: 0 / 0.6143 GB, free: 8.289 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.355/6.165, allocations: 93.51 MB / 0.7056 GB, free: 37.28 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat