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.922/1.922, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.641e-05/3.645e-05, allocations: 7.984 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4207/0.5391, allocations: 88.77 MB / 410.6 MB, free: 1.059 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.5395, allocations: 72.84 kB / 410.7 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4156/0.9551, allocations: 96.02 MB / 0.4948 GB, free: 344 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9551, allocations: 0 / 0.4948 GB, free: 344 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.9554, allocations: 92 kB / 0.4949 GB, free: 252 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.3347/1.29, allocations: 5.815 MB / 0.5006 GB, free: 91.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/1.29, allocations: 11.5 kB / 0.5006 GB, free: 91.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004914/1.295, allocations: 0.863 MB / 0.5014 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02715/1.322, allocations: 2.886 MB / 0.5043 GB, free: 91.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02933/1.352, allocations: 7.158 MB / 0.5112 GB, free: 90.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007233/1.353, allocations: 356.9 kB / 0.5116 GB, free: 90.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003081/1.356, allocations: 485.9 kB / 0.5121 GB, free: 90.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03859/1.394, allocations: 12.09 MB / 0.5239 GB, free: 87.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003823/1.395, allocations: 73.09 kB / 0.5239 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00233/1.397, allocations: 234.4 kB / 0.5242 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003123/1.4, allocations: 1.192 MB / 0.5253 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03206/1.432, allocations: 10.15 MB / 0.5352 GB, free: 87.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09071/1.523, allocations: 57.05 MB / 0.5909 GB, free: 46.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02414/1.547, allocations: 5.017 MB / 0.5958 GB, free: 44.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005652/1.553, allocations: 2.358 MB / 0.5981 GB, free: 43.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02878/1.582, allocations: 11.13 MB / 0.609 GB, free: 34.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/1.582, allocations: 59.77 kB / 0.6091 GB, free: 34.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=198): time 5.951e-06/1.582, allocations: 4 kB / 0.6091 GB, free: 34.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.0934/1.675, allocations: 20.57 MB / 0.6292 GB, free: 17.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003574/1.679, allocations: 4.609 MB / 0.6337 GB, free: 12.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009614/1.689, allocations: 3.974 MB / 0.6375 GB, free: 9.266 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008035/1.69, allocations: 65.61 kB / 0.6376 GB, free: 9.199 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00306/1.693, allocations: 3.387 MB / 0.6409 GB, free: 5.832 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001762/1.694, allocations: 0.9558 MB / 0.6418 GB, free: 4.887 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/1.696, allocations: 140 kB / 0.642 GB, free: 4.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005484/1.696, allocations: 0.6207 MB / 0.6426 GB, free: 4.121 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007952/1.704, allocations: 3.04 MB / 0.6456 GB, free: 1.078 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01789/1.722, allocations: 7.261 MB / 0.6526 GB, free: 7.723 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01902/1.741, allocations: 4.628 MB / 0.6572 GB, free: 3.098 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002224/1.741, allocations: 44 kB / 0.6572 GB, free: 3.055 MB / 442.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.3861/2.128, allocations: 12.4 MB / 0.6693 GB, free: 94.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/2.128, allocations: 69.2 kB / 0.6694 GB, free: 94.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02491/2.153, allocations: 6.13 MB / 0.6754 GB, free: 94.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01801/2.171, allocations: 3.11 MB / 0.6784 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0115/2.182, allocations: 1.742 MB / 0.6801 GB, free: 94.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02364/2.206, allocations: 14.78 MB / 0.6945 GB, free: 86.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01197/2.218, allocations: 0.758 MB / 0.6953 GB, free: 86.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002006/2.22, allocations: 448.7 kB / 0.6957 GB, free: 86.55 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.00308/2.223, allocations: 0.6646 MB / 0.6964 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/2.225, allocations: 412.5 kB / 0.6968 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02712/2.252, allocations: 6.946 MB / 0.7035 GB, free: 86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02812/2.28, allocations: 6.302 MB / 0.7097 GB, free: 85.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-05/2.28, allocations: 19.17 kB / 0.7097 GB, free: 85.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.761e-05/2.28, allocations: 15.55 kB / 0.7097 GB, free: 85.77 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07729/2.357, allocations: 14.92 MB / 0.7243 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-05/2.358, allocations: 3.938 kB / 0.7243 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006618/2.364, allocations: 420 kB / 0.7247 GB, free: 81.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02979/2.394, allocations: 3.337 MB / 0.728 GB, free: 80.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001132/2.395, allocations: 75.48 kB / 0.728 GB, free: 80.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04653/2.442, allocations: 16.55 MB / 0.7442 GB, free: 70.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005243/2.447, allocations: 4.414 MB / 0.7485 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05066/2.498, allocations: 10.83 MB / 0.7591 GB, free: 58.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/2.5, allocations: 485.9 kB / 0.7595 GB, free: 58.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002675/2.503, allocations: 63.12 kB / 0.7596 GB, free: 58.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009654/2.513, allocations: 339.3 kB / 0.7599 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/2.515, allocations: 186.3 kB / 0.7601 GB, free: 57.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001/2.516, allocations: 71.48 kB / 0.7602 GB, free: 57.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0111/2.527, allocations: 2.752 MB / 0.7629 GB, free: 55.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.044e-06/2.527, allocations: 0 / 0.7629 GB, free: 55.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01547/2.543, allocations: 1.479 MB / 0.7643 GB, free: 53.68 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.04922/2.592, allocations: 12.4 MB / 0.7764 GB, free: 41.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02481/2.617, allocations: 8.699 MB / 0.7849 GB, free: 32.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.617, allocations: 0 / 0.7849 GB, free: 32.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01531/2.632, allocations: 4.537 MB / 0.7893 GB, free: 27.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004734/2.637, allocations: 0.4953 MB / 0.7898 GB, free: 27.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04062/2.678, allocations: 13.46 MB / 0.803 GB, free: 13.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008328/2.686, allocations: 3.737 MB / 0.8066 GB, free: 10.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005519/2.692, allocations: 2.264 MB / 0.8088 GB, free: 7.875 MB / 442.7 MB Notification: Performance of SimCode: time 1.783e-06/2.692, allocations: 0 / 0.8088 GB, free: 7.875 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.307/8.998, allocations: 306.4 MB / 1.108 GB, free: 53.2 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