Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.666/1.666, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.658e-05/2.674e-05, allocations: 8 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2521, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.389, allocations: 78.75 MB / 337.1 MB, free: 15.06 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.3893, allocations: 83.95 kB / 337.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4394/0.8287, allocations: 55.43 MB / 392.6 MB, free: 79.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8288, allocations: 0 / 392.6 MB, free: 79.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001172/0.8289, allocations: 46.44 kB / 392.6 MB, free: 79.98 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01631/0.8452, allocations: 2.911 MB / 395.5 MB, free: 78.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.8453, allocations: 9.656 kB / 395.6 MB, free: 78.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01582/0.8611, allocations: 2.035 MB / 397.6 MB, free: 76.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.8745, allocations: 3.59 MB / 401.2 MB, free: 72.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.8746, allocations: 84.34 kB / 401.3 MB, free: 72.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.8757, allocations: 159.8 kB / 401.4 MB, free: 72.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008509/0.8843, allocations: 3.991 MB / 405.4 MB, free: 68.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.8974, allocations: 6.162 MB / 411.6 MB, free: 61.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.8976, allocations: 39.62 kB / 411.6 MB, free: 61.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006138/0.8982, allocations: 24 kB / 411.6 MB, free: 61.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001432/0.8997, allocations: 0.7109 MB / 412.3 MB, free: 60.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04064/0.9403, allocations: 30.99 MB / 443.3 MB, free: 29.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004548/0.945, allocations: 1.974 MB / 445.3 MB, free: 26.92 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002614/0.9476, allocations: 0.9589 MB / 446.3 MB, free: 25.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001749/0.9494, allocations: 0.6541 MB / 446.9 MB, free: 25.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.9495, allocations: 54.89 kB / 447 MB, free: 25.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 6.252e-06/0.9495, allocations: 0 / 447 MB, free: 25.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=124): time 0.03983/0.9893, allocations: 8.127 MB / 455.1 MB, free: 16.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.372e-05/0.9895, allocations: 145.1 kB / 455.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005092/0.9946, allocations: 2.114 MB / 457.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003788/0.995, allocations: 25.7 kB / 457.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.997, allocations: 2.12 MB / 459.5 MB, free: 12.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009131/0.9979, allocations: 0.4937 MB / 460 MB, free: 11.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/0.9983, allocations: 0 / 460 MB, free: 11.87 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004057/0.9988, allocations: 0.505 MB / 460.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004424/1.003, allocations: 1.524 MB / 462 MB, free: 9.824 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006672/1.01, allocations: 4.372 MB / 466.4 MB, free: 4.004 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007426/1.017, allocations: 2.573 MB / 469 MB, free: 1.426 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001155/1.018, allocations: 32 kB / 469 MB, free: 1.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=606) (initialization): time 0.02219/1.04, allocations: 6.291 MB / 475.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.41e-05/1.04, allocations: 48 kB / 475.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009975/1.05, allocations: 2.371 MB / 477.7 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008446/1.058, allocations: 1.396 MB / 479.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006496/1.065, allocations: 1.061 MB / 480.2 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/1.079, allocations: 6.569 MB / 486.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005706/1.085, allocations: 283.4 kB / 487 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009505/1.086, allocations: 288 kB / 487.3 MB, free: 14.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * 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 (561): * Single equations (assignments): 553 * 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 {1} * 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.0009111/1.087, allocations: 360.1 kB / 487.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01232/1.099, allocations: 3.109 MB / 490.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007941/1.1, allocations: 217.2 kB / 491 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.112, allocations: 2.718 MB / 493.7 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01048/1.122, allocations: 2.413 MB / 496.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/1.122, allocations: 4 kB / 496.1 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.869e-05/1.122, allocations: 7.984 kB / 496.1 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2466/1.369, allocations: 6.635 MB / 0.491 GB, free: 96.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-05/1.369, allocations: 2.844 kB / 0.491 GB, free: 96.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001775/1.371, allocations: 171.5 kB / 0.4911 GB, free: 96.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008765/1.38, allocations: 1.405 MB / 0.4925 GB, free: 96.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000329/1.38, allocations: 19.27 kB / 0.4925 GB, free: 96.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.395, allocations: 7.169 MB / 0.4995 GB, free: 93.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001024/1.396, allocations: 1.38 MB / 0.5009 GB, free: 92.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/1.409, allocations: 4.814 MB / 0.5056 GB, free: 91.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007203/1.41, allocations: 282.2 kB / 0.5058 GB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005899/1.411, allocations: 10.66 kB / 0.5059 GB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/1.413, allocations: 112.4 kB / 0.506 GB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/1.413, allocations: 80.14 kB / 0.506 GB, free: 91.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/1.413, allocations: 37.62 kB / 0.5061 GB, free: 91.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00265/1.416, allocations: 1.398 MB / 0.5074 GB, free: 91.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.416, allocations: 0 / 0.5074 GB, free: 91.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005119/1.421, allocations: 0.6722 MB / 0.5081 GB, free: 91.63 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 (83): * Single equations (assignments): 77 * 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.01403/1.435, allocations: 5.623 MB / 0.5136 GB, free: 89.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009777/1.445, allocations: 3.97 MB / 0.5175 GB, free: 88.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.445, allocations: 3.969 kB / 0.5175 GB, free: 88.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004837/1.45, allocations: 1.682 MB / 0.5191 GB, free: 87.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/1.452, allocations: 190.3 kB / 0.5193 GB, free: 87.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01713/1.469, allocations: 6.477 MB / 0.5256 GB, free: 85.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002986/1.472, allocations: 2.322 MB / 0.5279 GB, free: 84.03 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002231/1.474, allocations: 1.12 MB / 0.529 GB, free: 83.17 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/1.474, allocations: 0 / 0.529 GB, free: 83.17 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.69/5.164, allocations: 84.85 MB / 0.6118 GB, free: 1.805 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat