Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.577e-05, allocations: 8 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09228, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.483/0.5754, allocations: 85.04 MB / 385 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.5757, allocations: 85.97 kB / 385.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2552/0.831, allocations: 56.59 MB / 441.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.831, allocations: 4 kB / 441.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001323/0.8312, allocations: 44 kB / 441.7 MB, free: 5.293 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.02132/0.8525, allocations: 2.908 MB / 444.6 MB, free: 2.523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.8526, allocations: 8.031 kB / 444.6 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00271/0.8553, allocations: 0.5065 MB / 445.2 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0237/0.8791, allocations: 2.05 MB / 447.2 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02122/0.9004, allocations: 3.581 MB / 450.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/0.9007, allocations: 187.2 kB / 451 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/0.9023, allocations: 250.2 kB / 451.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01972/0.9221, allocations: 6.791 MB / 458 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001567/0.9223, allocations: 47.59 kB / 458 MB, free: 6.145 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000725/0.923, allocations: 129.7 kB / 458.2 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001753/0.9248, allocations: 0.7026 MB / 458.9 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01861/0.9434, allocations: 5.713 MB / 464.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05384/0.9973, allocations: 32.27 MB / 496.9 MB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/1.01, allocations: 2.506 MB / 499.4 MB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002581/1.012, allocations: 0.9867 MB / 0.4886 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/1.026, allocations: 3.556 MB / 0.4921 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.225e-05/1.026, allocations: 54.92 kB / 0.4921 GB, free: 6.953 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 7.695e-06/1.026, allocations: 0 / 0.4921 GB, free: 6.953 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.04634/1.072, allocations: 8.674 MB / 0.5006 GB, free: 14.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001605/1.074, allocations: 1.576 MB / 0.5022 GB, free: 12.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00543/1.079, allocations: 2.391 MB / 0.5045 GB, free: 9.992 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003442/1.08, allocations: 45.64 kB / 0.5045 GB, free: 9.941 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00203/1.082, allocations: 2.06 MB / 0.5065 GB, free: 7.891 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000854/1.083, allocations: 485.4 kB / 0.507 GB, free: 7.422 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004083/1.083, allocations: 84 kB / 0.5071 GB, free: 7.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003789/1.084, allocations: 0.5007 MB / 0.5076 GB, free: 6.828 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003989/1.088, allocations: 1.551 MB / 0.5091 GB, free: 5.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2611/1.349, allocations: 4.272 MB / 0.5133 GB, free: 108.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006495/1.355, allocations: 2.571 MB / 0.5158 GB, free: 108.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/1.355, allocations: 31.95 kB / 0.5158 GB, free: 108.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.0232/1.379, allocations: 6.524 MB / 0.5222 GB, free: 108.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/1.379, allocations: 49.77 kB / 0.5222 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0113/1.39, allocations: 2.488 MB / 0.5247 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009241/1.399, allocations: 1.5 MB / 0.5261 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005812/1.405, allocations: 0.9985 MB / 0.5271 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/1.42, allocations: 7.288 MB / 0.5342 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005875/1.426, allocations: 364.1 kB / 0.5346 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/1.427, allocations: 275.6 kB / 0.5348 GB, free: 105.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (531): * Single equations (assignments): 523 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001018/1.428, allocations: 450.6 kB / 0.5353 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006058/1.428, allocations: 227.5 kB / 0.5355 GB, free: 105 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.439, allocations: 2.778 MB / 0.5382 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009753/1.449, allocations: 2.461 MB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.426e-05/1.449, allocations: 3.875 kB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.239e-05/1.449, allocations: 3.656 kB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/1.469, allocations: 6.709 MB / 0.5471 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/1.469, allocations: 3.75 kB / 0.5471 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.471, allocations: 165.2 kB / 0.5473 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008428/1.479, allocations: 1.432 MB / 0.5487 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002902/1.48, allocations: 29.8 kB / 0.5487 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.495, allocations: 7.44 MB / 0.556 GB, free: 99.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001165/1.496, allocations: 1.435 MB / 0.5574 GB, free: 97.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01427/1.51, allocations: 4.796 MB / 0.5621 GB, free: 95.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008123/1.511, allocations: 300.5 kB / 0.5624 GB, free: 95.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004876/1.512, allocations: 27.12 kB / 0.5624 GB, free: 95.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.514, allocations: 123.6 kB / 0.5625 GB, free: 95.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004657/1.515, allocations: 76.3 kB / 0.5626 GB, free: 95.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/1.515, allocations: 40.83 kB / 0.5626 GB, free: 95.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004034/1.519, allocations: 1.646 MB / 0.5642 GB, free: 95.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.272e-06/1.519, allocations: 3.844 kB / 0.5642 GB, free: 95.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005475/1.524, allocations: 0.7563 MB / 0.565 GB, free: 94.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * 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): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01438/1.539, allocations: 5.623 MB / 0.5705 GB, free: 92.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01057/1.549, allocations: 4.043 MB / 0.5744 GB, free: 89.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.549, allocations: 4 kB / 0.5744 GB, free: 89.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005208/1.555, allocations: 1.664 MB / 0.576 GB, free: 87.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/1.557, allocations: 229.8 kB / 0.5763 GB, free: 87.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01932/1.576, allocations: 6.603 MB / 0.5827 GB, free: 81.92 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/1.58, allocations: 2.33 MB / 0.585 GB, free: 80.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002301/1.582, allocations: 1.12 MB / 0.5861 GB, free: 79.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/1.582, allocations: 0 / 0.5861 GB, free: 79.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.734/6.316, allocations: 85.51 MB / 0.6696 GB, free: 106.1 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.SpringWithMass_res.mat does not exist to compare? outputFormat=mat