Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.595e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2605, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.4148, allocations: 84.73 MB / 348.6 MB, free: 5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.4151, allocations: 83.95 kB / 348.6 MB, free: 4.918 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6694/1.085, allocations: 107.8 MB / 456.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.085, allocations: 0 / 456.4 MB, free: 17.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002828/1.085, allocations: 100 kB / 456.5 MB, free: 16.96 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: 1913 * Number of variables: 1913 Notification: Performance of Generate backend data structure: time 0.04233/1.127, allocations: 6.308 MB / 462.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.127, allocations: 12.03 kB / 462.8 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003913/1.131, allocations: 0.9757 MB / 463.8 MB, free: 9.586 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02732/1.159, allocations: 3.371 MB / 467.2 MB, free: 6.203 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0276/1.186, allocations: 7.475 MB / 474.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006691/1.187, allocations: 414.7 kB / 475 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003372/1.19, allocations: 0.5426 MB / 475.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0636/1.254, allocations: 16.39 MB / 492 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003377/1.254, allocations: 75.28 kB / 492 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002507/1.257, allocations: 263.8 kB / 492.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004868/1.262, allocations: 1.484 MB / 493.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.304/1.566, allocations: 14.13 MB / 0.496 GB, free: 58.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/1.666, allocations: 63.61 MB / 0.5581 GB, free: 20.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02877/1.695, allocations: 6.184 MB / 0.5642 GB, free: 18.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006624/1.702, allocations: 2.965 MB / 0.5671 GB, free: 17.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03249/1.734, allocations: 13.21 MB / 0.58 GB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/1.734, allocations: 58.69 kB / 0.58 GB, free: 11.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=246): time 6.512e-06/1.734, allocations: 0 / 0.58 GB, free: 11.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=278): time 0.1087/1.843, allocations: 21.91 MB / 0.6014 GB, free: 14.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004562/1.848, allocations: 4.572 MB / 0.6059 GB, free: 9.551 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/1.859, allocations: 4.191 MB / 0.61 GB, free: 5.836 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008771/1.86, allocations: 69.53 kB / 0.61 GB, free: 5.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004399/1.864, allocations: 3.724 MB / 0.6137 GB, free: 2.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0023/1.867, allocations: 1.097 MB / 0.6148 GB, free: 1.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/1.868, allocations: 158.7 kB / 0.6149 GB, free: 1.273 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006857/1.868, allocations: 0.6458 MB / 0.6155 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02364/1.892, allocations: 4.071 MB / 0.6195 GB, free: 15.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01458/1.907, allocations: 7.759 MB / 0.6271 GB, free: 6.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/1.92, allocations: 4.886 MB / 0.6319 GB, free: 1.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001675/1.92, allocations: 48 kB / 0.6319 GB, free: 1.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=1053) (initialization): time 0.2997/2.22, allocations: 12.64 MB / 0.6442 GB, free: 84.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/2.22, allocations: 73.16 kB / 0.6443 GB, free: 84.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02095/2.241, allocations: 6.173 MB / 0.6503 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/2.255, allocations: 2.609 MB / 0.6529 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01283/2.268, allocations: 1.966 MB / 0.6548 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/2.282, allocations: 11.5 MB / 0.666 GB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01288/2.295, allocations: 0.8176 MB / 0.6668 GB, free: 76.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002164/2.297, allocations: 483.5 kB / 0.6673 GB, free: 76.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 729 * Number of states: 0 () * Number of discrete variables: 48 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (996): * Single equations (assignments): 975 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,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 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002669/2.3, allocations: 0.7005 MB / 0.668 GB, free: 75.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/2.301, allocations: 453.5 kB / 0.6684 GB, free: 75.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02487/2.326, allocations: 6.903 MB / 0.6752 GB, free: 75.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0223/2.348, allocations: 6.165 MB / 0.6812 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.578e-05/2.348, allocations: 7.062 kB / 0.6812 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.672e-05/2.349, allocations: 17.72 kB / 0.6812 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04854/2.397, allocations: 15.65 MB / 0.6965 GB, free: 69.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-05/2.397, allocations: 6.812 kB / 0.6965 GB, free: 69.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005156/2.402, allocations: 0.5161 MB / 0.697 GB, free: 69.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01566/2.418, allocations: 2.889 MB / 0.6998 GB, free: 67.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008877/2.419, allocations: 94.66 kB / 0.6999 GB, free: 67.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02083/2.44, allocations: 13.7 MB / 0.7133 GB, free: 54.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003246/2.443, allocations: 4.433 MB / 0.7176 GB, free: 50.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03032/2.473, allocations: 11.42 MB / 0.7288 GB, free: 40.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/2.475, allocations: 0.5105 MB / 0.7293 GB, free: 40.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001679/2.477, allocations: 75.25 kB / 0.7293 GB, free: 39.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006277/2.483, allocations: 353.3 kB / 0.7297 GB, free: 39.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001174/2.484, allocations: 217.1 kB / 0.7299 GB, free: 39.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003724/2.485, allocations: 89.45 kB / 0.73 GB, free: 39.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00697/2.492, allocations: 2.882 MB / 0.7328 GB, free: 36.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.112e-06/2.492, allocations: 0 / 0.7328 GB, free: 36.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009565/2.501, allocations: 1.583 MB / 0.7343 GB, free: 35.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 37 ($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],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],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 211 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,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 {(2,100.0%) 1,(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.03088/2.532, allocations: 13.45 MB / 0.7475 GB, free: 21.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.026/2.558, allocations: 9.326 MB / 0.7566 GB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/2.558, allocations: 4 kB / 0.7566 GB, free: 12.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01626/2.575, allocations: 4.887 MB / 0.7614 GB, free: 6.957 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004706/2.579, allocations: 0.5247 MB / 0.7619 GB, free: 6.449 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3024/2.882, allocations: 14.77 MB / 0.7763 GB, free: 95.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009232/2.891, allocations: 4.071 MB / 0.7803 GB, free: 94.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006438/2.898, allocations: 2.59 MB / 0.7828 GB, free: 94.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.674e-06/2.898, allocations: 3 kB / 0.7828 GB, free: 94.19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.639/9.537, allocations: 356.2 MB / 1.131 GB, free: 72.74 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat