Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.279e-05/3.294e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/0.09478, allocations: 44.52 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.5742, allocations: 90.9 MB / 390.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.5745, allocations: 89.36 kB / 390.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3023/0.8769, allocations: 71.68 MB / 462.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.8769, allocations: 4 kB / 462.6 MB, free: 4.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002205/0.8771, allocations: 68 kB / 462.7 MB, free: 4.324 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.013/0.8901, allocations: 3.356 MB / 466 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.8902, allocations: 8.031 kB / 466 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002191/0.8924, allocations: 0.64 MB / 466.7 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01748/0.9099, allocations: 2.077 MB / 468.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01657/0.9265, allocations: 4.013 MB / 472.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.9269, allocations: 267.7 kB / 473 MB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001885/0.9288, allocations: 344.9 kB / 473.4 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02554/0.9544, allocations: 8.797 MB / 482.2 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002163/0.9546, allocations: 59.41 kB / 482.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001154/0.9558, allocations: 173.7 kB / 482.4 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002116/0.9579, allocations: 0.8639 MB / 483.3 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.9807, allocations: 7.055 MB / 490.3 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4743/1.455, allocations: 42.59 MB / 0.5204 GB, free: 68.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/1.468, allocations: 3.152 MB / 0.5235 GB, free: 67.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00334/1.471, allocations: 1.411 MB / 0.5249 GB, free: 67.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01101/1.482, allocations: 4.087 MB / 0.5289 GB, free: 66.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/1.482, allocations: 48.95 kB / 0.5289 GB, free: 66.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=114): time 5.72e-06/1.482, allocations: 4.844 kB / 0.5289 GB, free: 66.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.03923/1.521, allocations: 9.394 MB / 0.5381 GB, free: 64.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/1.522, allocations: 140.1 kB / 0.5382 GB, free: 63.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00773/1.529, allocations: 3.272 MB / 0.5414 GB, free: 63.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/1.53, allocations: 44.05 kB / 0.5415 GB, free: 63.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0023/1.532, allocations: 2.666 MB / 0.5441 GB, free: 62.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008464/1.533, allocations: 0.5033 MB / 0.5446 GB, free: 61.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006914/1.534, allocations: 104.5 kB / 0.5447 GB, free: 61.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003725/1.534, allocations: 0.536 MB / 0.5452 GB, free: 61.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004111/1.538, allocations: 1.629 MB / 0.5468 GB, free: 61.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006316/1.544, allocations: 5.018 MB / 0.5517 GB, free: 57.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006339/1.551, allocations: 2.857 MB / 0.5545 GB, free: 57.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/1.551, allocations: 32.56 kB / 0.5545 GB, free: 57.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01734/1.568, allocations: 6.443 MB / 0.5608 GB, free: 56.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001204/1.569, allocations: 60.7 kB / 0.5608 GB, free: 56.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/1.569, allocations: 123.3 kB / 0.561 GB, free: 56.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/1.57, allocations: 337 kB / 0.5613 GB, free: 56.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008114/1.578, allocations: 1.272 MB / 0.5625 GB, free: 56.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003375/1.581, allocations: 2.342 MB / 0.5648 GB, free: 55.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005882/1.587, allocations: 283.5 kB / 0.5651 GB, free: 55.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/1.589, allocations: 335.9 kB / 0.5654 GB, free: 55.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001509/1.59, allocations: 0.513 MB / 0.5659 GB, free: 54.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008253/1.591, allocations: 306.2 kB / 0.5662 GB, free: 54.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007675/1.599, allocations: 2.318 MB / 0.5685 GB, free: 54.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.384e-05/1.599, allocations: 11.56 kB / 0.5685 GB, free: 54.69 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/1.599, allocations: 3.781 kB / 0.5685 GB, free: 54.69 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.972e-05/1.599, allocations: 3.328 kB / 0.5685 GB, free: 54.69 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01868/1.618, allocations: 5.833 MB / 0.5742 GB, free: 52.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.656e-05/1.618, allocations: 0 / 0.5742 GB, free: 52.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/1.619, allocations: 165.4 kB / 0.5743 GB, free: 52.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003825/1.623, allocations: 0.7089 MB / 0.575 GB, free: 52.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/1.623, allocations: 21.94 kB / 0.575 GB, free: 52.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008466/1.632, allocations: 4.441 MB / 0.5794 GB, free: 50.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.632, allocations: 7.562 kB / 0.5794 GB, free: 50.22 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01098/1.643, allocations: 4.354 MB / 0.5836 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001935/1.645, allocations: 0.5291 MB / 0.5842 GB, free: 48.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007642/1.646, allocations: 23.59 kB / 0.5842 GB, free: 48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.648, allocations: 67.61 kB / 0.5842 GB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/1.648, allocations: 70.03 kB / 0.5843 GB, free: 47.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.648, allocations: 35.17 kB / 0.5843 GB, free: 47.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005556/1.654, allocations: 2.271 MB / 0.5866 GB, free: 47.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.654, allocations: 0 / 0.5866 GB, free: 47.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006039/1.66, allocations: 0.8129 MB / 0.5874 GB, free: 47.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 86 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0112/1.671, allocations: 5.28 MB / 0.5925 GB, free: 44.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008523/1.68, allocations: 3.9 MB / 0.5963 GB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/1.68, allocations: 0 / 0.5963 GB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/1.682, allocations: 1.075 MB / 0.5974 GB, free: 40.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/1.685, allocations: 350.1 kB / 0.5977 GB, free: 40.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/1.709, allocations: 7.329 MB / 0.6049 GB, free: 34.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007719/1.717, allocations: 2.837 MB / 0.6076 GB, free: 31.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005092/1.722, allocations: 1.557 MB / 0.6091 GB, free: 30.4 MB / 410.7 MB Notification: Performance of SimCode: time 2.675e-06/1.722, allocations: 4 kB / 0.6092 GB, free: 30.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.97/5.692, allocations: 81.99 MB / 0.6892 GB, free: 3.094 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat