Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.807e-05/1.811e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2483, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1377/0.386, allocations: 79.73 MB / 338.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/0.3864, allocations: 87.94 kB / 338.1 MB, free: 14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4987/0.8851, allocations: 75.68 MB / 413.8 MB, free: 61.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.8852, allocations: 0 / 413.8 MB, free: 61.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001844/0.8854, allocations: 83.14 kB / 413.9 MB, free: 61.14 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: 1465 * Number of variables: 1465 Notification: Performance of Generate backend data structure: time 0.01946/0.9048, allocations: 4.042 MB / 417.9 MB, free: 57.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.9049, allocations: 12.03 kB / 418 MB, free: 57.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02028/0.9252, allocations: 2.23 MB / 420.2 MB, free: 54.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02178/0.947, allocations: 4.324 MB / 424.5 MB, free: 50.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002857/0.9474, allocations: 136 kB / 424.6 MB, free: 50.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01425/0.9616, allocations: 236 kB / 424.9 MB, free: 50.1 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03418/0.9959, allocations: 5.708 MB / 430.6 MB, free: 44.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02963/1.026, allocations: 9.012 MB / 439.6 MB, free: 34.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00026/1.026, allocations: 55.5 kB / 439.6 MB, free: 34.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001343/1.027, allocations: 32 kB / 439.7 MB, free: 34.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003068/1.03, allocations: 0.9857 MB / 440.7 MB, free: 33.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09973/1.13, allocations: 47.61 MB / 488.3 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007462/1.138, allocations: 2.247 MB / 490.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004335/1.142, allocations: 1.185 MB / 491.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002017/1.142, allocations: 13.16 kB / 491.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.96e-05/1.142, allocations: 55.28 kB / 491.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=137): time 7.263e-06/1.142, allocations: 0 / 491.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=144): time 0.05169/1.194, allocations: 8.875 MB / 0.4889 GB, free: 3.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.194, allocations: 149.2 kB / 0.4891 GB, free: 3.211 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006795/1.201, allocations: 2.926 MB / 0.4919 GB, free: 292 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003812/1.201, allocations: 29.7 kB / 0.4919 GB, free: 256 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2315/1.433, allocations: 3.106 MB / 0.495 GB, free: 85.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000988/1.434, allocations: 0.5863 MB / 0.4955 GB, free: 85.58 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005427/1.435, allocations: 0.8125 kB / 0.4955 GB, free: 85.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003921/1.435, allocations: 0.5711 MB / 0.4961 GB, free: 85.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004411/1.439, allocations: 1.829 MB / 0.4979 GB, free: 85.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007149/1.447, allocations: 5.832 MB / 0.5036 GB, free: 80.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006802/1.453, allocations: 3.242 MB / 0.5068 GB, free: 80 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001517/1.454, allocations: 43.36 kB / 0.5068 GB, free: 80 MB / 346.7 MB Notification: Performance of matching and sorting (n=816) (initialization): time 0.02315/1.477, allocations: 7.726 MB / 0.5143 GB, free: 79.26 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00012/1.477, allocations: 67.72 kB / 0.5144 GB, free: 79.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009108/1.486, allocations: 2.587 MB / 0.5169 GB, free: 79.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007439/1.494, allocations: 1.423 MB / 0.5183 GB, free: 79.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007874/1.501, allocations: 1.417 MB / 0.5197 GB, free: 78.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006656/1.508, allocations: 5.053 MB / 0.5246 GB, free: 75.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007068/1.515, allocations: 319.7 kB / 0.5249 GB, free: 75.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001237/1.517, allocations: 400.6 kB / 0.5253 GB, free: 75.66 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring3.lineForce.r_rel_0[1]:VARIABLE(unit = "m" ) "Position vector from frame_a to frame_b resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 658 * Number of states: 0 () * Number of discrete variables: 36 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (750): * Single equations (assignments): 740 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.001312/1.518, allocations: 474.7 kB / 0.5258 GB, free: 75.27 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01128/1.529, allocations: 3.343 MB / 0.529 GB, free: 74.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008619/1.53, allocations: 302.7 kB / 0.5293 GB, free: 74.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01024/1.54, allocations: 2.885 MB / 0.5321 GB, free: 73.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008915/1.549, allocations: 2.471 MB / 0.5346 GB, free: 72.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/1.549, allocations: 3.688 kB / 0.5346 GB, free: 72.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.79e-05/1.549, allocations: 18.25 kB / 0.5346 GB, free: 72.45 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.563, allocations: 5.226 MB / 0.5397 GB, free: 70.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.212e-05/1.563, allocations: 0 / 0.5397 GB, free: 70.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.565, allocations: 167.8 kB / 0.5398 GB, free: 70.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007837/1.573, allocations: 1.412 MB / 0.5412 GB, free: 69.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003472/1.573, allocations: 19.94 kB / 0.5412 GB, free: 69.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008546/1.582, allocations: 5.647 MB / 0.5468 GB, free: 64.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009735/1.583, allocations: 1.398 MB / 0.5481 GB, free: 63.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01346/1.596, allocations: 5.098 MB / 0.5531 GB, free: 58.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009661/1.597, allocations: 350.6 kB / 0.5534 GB, free: 58.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007801/1.598, allocations: 15.28 kB / 0.5535 GB, free: 58.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/1.6, allocations: 111.4 kB / 0.5536 GB, free: 58.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000361/1.601, allocations: 90.56 kB / 0.5536 GB, free: 58.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/1.601, allocations: 43.84 kB / 0.5537 GB, free: 58.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003775/1.605, allocations: 1.909 MB / 0.5556 GB, free: 56.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.605, allocations: 4 kB / 0.5556 GB, free: 56.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006796/1.611, allocations: 0.8608 MB / 0.5564 GB, free: 55.76 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET12059722120.x[3],$STATESET12059722120.x[2],$STATESET12059722120.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {8 27} Notification: Performance of Backend phase and start with SimCode phase: time 0.01192/1.623, allocations: 5.71 MB / 0.562 GB, free: 50.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01202/1.635, allocations: 4.87 MB / 0.5667 GB, free: 46.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/1.636, allocations: 4 kB / 0.5667 GB, free: 46.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005964/1.642, allocations: 1.933 MB / 0.5686 GB, free: 44.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/1.644, allocations: 289.6 kB / 0.5689 GB, free: 44.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02631/1.67, allocations: 8.763 MB / 0.5775 GB, free: 36.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005499/1.676, allocations: 3.122 MB / 0.5805 GB, free: 34.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003499/1.679, allocations: 1.745 MB / 0.5822 GB, free: 32.77 MB / 346.7 MB Notification: Performance of SimCode: time 1.563e-06/1.679, allocations: 0 / 0.5822 GB, free: 32.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.516/6.196, allocations: 152.8 MB / 0.7314 GB, free: 8.059 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.ThreeSprings_res.mat does not exist to compare? outputFormat=mat