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.974/1.974, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.771e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3295, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.4891, allocations: 89.71 MB / 383.9 MB, free: 8.137 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/0.4895, allocations: 83.95 kB / 384 MB, free: 8.055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6896/1.179, allocations: 105.5 MB / 489.5 MB, free: 59.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.179, allocations: 0 / 489.5 MB, free: 59.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002917/1.179, allocations: 104 kB / 489.6 MB, free: 59.86 MB / 362.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.04394/1.223, allocations: 6.294 MB / 495.9 MB, free: 53.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.223, allocations: 16.03 kB / 496 MB, free: 53.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02765/1.251, allocations: 3.417 MB / 499.4 MB, free: 50.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02698/1.278, allocations: 7.489 MB / 0.495 GB, free: 42.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003982/1.279, allocations: 176 kB / 0.4952 GB, free: 42.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002959/1.282, allocations: 319.9 kB / 0.4955 GB, free: 42.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02014/1.302, allocations: 8.381 MB / 0.5036 GB, free: 33.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03719/1.339, allocations: 12.17 MB / 0.5155 GB, free: 20.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005009/1.34, allocations: 79.3 kB / 0.5156 GB, free: 20.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002964/1.343, allocations: 36 kB / 0.5156 GB, free: 20.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004115/1.347, allocations: 1.488 MB / 0.5171 GB, free: 18.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5437/1.891, allocations: 62.55 MB / 0.5782 GB, free: 55.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009318/1.9, allocations: 4.216 MB / 0.5823 GB, free: 54.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005679/1.906, allocations: 2.796 MB / 0.585 GB, free: 54.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02926/1.935, allocations: 12.04 MB / 0.5968 GB, free: 52.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.544e-05/1.935, allocations: 62.14 kB / 0.5968 GB, free: 52.17 MB / 394.7 MB Notification: Performance of pre-optimization done (n=238): time 6.362e-06/1.935, allocations: 0 / 0.5968 GB, free: 52.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=267): time 0.07892/2.014, allocations: 19.33 MB / 0.6157 GB, free: 47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/2.014, allocations: 156.6 kB / 0.6159 GB, free: 46.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008542/2.023, allocations: 3.658 MB / 0.6194 GB, free: 45.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000891/2.024, allocations: 25.7 kB / 0.6195 GB, free: 45.46 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003243/2.027, allocations: 3.844 MB / 0.6232 GB, free: 42.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001986/2.029, allocations: 1.033 MB / 0.6242 GB, free: 41.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/2.031, allocations: 0 / 0.6242 GB, free: 41.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0007877/2.031, allocations: 0.6561 MB / 0.6249 GB, free: 41.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007747/2.039, allocations: 3.1 MB / 0.6279 GB, free: 40.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01092/2.05, allocations: 7.739 MB / 0.6354 GB, free: 32.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/2.061, allocations: 4.759 MB / 0.6401 GB, free: 30.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002094/2.061, allocations: 48 kB / 0.6401 GB, free: 30.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=1071) (initialization): time 0.03929/2.101, allocations: 11.99 MB / 0.6518 GB, free: 21.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/2.101, allocations: 76 kB / 0.6519 GB, free: 21.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02206/2.123, allocations: 6.203 MB / 0.658 GB, free: 16.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01591/2.139, allocations: 2.816 MB / 0.6607 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01201/2.151, allocations: 1.953 MB / 0.6626 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/2.168, allocations: 12.15 MB / 0.6745 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01265/2.181, allocations: 0.6641 MB / 0.6751 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002343/2.183, allocations: 499.9 kB / 0.6756 GB, free: 280 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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 (1005): * Single equations (assignments): 984 * 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.003452/2.187, allocations: 0.5208 MB / 0.6761 GB, free: 15.74 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02627/2.213, allocations: 6.705 MB / 0.6827 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002007/2.215, allocations: 420.6 kB / 0.6831 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02839/2.244, allocations: 6.606 MB / 0.6895 GB, free: 3.273 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02435/2.268, allocations: 5.956 MB / 0.6954 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.931e-05/2.268, allocations: 8 kB / 0.6954 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001044/2.268, allocations: 11.95 kB / 0.6954 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05248/2.321, allocations: 14.28 MB / 0.7093 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.72e-05/2.321, allocations: 4 kB / 0.7093 GB, free: 14.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005385/2.326, allocations: 0.5031 MB / 0.7098 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01645/2.343, allocations: 2.835 MB / 0.7126 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009435/2.344, allocations: 44.5 kB / 0.7126 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02477/2.368, allocations: 13.4 MB / 0.7257 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004733/2.373, allocations: 4.236 MB / 0.7298 GB, free: 8.785 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3361/2.709, allocations: 10.68 MB / 0.7403 GB, free: 137.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/2.711, allocations: 469.5 kB / 0.7407 GB, free: 137.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002335/2.714, allocations: 27.27 kB / 0.7407 GB, free: 137.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006728/2.72, allocations: 319.9 kB / 0.7411 GB, free: 137.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.722, allocations: 191.7 kB / 0.7412 GB, free: 137.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006267/2.722, allocations: 85.33 kB / 0.7413 GB, free: 137.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00757/2.73, allocations: 2.409 MB / 0.7437 GB, free: 137.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.223e-06/2.73, allocations: 0 / 0.7437 GB, free: 137.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01244/2.743, allocations: 1.452 MB / 0.7451 GB, free: 137.1 MB / 458.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.03233/2.775, allocations: 12.15 MB / 0.757 GB, free: 134.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02576/2.801, allocations: 9.26 MB / 0.766 GB, free: 133.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/2.801, allocations: 0 / 0.766 GB, free: 133.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01603/2.817, allocations: 4.76 MB / 0.7706 GB, free: 132.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005182/2.822, allocations: 415 kB / 0.771 GB, free: 132.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04725/2.869, allocations: 14.29 MB / 0.785 GB, free: 127.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009859/2.879, allocations: 4.073 MB / 0.789 GB, free: 126.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00662/2.886, allocations: 2.569 MB / 0.7915 GB, free: 124.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.483e-06/2.886, allocations: 9.484 kB / 0.7915 GB, free: 124.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.543/9.429, allocations: 353.1 MB / 1.136 GB, free: 89.59 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