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.72/1.72, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.86e-05/3.878e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2576, allocations: 38.77 MB / 263.9 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.4131, allocations: 87.05 MB / 350.9 MB, free: 2.555 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003288/0.4135, allocations: 87.94 kB / 351 MB, free: 2.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5123/0.9259, allocations: 73.93 MB / 424.9 MB, free: 48.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.9259, allocations: 4 kB / 424.9 MB, free: 48.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001735/0.9261, allocations: 64 kB / 425 MB, free: 48.33 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.01199/0.9381, allocations: 3.436 MB / 428.4 MB, free: 44.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.9382, allocations: 11.97 kB / 428.4 MB, free: 44.83 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002151/0.9403, allocations: 0.6639 MB / 429.1 MB, free: 44.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01662/0.957, allocations: 2.269 MB / 431.4 MB, free: 41.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01395/0.971, allocations: 3.878 MB / 435.2 MB, free: 37.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/0.9713, allocations: 279.2 kB / 435.5 MB, free: 37.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001899/0.9732, allocations: 371.7 kB / 435.9 MB, free: 37.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02986/1.003, allocations: 10.21 MB / 446.1 MB, free: 26.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001748/1.003, allocations: 47.56 kB / 446.1 MB, free: 26.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/1.004, allocations: 179.9 kB / 446.3 MB, free: 25.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002184/1.007, allocations: 0.9818 MB / 447.3 MB, free: 24.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0268/1.033, allocations: 8.302 MB / 455.6 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06752/1.101, allocations: 44.02 MB / 499.6 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2546/1.356, allocations: 3.517 MB / 0.4913 GB, free: 83.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0039/1.36, allocations: 1.735 MB / 0.493 GB, free: 83.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01613/1.376, allocations: 7.152 MB / 0.5 GB, free: 82.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/1.376, allocations: 49.58 kB / 0.5001 GB, free: 82.2 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.45e-06/1.376, allocations: 0 / 0.5001 GB, free: 82.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.07338/1.449, allocations: 14.36 MB / 0.5141 GB, free: 79.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/1.449, allocations: 142 kB / 0.5142 GB, free: 79.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006352/1.456, allocations: 3.033 MB / 0.5172 GB, free: 79.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004092/1.456, allocations: 47.67 kB / 0.5172 GB, free: 79.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002086/1.458, allocations: 2.675 MB / 0.5199 GB, free: 77.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009075/1.459, allocations: 0.6043 MB / 0.5204 GB, free: 77.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000542/1.46, allocations: 105.1 kB / 0.5205 GB, free: 77.01 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003215/1.46, allocations: 0.5365 MB / 0.5211 GB, free: 76.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004463/1.465, allocations: 1.842 MB / 0.5229 GB, free: 76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006657/1.471, allocations: 5.173 MB / 0.5279 GB, free: 70.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006748/1.478, allocations: 3.039 MB / 0.5309 GB, free: 70.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/1.478, allocations: 34.59 kB / 0.5309 GB, free: 70.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02303/1.501, allocations: 7.47 MB / 0.5382 GB, free: 67.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.209e-05/1.501, allocations: 56 kB / 0.5383 GB, free: 67.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001619/1.502, allocations: 120 kB / 0.5384 GB, free: 67.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007057/1.509, allocations: 1.304 MB / 0.5397 GB, free: 66.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007622/1.516, allocations: 1.262 MB / 0.5409 GB, free: 65.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.53, allocations: 6.111 MB / 0.5469 GB, free: 60.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006647/1.537, allocations: 348.5 kB / 0.5472 GB, free: 60.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.538, allocations: 338.6 kB / 0.5475 GB, free: 59.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * 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 (665): * Single equations (assignments): 661 * 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.001076/1.539, allocations: 0.528 MB / 0.548 GB, free: 59.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007403/1.54, allocations: 296.2 kB / 0.5483 GB, free: 59.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.551, allocations: 3.242 MB / 0.5515 GB, free: 56.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-05/1.551, allocations: 19.84 kB / 0.5515 GB, free: 56.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/1.551, allocations: 12 kB / 0.5515 GB, free: 56.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.689e-05/1.551, allocations: 7.734 kB / 0.5515 GB, free: 56.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02148/1.573, allocations: 7.299 MB / 0.5586 GB, free: 50.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.748e-05/1.573, allocations: 3.875 kB / 0.5586 GB, free: 50.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002321/1.575, allocations: 233.1 kB / 0.5589 GB, free: 50.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006514/1.582, allocations: 1.118 MB / 0.56 GB, free: 49.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003552/1.582, allocations: 31.05 kB / 0.56 GB, free: 49.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/1.595, allocations: 5.731 MB / 0.5656 GB, free: 44.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.595, allocations: 7.891 kB / 0.5656 GB, free: 44.85 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/1.609, allocations: 5.547 MB / 0.571 GB, free: 40.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/1.611, allocations: 0.5774 MB / 0.5716 GB, free: 39.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005828/1.612, allocations: 24 kB / 0.5716 GB, free: 39.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002532/1.614, allocations: 111.5 kB / 0.5717 GB, free: 39.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/1.615, allocations: 91.78 kB / 0.5718 GB, free: 39.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/1.615, allocations: 40 kB / 0.5718 GB, free: 39.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00421/1.619, allocations: 2.085 MB / 0.5739 GB, free: 37.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.619, allocations: 0 / 0.5739 GB, free: 37.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006166/1.625, allocations: 0.8928 MB / 0.5747 GB, free: 36.65 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 (119): * Single equations (assignments): 115 * 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.01489/1.64, allocations: 6.361 MB / 0.5809 GB, free: 30.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.65, allocations: 4.396 MB / 0.5852 GB, free: 25.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.65, allocations: 4 kB / 0.5852 GB, free: 25.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003294/1.654, allocations: 1.446 MB / 0.5867 GB, free: 24.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/1.656, allocations: 310.3 kB / 0.587 GB, free: 24.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02506/1.681, allocations: 8.104 MB / 0.5949 GB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003983/1.685, allocations: 2.903 MB / 0.5977 GB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003206/1.689, allocations: 1.592 MB / 0.5993 GB, free: 11.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/1.689, allocations: 4 kB / 0.5993 GB, free: 11.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.316/6.005, allocations: 82.41 MB / 0.6797 GB, free: 59.66 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