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.646/1.646, allocations: 171.2 MB / 178.8 MB, free: 8.207 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.221e-05/2.247e-05, allocations: 4 kB / 219.6 MB, free: 11.36 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07823, allocations: 38.76 MB / 258.3 MB, free: 4.523 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3881/0.4664, allocations: 84.41 MB / 342.7 MB, free: 3.418 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.4667, allocations: 90.19 kB / 342.8 MB, free: 3.371 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6642/1.131, allocations: 105.3 MB / 448.2 MB, free: 75.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.345e-06/1.131, allocations: 0 / 448.2 MB, free: 75.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002896/1.131, allocations: 104.4 kB / 448.3 MB, free: 75.92 MB / 346.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.04396/1.175, allocations: 6.302 MB / 454.6 MB, free: 73.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/1.175, allocations: 18.38 kB / 454.6 MB, free: 73.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02759/1.203, allocations: 3.373 MB / 458 MB, free: 73.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02757/1.23, allocations: 7.467 MB / 465.4 MB, free: 72.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003766/1.231, allocations: 173.7 kB / 465.6 MB, free: 72.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003061/1.234, allocations: 324.2 kB / 465.9 MB, free: 72.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02072/1.255, allocations: 8.374 MB / 474.3 MB, free: 70.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03087/1.286, allocations: 12.18 MB / 486.5 MB, free: 60.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003466/1.286, allocations: 75.34 kB / 486.5 MB, free: 60.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002566/1.289, allocations: 36 kB / 486.6 MB, free: 60.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004302/1.293, allocations: 1.496 MB / 488.1 MB, free: 58.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3771/1.67, allocations: 62.61 MB / 0.5378 GB, free: 34.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00951/1.68, allocations: 4.221 MB / 0.5419 GB, free: 34.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006519/1.686, allocations: 2.792 MB / 0.5446 GB, free: 34.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03243/1.719, allocations: 12.02 MB / 0.5564 GB, free: 31.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.705e-05/1.719, allocations: 62.84 kB / 0.5564 GB, free: 31.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=238): time 6.092e-06/1.719, allocations: 0 / 0.5564 GB, free: 31.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=267): time 0.08362/1.803, allocations: 19.33 MB / 0.5753 GB, free: 27.31 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/1.803, allocations: 151.5 kB / 0.5754 GB, free: 27.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/1.814, allocations: 3.661 MB / 0.579 GB, free: 25.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001017/1.815, allocations: 25.7 kB / 0.579 GB, free: 25.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004607/1.819, allocations: 3.85 MB / 0.5828 GB, free: 22.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00252/1.822, allocations: 1.029 MB / 0.5838 GB, free: 21.97 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/1.824, allocations: 0 / 0.5838 GB, free: 21.97 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0008649/1.824, allocations: 0.6589 MB / 0.5845 GB, free: 21.51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/1.835, allocations: 3.085 MB / 0.5875 GB, free: 20.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01508/1.85, allocations: 7.74 MB / 0.595 GB, free: 13.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/1.863, allocations: 4.753 MB / 0.5997 GB, free: 11.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002043/1.863, allocations: 45.97 kB / 0.5997 GB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=1072) (initialization): time 0.0369/1.9, allocations: 11.7 MB / 0.6111 GB, free: 5.176 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/1.9, allocations: 76 kB / 0.6112 GB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01979/1.92, allocations: 5.973 MB / 0.617 GB, free: 372 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01506/1.935, allocations: 2.615 MB / 0.6196 GB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01872/1.954, allocations: 2.001 MB / 0.6215 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04337/1.997, allocations: 11.09 MB / 0.6324 GB, free: 2.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02553/2.023, allocations: 0.6612 MB / 0.633 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00242/2.025, allocations: 496 kB / 0.6335 GB, free: 1.293 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 757 * 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 (1015): * Single equations (assignments): 994 * 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.002476/2.028, allocations: 0.5264 MB / 0.634 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03018/2.058, allocations: 6.935 MB / 0.6408 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/2.06, allocations: 414.7 kB / 0.6412 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02416/2.084, allocations: 6.609 MB / 0.6476 GB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02868/2.113, allocations: 5.953 MB / 0.6534 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.344e-05/2.113, allocations: 7.953 kB / 0.6535 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001013/2.113, allocations: 15.95 kB / 0.6535 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06573/2.179, allocations: 14.28 MB / 0.6674 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.04e-05/2.179, allocations: 7.062 kB / 0.6674 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005391/2.184, allocations: 0.5035 MB / 0.6679 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01634/2.2, allocations: 2.838 MB / 0.6707 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009104/2.201, allocations: 47.94 kB / 0.6707 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2796/2.481, allocations: 13.38 MB / 0.6838 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003343/2.484, allocations: 4.245 MB / 0.6879 GB, free: 113.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03195/2.516, allocations: 10.69 MB / 0.6984 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/2.518, allocations: 466 kB / 0.6988 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/2.52, allocations: 29.92 kB / 0.6989 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005953/2.526, allocations: 310.5 kB / 0.6991 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/2.527, allocations: 202 kB / 0.6993 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/2.527, allocations: 82.88 kB / 0.6994 GB, free: 112.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005906/2.533, allocations: 2.406 MB / 0.7018 GB, free: 112.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.533, allocations: 0 / 0.7018 GB, free: 112.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0106/2.544, allocations: 1.442 MB / 0.7032 GB, free: 112.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (215): * Single equations (assignments): 200 * 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.02987/2.574, allocations: 12.13 MB / 0.715 GB, free: 109.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.03045/2.604, allocations: 8.91 MB / 0.7237 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/2.604, allocations: 3.938 kB / 0.7237 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01529/2.62, allocations: 4.755 MB / 0.7284 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004243/2.624, allocations: 417.3 kB / 0.7288 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04291/2.667, allocations: 14.28 MB / 0.7427 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008547/2.675, allocations: 4.053 MB / 0.7467 GB, free: 98.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005774/2.681, allocations: 2.58 MB / 0.7492 GB, free: 96.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/2.681, allocations: 0 / 0.7492 GB, free: 96.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.433/9.114, allocations: 352.5 MB / 1.093 GB, free: 25.86 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