Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.513e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.5726, allocations: 90.38 MB / 390.3 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5729, allocations: 89.8 kB / 390.4 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4471/1.02, allocations: 107.9 MB / 498.3 MB, free: 1.848 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.02, allocations: 0 / 498.3 MB, free: 1.848 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003545/1.02, allocations: 100 kB / 498.4 MB, free: 1.75 MB / 378.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.04716/1.068, allocations: 6.32 MB / 0.4929 GB, free: 11.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.644e-05/1.068, allocations: 8.031 kB / 0.4929 GB, free: 11.39 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00537/1.073, allocations: 0.9835 MB / 0.4939 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02988/1.103, allocations: 3.409 MB / 0.4972 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03111/1.134, allocations: 7.491 MB / 0.5045 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000701/1.135, allocations: 411.4 kB / 0.5049 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003566/1.139, allocations: 0.5388 MB / 0.5055 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3729/1.512, allocations: 16.38 MB / 0.5215 GB, free: 72.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006227/1.512, allocations: 78.45 kB / 0.5215 GB, free: 72.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003251/1.516, allocations: 263.9 kB / 0.5218 GB, free: 72.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005363/1.521, allocations: 1.488 MB / 0.5232 GB, free: 72.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05511/1.576, allocations: 14.12 MB / 0.537 GB, free: 72.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1048/1.681, allocations: 63.55 MB / 0.5991 GB, free: 35.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03025/1.711, allocations: 6.19 MB / 0.6051 GB, free: 33.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006748/1.718, allocations: 2.959 MB / 0.608 GB, free: 32.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03452/1.753, allocations: 13.23 MB / 0.6209 GB, free: 41.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.801e-05/1.753, allocations: 62.03 kB / 0.621 GB, free: 41.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=246): time 6.803e-06/1.753, allocations: 3.406 kB / 0.621 GB, free: 41.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=278): time 0.1124/1.865, allocations: 21.86 MB / 0.6423 GB, free: 32.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004305/1.87, allocations: 4.581 MB / 0.6468 GB, free: 27.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.88, allocations: 4.186 MB / 0.6509 GB, free: 24.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008785/1.881, allocations: 69.3 kB / 0.651 GB, free: 24.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003297/1.884, allocations: 3.724 MB / 0.6546 GB, free: 20.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001978/1.886, allocations: 1.095 MB / 0.6557 GB, free: 19.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/1.888, allocations: 159.9 kB / 0.6558 GB, free: 19.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007375/1.888, allocations: 0.6547 MB / 0.6565 GB, free: 19.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008539/1.897, allocations: 3.235 MB / 0.6596 GB, free: 16.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01307/1.91, allocations: 7.766 MB / 0.6672 GB, free: 6.766 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01332/1.923, allocations: 4.901 MB / 0.672 GB, free: 2.562 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001802/1.924, allocations: 48 kB / 0.672 GB, free: 2.516 MB / 426.7 MB Notification: Performance of matching and sorting (n=1052) (initialization): time 0.3681/2.292, allocations: 12.91 MB / 0.6847 GB, free: 83.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.292, allocations: 73.44 kB / 0.6847 GB, free: 83.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0236/2.316, allocations: 6.422 MB / 0.691 GB, free: 82.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01655/2.332, allocations: 2.862 MB / 0.6938 GB, free: 82.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01251/2.345, allocations: 1.911 MB / 0.6957 GB, free: 82.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/2.363, allocations: 12.61 MB / 0.708 GB, free: 75.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01266/2.376, allocations: 0.8219 MB / 0.7088 GB, free: 75.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002118/2.378, allocations: 483.3 kB / 0.7092 GB, free: 75.03 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (986): * Single equations (assignments): 965 * 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 {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 prepare postOptimizeDAE: time 0.002914/2.381, allocations: 0.6979 MB / 0.7099 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/2.382, allocations: 451.8 kB / 0.7104 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02476/2.407, allocations: 6.906 MB / 0.7171 GB, free: 74.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02292/2.43, allocations: 6.173 MB / 0.7231 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.195e-05/2.43, allocations: 7.844 kB / 0.7231 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.253e-05/2.43, allocations: 13.55 kB / 0.7231 GB, free: 74.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05212/2.482, allocations: 15.65 MB / 0.7384 GB, free: 72.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.094e-05/2.482, allocations: 3.875 kB / 0.7384 GB, free: 72.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005372/2.488, allocations: 0.5216 MB / 0.7389 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01562/2.503, allocations: 2.889 MB / 0.7418 GB, free: 71.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009172/2.504, allocations: 86.62 kB / 0.7418 GB, free: 71.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/2.526, allocations: 13.71 MB / 0.7552 GB, free: 62.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003421/2.529, allocations: 4.431 MB / 0.7596 GB, free: 58.17 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0316/2.561, allocations: 11.43 MB / 0.7707 GB, free: 53.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/2.562, allocations: 0.5088 MB / 0.7712 GB, free: 52.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001964/2.564, allocations: 66.05 kB / 0.7713 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006573/2.571, allocations: 353.2 kB / 0.7716 GB, free: 52.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001359/2.572, allocations: 221.2 kB / 0.7718 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004187/2.573, allocations: 93.78 kB / 0.7719 GB, free: 52.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007511/2.58, allocations: 2.878 MB / 0.7747 GB, free: 49.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.58, allocations: 7.375 kB / 0.7747 GB, free: 49.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0108/2.591, allocations: 1.593 MB / 0.7763 GB, free: 48.18 MB / 426.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.03325/2.625, allocations: 13.46 MB / 0.7894 GB, free: 36.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02657/2.651, allocations: 9.696 MB / 0.7989 GB, free: 27.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/2.651, allocations: 0 / 0.7989 GB, free: 27.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01634/2.668, allocations: 4.893 MB / 0.8037 GB, free: 23.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004948/2.673, allocations: 0.5266 MB / 0.8042 GB, free: 22.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0459/2.719, allocations: 14.78 MB / 0.8186 GB, free: 9.324 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008908/2.728, allocations: 4.08 MB / 0.8226 GB, free: 5.238 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006456/2.734, allocations: 2.596 MB / 0.8251 GB, free: 2.645 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/2.734, allocations: 2.297 kB / 0.8252 GB, free: 2.645 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.26/9.995, allocations: 356.8 MB / 1.174 GB, free: 104 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat