Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.669/1.669, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.622e-05/2.63e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2528, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.4005, allocations: 86.39 MB / 344.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.4009, allocations: 79.95 kB / 344.8 MB, free: 7.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5035/0.9044, allocations: 72.34 MB / 417.1 MB, free: 58.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.9044, allocations: 4 kB / 417.1 MB, free: 58.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000201/0.9046, allocations: 68 kB / 417.2 MB, free: 58.59 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01195/0.9166, allocations: 3.417 MB / 420.6 MB, free: 55.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.9167, allocations: 8.031 kB / 420.6 MB, free: 55.11 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.017/0.9337, allocations: 2.265 MB / 422.9 MB, free: 52.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.9478, allocations: 3.881 MB / 426.8 MB, free: 48.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002385/0.9481, allocations: 124 kB / 426.9 MB, free: 48.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001857/0.9499, allocations: 215.9 kB / 427.1 MB, free: 48.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01276/0.9627, allocations: 5.495 MB / 432.6 MB, free: 43.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01924/0.982, allocations: 8.454 MB / 441.1 MB, free: 33.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001865/0.9822, allocations: 51.5 kB / 441.1 MB, free: 33.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001216/0.9835, allocations: 28 kB / 441.1 MB, free: 33.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002292/0.9858, allocations: 0.9775 MB / 442.1 MB, free: 32.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06112/1.047, allocations: 43.4 MB / 485.5 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005949/1.053, allocations: 2.679 MB / 488.2 MB, free: 1.172 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00363/1.057, allocations: 1.618 MB / 489.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009573/1.058, allocations: 0.5526 MB / 490.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/1.058, allocations: 43.34 kB / 490.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 4.899e-06/1.058, allocations: 0 / 490.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=162): time 0.2943/1.352, allocations: 16.15 MB / 0.4947 GB, free: 89.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/1.352, allocations: 151.1 kB / 0.4948 GB, free: 89.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006212/1.358, allocations: 2.593 MB / 0.4974 GB, free: 89.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004201/1.359, allocations: 26.58 kB / 0.4974 GB, free: 89.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002314/1.361, allocations: 2.75 MB / 0.5001 GB, free: 88.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009382/1.362, allocations: 0.615 MB / 0.5007 GB, free: 88.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006217/1.363, allocations: 3.938 kB / 0.5007 GB, free: 88.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003646/1.363, allocations: 0.545 MB / 0.5012 GB, free: 87.81 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004309/1.367, allocations: 1.804 MB / 0.503 GB, free: 87.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006847/1.374, allocations: 5.272 MB / 0.5081 GB, free: 83.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/1.381, allocations: 3.045 MB / 0.5111 GB, free: 83.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/1.381, allocations: 36.78 kB / 0.5111 GB, free: 83.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.02279/1.404, allocations: 7.288 MB / 0.5182 GB, free: 82.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.404, allocations: 56.34 kB / 0.5183 GB, free: 82.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001815/1.405, allocations: 123.9 kB / 0.5184 GB, free: 82.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007004/1.412, allocations: 1.305 MB / 0.5197 GB, free: 82.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007816/1.419, allocations: 1.307 MB / 0.521 GB, free: 82.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/1.433, allocations: 5.826 MB / 0.5267 GB, free: 79.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00682/1.44, allocations: 245 kB / 0.5269 GB, free: 79.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00149/1.441, allocations: 348.6 kB / 0.5272 GB, free: 79.47 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (696): * Single equations (assignments): 692 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002041/1.443, allocations: 421.9 kB / 0.5276 GB, free: 79.12 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01217/1.455, allocations: 3.473 MB / 0.531 GB, free: 78.08 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009839/1.456, allocations: 273.7 kB / 0.5313 GB, free: 77.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/1.468, allocations: 3.149 MB / 0.5344 GB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.076e-05/1.468, allocations: 18.03 kB / 0.5344 GB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/1.468, allocations: 5.312 kB / 0.5344 GB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.963e-05/1.468, allocations: 9.25 kB / 0.5344 GB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02214/1.49, allocations: 6.898 MB / 0.5411 GB, free: 73.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.193e-05/1.49, allocations: 4 kB / 0.5411 GB, free: 73.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/1.492, allocations: 249.3 kB / 0.5414 GB, free: 73.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006465/1.499, allocations: 1.096 MB / 0.5424 GB, free: 72.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003071/1.499, allocations: 15.28 kB / 0.5425 GB, free: 72.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/1.511, allocations: 5.447 MB / 0.5478 GB, free: 68.22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/1.511, allocations: 64 / 0.5478 GB, free: 68.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/1.525, allocations: 5.542 MB / 0.5532 GB, free: 63.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001798/1.527, allocations: 0.5372 MB / 0.5537 GB, free: 63.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006492/1.528, allocations: 7.188 kB / 0.5537 GB, free: 63.03 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.53, allocations: 89.22 kB / 0.5538 GB, free: 62.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/1.53, allocations: 95.52 kB / 0.5539 GB, free: 62.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.531, allocations: 49.02 kB / 0.5539 GB, free: 62.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003319/1.534, allocations: 1.703 MB / 0.5556 GB, free: 61.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.534, allocations: 0 / 0.5556 GB, free: 61.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006263/1.54, allocations: 0.7723 MB / 0.5564 GB, free: 60.62 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * 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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01465/1.555, allocations: 6.348 MB / 0.5626 GB, free: 55.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009437/1.564, allocations: 4.416 MB / 0.5669 GB, free: 51.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.565, allocations: 0 / 0.5669 GB, free: 51.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003178/1.568, allocations: 1.456 MB / 0.5683 GB, free: 49.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/1.57, allocations: 244.9 kB / 0.5685 GB, free: 49.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02508/1.595, allocations: 8.049 MB / 0.5764 GB, free: 42.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004226/1.599, allocations: 2.89 MB / 0.5792 GB, free: 39.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/1.603, allocations: 1.6 MB / 0.5808 GB, free: 37.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/1.603, allocations: 3.938 kB / 0.5808 GB, free: 37.58 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.161/5.764, allocations: 81.42 MB / 0.6603 GB, free: 80.2 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.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat