Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.974/1.974, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.863e-05/3.869e-05, allocations: 4 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5121/0.6209, allocations: 88.78 MB / 410.6 MB, free: 1.035 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.6212, allocations: 71.97 kB / 410.7 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4139/1.035, allocations: 96.02 MB / 0.4949 GB, free: 320 kB / 426.7 MB Notification: Performance of FrontEnd: time 5.09e-06/1.035, allocations: 0 / 0.4949 GB, free: 320 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003271/1.036, allocations: 103.9 kB / 0.495 GB, free: 216 kB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.3371/1.373, allocations: 5.808 MB / 0.5006 GB, free: 91.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.486e-05/1.373, allocations: 13.69 kB / 0.5006 GB, free: 91.89 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005088/1.378, allocations: 0.8658 MB / 0.5015 GB, free: 91.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02625/1.404, allocations: 2.885 MB / 0.5043 GB, free: 91.49 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02848/1.433, allocations: 7.161 MB / 0.5113 GB, free: 90.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007151/1.433, allocations: 354.4 kB / 0.5116 GB, free: 90.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003029/1.437, allocations: 482.1 kB / 0.5121 GB, free: 90.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0363/1.473, allocations: 12.03 MB / 0.5238 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002668/1.473, allocations: 77.41 kB / 0.5239 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001154/1.474, allocations: 228.8 kB / 0.5241 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002625/1.477, allocations: 1.196 MB / 0.5253 GB, free: 87.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03034/1.507, allocations: 9.939 MB / 0.535 GB, free: 87.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08752/1.595, allocations: 57.05 MB / 0.5907 GB, free: 46.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02358/1.619, allocations: 5.003 MB / 0.5956 GB, free: 44.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005574/1.624, allocations: 2.352 MB / 0.5979 GB, free: 43.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/1.652, allocations: 11.13 MB / 0.6088 GB, free: 34.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/1.652, allocations: 59.7 kB / 0.6088 GB, free: 34.92 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 6.742e-06/1.652, allocations: 0 / 0.6088 GB, free: 34.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.08948/1.741, allocations: 20.57 MB / 0.6289 GB, free: 17.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003425/1.745, allocations: 4.603 MB / 0.6334 GB, free: 12.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009159/1.754, allocations: 3.975 MB / 0.6373 GB, free: 9.434 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008043/1.755, allocations: 60.98 kB / 0.6374 GB, free: 9.371 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002849/1.758, allocations: 3.388 MB / 0.6407 GB, free: 6.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001742/1.759, allocations: 0.9513 MB / 0.6416 GB, free: 5.125 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/1.761, allocations: 147.7 kB / 0.6417 GB, free: 4.984 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004874/1.761, allocations: 0.613 MB / 0.6423 GB, free: 4.363 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007773/1.769, allocations: 3.044 MB / 0.6453 GB, free: 1.316 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01273/1.782, allocations: 7.225 MB / 0.6524 GB, free: 8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/1.794, allocations: 4.623 MB / 0.6569 GB, free: 3.379 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/1.794, allocations: 44 kB / 0.6569 GB, free: 3.336 MB / 442.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.3633/2.157, allocations: 11.99 MB / 0.6686 GB, free: 93.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.157, allocations: 72.06 kB / 0.6687 GB, free: 93.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02398/2.181, allocations: 6.127 MB / 0.6747 GB, free: 93.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01779/2.199, allocations: 3.102 MB / 0.6777 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01129/2.211, allocations: 1.745 MB / 0.6794 GB, free: 93.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02483/2.235, allocations: 14.77 MB / 0.6938 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01689/2.252, allocations: 0.7669 MB / 0.6946 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002254/2.255, allocations: 447.3 kB / 0.695 GB, free: 85.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (891): * Single equations (assignments): 871 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002684/2.257, allocations: 0.6547 MB / 0.6956 GB, free: 85.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/2.259, allocations: 407.8 kB / 0.696 GB, free: 85.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03488/2.294, allocations: 6.958 MB / 0.7028 GB, free: 85.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02947/2.324, allocations: 6.305 MB / 0.709 GB, free: 85.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-05/2.324, allocations: 7.406 kB / 0.709 GB, free: 85.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.955e-05/2.324, allocations: 10.03 kB / 0.709 GB, free: 85.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04697/2.371, allocations: 14.92 MB / 0.7236 GB, free: 80.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-05/2.371, allocations: 3.375 kB / 0.7236 GB, free: 80.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004104/2.375, allocations: 419.3 kB / 0.724 GB, free: 80.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0184/2.393, allocations: 3.341 MB / 0.7272 GB, free: 80.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008709/2.394, allocations: 75.8 kB / 0.7273 GB, free: 79.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02937/2.424, allocations: 16.54 MB / 0.7435 GB, free: 69.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003527/2.427, allocations: 4.421 MB / 0.7478 GB, free: 65.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03227/2.46, allocations: 10.81 MB / 0.7583 GB, free: 58.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/2.461, allocations: 488.7 kB / 0.7588 GB, free: 57.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001985/2.463, allocations: 62.61 kB / 0.7589 GB, free: 57.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006511/2.47, allocations: 339.2 kB / 0.7592 GB, free: 57.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.471, allocations: 183 kB / 0.7594 GB, free: 57.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006043/2.472, allocations: 75.06 kB / 0.7594 GB, free: 57.53 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007326/2.479, allocations: 2.752 MB / 0.7621 GB, free: 55.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.479, allocations: 0 / 0.7621 GB, free: 55.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0104/2.49, allocations: 1.475 MB / 0.7636 GB, free: 53.58 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],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],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03351/2.523, allocations: 12.41 MB / 0.7757 GB, free: 41.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02422/2.547, allocations: 8.46 MB / 0.7839 GB, free: 32.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/2.547, allocations: 0 / 0.7839 GB, free: 32.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01479/2.562, allocations: 4.485 MB / 0.7883 GB, free: 27.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/2.567, allocations: 499.2 kB / 0.7888 GB, free: 27.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04596/2.613, allocations: 13.43 MB / 0.8019 GB, free: 14.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00764/2.621, allocations: 3.734 MB / 0.8056 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005285/2.626, allocations: 2.264 MB / 0.8078 GB, free: 8.113 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/2.626, allocations: 0 / 0.8078 GB, free: 8.113 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.471/9.097, allocations: 305.3 MB / 1.106 GB, free: 55.27 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat