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 2.087/2.087, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.724e-05/3.731e-05, allocations: 7.094 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.0956, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4505/0.5461, allocations: 90.38 MB / 390.3 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.5465, allocations: 90.02 kB / 390.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4485/0.995, allocations: 108 MB / 498.4 MB, free: 1.949 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.9951, allocations: 0 / 498.4 MB, free: 1.949 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003516/0.9954, allocations: 103.6 kB / 498.5 MB, free: 1.852 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.0478/1.043, allocations: 6.315 MB / 0.493 GB, free: 11.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/1.043, allocations: 8.031 kB / 0.493 GB, free: 11.49 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005133/1.048, allocations: 0.9836 MB / 0.494 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03/1.079, allocations: 3.405 MB / 0.4973 GB, free: 7.117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03131/1.11, allocations: 7.487 MB / 0.5046 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008108/1.111, allocations: 419.3 kB / 0.505 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003742/1.115, allocations: 0.5271 MB / 0.5055 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3453/1.46, allocations: 16.32 MB / 0.5214 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006829/1.461, allocations: 81.42 kB / 0.5215 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003517/1.464, allocations: 260.8 kB / 0.5218 GB, free: 72.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005321/1.47, allocations: 1.486 MB / 0.5232 GB, free: 72.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0554/1.525, allocations: 13.9 MB / 0.5368 GB, free: 72.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/1.642, allocations: 63.56 MB / 0.5989 GB, free: 35.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03757/1.68, allocations: 6.178 MB / 0.6049 GB, free: 33.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006442/1.686, allocations: 2.95 MB / 0.6078 GB, free: 31.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03174/1.718, allocations: 13.23 MB / 0.6207 GB, free: 25.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/1.718, allocations: 60.22 kB / 0.6208 GB, free: 25.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=246): time 6.472e-06/1.718, allocations: 3.719 kB / 0.6208 GB, free: 25.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=278): time 0.1078/1.826, allocations: 21.86 MB / 0.6421 GB, free: 16.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004392/1.83, allocations: 4.571 MB / 0.6466 GB, free: 28.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009589/1.84, allocations: 4.185 MB / 0.6507 GB, free: 24.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008858/1.841, allocations: 65.53 kB / 0.6507 GB, free: 24.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003063/1.844, allocations: 3.727 MB / 0.6544 GB, free: 20.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001891/1.846, allocations: 1.096 MB / 0.6554 GB, free: 20.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/1.847, allocations: 159.9 kB / 0.6556 GB, free: 19.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005766/1.848, allocations: 0.6503 MB / 0.6562 GB, free: 19.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008042/1.856, allocations: 3.238 MB / 0.6594 GB, free: 16.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01324/1.869, allocations: 7.72 MB / 0.6669 GB, free: 7.012 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01773/1.887, allocations: 4.896 MB / 0.6717 GB, free: 2.816 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002121/1.887, allocations: 48 kB / 0.6717 GB, free: 2.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=1052) (initialization): time 0.3485/2.235, allocations: 12.48 MB / 0.6839 GB, free: 82.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001417/2.236, allocations: 73.56 kB / 0.684 GB, free: 82.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02271/2.258, allocations: 6.426 MB / 0.6903 GB, free: 82.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01619/2.275, allocations: 2.859 MB / 0.6931 GB, free: 82.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/2.287, allocations: 1.912 MB / 0.6949 GB, free: 82.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01738/2.304, allocations: 12.61 MB / 0.7072 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01244/2.316, allocations: 0.8128 MB / 0.708 GB, free: 74.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001959/2.318, allocations: 486 kB / 0.7085 GB, free: 74.84 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.002155/2.321, allocations: 0.6986 MB / 0.7092 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/2.322, allocations: 453.7 kB / 0.7096 GB, free: 74.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02331/2.345, allocations: 6.898 MB / 0.7164 GB, free: 74.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02169/2.367, allocations: 6.174 MB / 0.7224 GB, free: 74.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.822e-05/2.367, allocations: 7.875 kB / 0.7224 GB, free: 74.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.326e-05/2.367, allocations: 16.78 kB / 0.7224 GB, free: 74.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04766/2.415, allocations: 15.63 MB / 0.7377 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.827e-05/2.415, allocations: 6.578 kB / 0.7377 GB, free: 72.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005236/2.42, allocations: 0.5214 MB / 0.7382 GB, free: 72.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01524/2.435, allocations: 2.879 MB / 0.741 GB, free: 71.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008867/2.436, allocations: 83.91 kB / 0.7411 GB, free: 71.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02056/2.457, allocations: 13.71 MB / 0.7545 GB, free: 62.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003182/2.46, allocations: 4.411 MB / 0.7588 GB, free: 58.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02989/2.49, allocations: 11.44 MB / 0.7699 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/2.492, allocations: 0.5044 MB / 0.7704 GB, free: 53.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/2.493, allocations: 72.59 kB / 0.7705 GB, free: 53.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006458/2.5, allocations: 354.6 kB / 0.7708 GB, free: 53.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00132/2.501, allocations: 216.4 kB / 0.7711 GB, free: 53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003909/2.502, allocations: 85.41 kB / 0.7711 GB, free: 52.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007304/2.509, allocations: 2.882 MB / 0.7739 GB, free: 50.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.153e-06/2.509, allocations: 3 kB / 0.774 GB, free: 50.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01072/2.52, allocations: 1.6 MB / 0.7755 GB, free: 48.8 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.03075/2.551, allocations: 13.46 MB / 0.7887 GB, free: 36.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02548/2.576, allocations: 9.431 MB / 0.7979 GB, free: 28.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/2.576, allocations: 0 / 0.7979 GB, free: 28.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01591/2.592, allocations: 4.84 MB / 0.8026 GB, free: 24.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004665/2.597, allocations: 0.5242 MB / 0.8031 GB, free: 23.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0432/2.64, allocations: 14.74 MB / 0.8175 GB, free: 10.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007863/2.648, allocations: 4.089 MB / 0.8215 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005982/2.654, allocations: 2.592 MB / 0.824 GB, free: 3.855 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/2.654, allocations: 0 / 0.824 GB, free: 3.855 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.825/9.479, allocations: 355.7 MB / 1.171 GB, free: 101.6 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