Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.861/1.861, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.729e-05/3.738e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2586, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4029, allocations: 80.4 MB / 344.2 MB, free: 9.336 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.4033, allocations: 79.94 kB / 344.3 MB, free: 9.258 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5965/0.9998, allocations: 77.56 MB / 421.9 MB, free: 51.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.9998, allocations: 4 kB / 421.9 MB, free: 51.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002057/1, allocations: 75.94 kB / 422 MB, free: 51.46 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: 1465 * Number of variables: 1465 Notification: Performance of Generate backend data structure: time 0.02139/1.021, allocations: 4.048 MB / 426 MB, free: 47.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/1.022, allocations: 8.031 kB / 426 MB, free: 47.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003155/1.025, allocations: 0.7535 MB / 426.8 MB, free: 46.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01773/1.042, allocations: 2.226 MB / 429 MB, free: 44.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/1.06, allocations: 4.328 MB / 433.3 MB, free: 39.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004688/1.06, allocations: 316.2 kB / 433.6 MB, free: 39.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002545/1.063, allocations: 403.9 kB / 434 MB, free: 39.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03005/1.093, allocations: 10.16 MB / 444.2 MB, free: 27.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000248/1.093, allocations: 55.5 kB / 444.2 MB, free: 27.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0017/1.095, allocations: 207.9 kB / 444.4 MB, free: 27.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002216/1.097, allocations: 0.9742 MB / 445.4 MB, free: 26.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02428/1.122, allocations: 7.97 MB / 453.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07452/1.196, allocations: 48.25 MB / 0.4899 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2574/1.454, allocations: 3.547 MB / 0.4933 GB, free: 81.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00283/1.457, allocations: 1.308 MB / 0.4946 GB, free: 81.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01426/1.471, allocations: 6.503 MB / 0.501 GB, free: 79.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/1.471, allocations: 53.48 kB / 0.501 GB, free: 79.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 5.47e-06/1.471, allocations: 0 / 0.501 GB, free: 79.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.03987/1.511, allocations: 9.578 MB / 0.5104 GB, free: 77.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001332/1.512, allocations: 1.586 MB / 0.5119 GB, free: 75.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007428/1.52, allocations: 3.331 MB / 0.5152 GB, free: 75.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003977/1.52, allocations: 45.33 kB / 0.5152 GB, free: 75.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002638/1.523, allocations: 3.037 MB / 0.5182 GB, free: 73.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/1.524, allocations: 0.5753 MB / 0.5187 GB, free: 73.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007874/1.525, allocations: 121 kB / 0.5189 GB, free: 73.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004964/1.525, allocations: 0.5688 MB / 0.5194 GB, free: 72.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004848/1.53, allocations: 1.882 MB / 0.5212 GB, free: 72.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007403/1.538, allocations: 5.77 MB / 0.5269 GB, free: 66.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007296/1.545, allocations: 3.267 MB / 0.5301 GB, free: 66.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001393/1.545, allocations: 46.56 kB / 0.5301 GB, free: 66.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.02481/1.57, allocations: 8.373 MB / 0.5383 GB, free: 63.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/1.57, allocations: 63.69 kB / 0.5384 GB, free: 63.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01052/1.581, allocations: 2.658 MB / 0.5409 GB, free: 62.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009097/1.59, allocations: 1.523 MB / 0.5424 GB, free: 61.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007839/1.598, allocations: 1.358 MB / 0.5438 GB, free: 60.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006966/1.605, allocations: 5.177 MB / 0.5488 GB, free: 55.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007483/1.612, allocations: 434.6 kB / 0.5492 GB, free: 55.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/1.614, allocations: 383.5 kB / 0.5496 GB, free: 55.01 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 36 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (720): * Single equations (assignments): 710 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.001183/1.615, allocations: 0.5773 MB / 0.5502 GB, free: 54.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007601/1.616, allocations: 319.8 kB / 0.5505 GB, free: 54.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/1.627, allocations: 2.98 MB / 0.5534 GB, free: 51.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01001/1.637, allocations: 2.551 MB / 0.5559 GB, free: 49.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.203e-05/1.637, allocations: 8 kB / 0.5559 GB, free: 49.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.066e-05/1.637, allocations: 10.83 kB / 0.5559 GB, free: 49.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009592/1.646, allocations: 3.548 MB / 0.5594 GB, free: 46.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.653e-05/1.646, allocations: 0 / 0.5594 GB, free: 46.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001692/1.648, allocations: 169 kB / 0.5595 GB, free: 46.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008659/1.657, allocations: 1.425 MB / 0.5609 GB, free: 45.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004088/1.657, allocations: 31.45 kB / 0.5609 GB, free: 45.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009028/1.666, allocations: 5.757 MB / 0.5666 GB, free: 40.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001061/1.667, allocations: 1.451 MB / 0.568 GB, free: 38.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/1.682, allocations: 5.129 MB / 0.573 GB, free: 34.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/1.683, allocations: 377.3 kB / 0.5733 GB, free: 34.13 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001704/1.685, allocations: 27.52 kB / 0.5734 GB, free: 34.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004793/1.69, allocations: 138.1 kB / 0.5735 GB, free: 34.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000715/1.691, allocations: 89.09 kB / 0.5736 GB, free: 33.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/1.691, allocations: 46.28 kB / 0.5736 GB, free: 33.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00829/1.699, allocations: 2.271 MB / 0.5758 GB, free: 31.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.352e-06/1.699, allocations: 0 / 0.5758 GB, free: 31.94 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01058/1.71, allocations: 0.973 MB / 0.5768 GB, free: 30.97 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01446/1.724, allocations: 5.739 MB / 0.5824 GB, free: 25.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01359/1.738, allocations: 5.065 MB / 0.5873 GB, free: 21.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.738, allocations: 0 / 0.5873 GB, free: 21.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006706/1.745, allocations: 1.946 MB / 0.5892 GB, free: 19.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.748, allocations: 347.6 kB / 0.5896 GB, free: 19.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02772/1.776, allocations: 8.915 MB / 0.5983 GB, free: 10.52 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006746/1.782, allocations: 3.125 MB / 0.6013 GB, free: 7.387 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003804/1.786, allocations: 1.745 MB / 0.603 GB, free: 5.641 MB / 346.7 MB Notification: Performance of SimCode: time 1.502e-06/1.786, allocations: 0 / 0.603 GB, free: 5.641 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.068/6.854, allocations: 154.7 MB / 0.7541 GB, free: 15.23 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat