Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.553e-05/2.558e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3167, allocations: 44.51 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.4778, allocations: 85.36 MB / 379.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.4782, allocations: 79.95 kB / 379.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6022/1.08, allocations: 75.85 MB / 455.5 MB, free: 89.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.08, allocations: 0 / 455.5 MB, free: 89.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002193/1.081, allocations: 79.56 kB / 455.6 MB, free: 89.18 MB / 362.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.02187/1.103, allocations: 4.047 MB / 459.6 MB, free: 86.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/1.103, allocations: 14.12 kB / 459.6 MB, free: 86.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/1.121, allocations: 2.241 MB / 461.9 MB, free: 85.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01774/1.138, allocations: 4.334 MB / 466.2 MB, free: 82.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/1.139, allocations: 132 kB / 466.3 MB, free: 82.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/1.141, allocations: 244 kB / 466.6 MB, free: 82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01401/1.155, allocations: 5.709 MB / 472.3 MB, free: 76.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02178/1.177, allocations: 9.007 MB / 481.3 MB, free: 66.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002295/1.177, allocations: 59.41 kB / 481.4 MB, free: 66.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001651/1.179, allocations: 32 kB / 481.4 MB, free: 66.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002216/1.181, allocations: 0.9939 MB / 482.4 MB, free: 65.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06425/1.245, allocations: 47.6 MB / 0.5176 GB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004127/1.25, allocations: 2.259 MB / 0.5198 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002347/1.252, allocations: 1.181 MB / 0.5209 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/1.252, allocations: 24.55 kB / 0.5209 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/1.252, allocations: 43.34 kB / 0.521 GB, free: 12.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 7.183e-06/1.252, allocations: 0 / 0.521 GB, free: 12.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=144): time 0.03323/1.285, allocations: 8.883 MB / 0.5296 GB, free: 3.324 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/1.286, allocations: 141.3 kB / 0.5298 GB, free: 3.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00673/1.292, allocations: 2.937 MB / 0.5327 GB, free: 224 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004554/1.293, allocations: 25.7 kB / 0.5327 GB, free: 192 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003733/1.297, allocations: 3.112 MB / 0.5357 GB, free: 13.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001173/1.298, allocations: 0.5864 MB / 0.5363 GB, free: 12.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007559/1.299, allocations: 3.938 kB / 0.5363 GB, free: 12.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006435/1.299, allocations: 0.5791 MB / 0.5369 GB, free: 11.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005163/1.304, allocations: 1.84 MB / 0.5387 GB, free: 10.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009306/1.314, allocations: 5.827 MB / 0.5443 GB, free: 2.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008405/1.322, allocations: 3.243 MB / 0.5475 GB, free: 14.94 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001565/1.323, allocations: 40 kB / 0.5476 GB, free: 14.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=816) (initialization): time 0.0297/1.352, allocations: 7.825 MB / 0.5552 GB, free: 7.062 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/1.352, allocations: 67.94 kB / 0.5553 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01147/1.364, allocations: 2.667 MB / 0.5579 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009261/1.373, allocations: 1.499 MB / 0.5593 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008661/1.382, allocations: 1.407 MB / 0.5607 GB, free: 1.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2892/1.671, allocations: 5.404 MB / 0.566 GB, free: 99.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008018/1.679, allocations: 318.3 kB / 0.5663 GB, free: 99.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001765/1.681, allocations: 397 kB / 0.5667 GB, free: 99.22 MB / 394.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 (747): * Single equations (assignments): 737 * 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 {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 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.002513/1.684, allocations: 464.1 kB / 0.5671 GB, free: 99.11 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01271/1.696, allocations: 3.351 MB / 0.5704 GB, free: 99.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.698, allocations: 305.2 kB / 0.5707 GB, free: 99.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.708, allocations: 2.876 MB / 0.5735 GB, free: 98.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009436/1.718, allocations: 2.49 MB / 0.5759 GB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/1.718, allocations: 4.656 kB / 0.5759 GB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.354e-05/1.718, allocations: 7.406 kB / 0.5759 GB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.733, allocations: 5.215 MB / 0.581 GB, free: 98.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.359e-05/1.733, allocations: 1.781 kB / 0.581 GB, free: 98.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/1.735, allocations: 179.5 kB / 0.5812 GB, free: 98.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008117/1.743, allocations: 1.411 MB / 0.5826 GB, free: 98.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002922/1.743, allocations: 17.55 kB / 0.5826 GB, free: 98.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008916/1.752, allocations: 5.644 MB / 0.5881 GB, free: 94.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001067/1.753, allocations: 1.406 MB / 0.5895 GB, free: 93.09 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01382/1.767, allocations: 5.118 MB / 0.5945 GB, free: 91.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009928/1.768, allocations: 346.2 kB / 0.5948 GB, free: 91.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/1.769, allocations: 13.73 kB / 0.5948 GB, free: 91.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002859/1.772, allocations: 117.8 kB / 0.5949 GB, free: 91.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005484/1.773, allocations: 81.42 kB / 0.595 GB, free: 91.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/1.773, allocations: 39.73 kB / 0.595 GB, free: 91.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00445/1.777, allocations: 1.919 MB / 0.5969 GB, free: 90.32 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.777, allocations: 0 / 0.5969 GB, free: 90.32 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00723/1.785, allocations: 0.864 MB / 0.5977 GB, free: 90.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET5611733384.x[3],$STATESET5611733384.x[2],$STATESET5611733384.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.01309/1.798, allocations: 5.715 MB / 0.6033 GB, free: 87.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01291/1.811, allocations: 4.992 MB / 0.6082 GB, free: 86.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/1.811, allocations: 0 / 0.6082 GB, free: 86.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006365/1.817, allocations: 1.936 MB / 0.6101 GB, free: 85.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/1.82, allocations: 284.1 kB / 0.6104 GB, free: 85.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02742/1.847, allocations: 8.765 MB / 0.6189 GB, free: 78.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006277/1.854, allocations: 3.131 MB / 0.622 GB, free: 75.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003795/1.857, allocations: 1.746 MB / 0.6237 GB, free: 74.07 MB / 394.7 MB Notification: Performance of SimCode: time 1.383e-06/1.857, allocations: 0 / 0.6237 GB, free: 74.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.786/6.643, allocations: 153 MB / 0.7731 GB, free: 83.09 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat