Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.255e-05/4.26e-05, allocations: 4.938 kB / 305 MB, free: 5.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4391/0.4392, allocations: 54.85 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1794/0.6186, allocations: 95.49 MB / 455.3 MB, free: 1.367 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.619, allocations: 76.95 kB / 455.4 MB, free: 1.293 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7437/1.363, allocations: 96.17 MB / 0.5387 GB, free: 100.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.363, allocations: 0 / 0.5387 GB, free: 100.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003253/1.363, allocations: 96.7 kB / 0.5388 GB, free: 100.1 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.04587/1.409, allocations: 5.829 MB / 0.5444 GB, free: 98.21 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.409, allocations: 12.72 kB / 0.5445 GB, free: 98.21 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004366/1.413, allocations: 0.8685 MB / 0.5453 GB, free: 98.14 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02595/1.439, allocations: 2.918 MB / 0.5482 GB, free: 97.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0273/1.467, allocations: 7.186 MB / 0.5552 GB, free: 97.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/1.467, allocations: 354.5 kB / 0.5555 GB, free: 97.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002955/1.47, allocations: 491 kB / 0.556 GB, free: 97.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03862/1.509, allocations: 12.03 MB / 0.5677 GB, free: 93.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004013/1.51, allocations: 70.72 kB / 0.5678 GB, free: 93.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002756/1.512, allocations: 237.1 kB / 0.568 GB, free: 93.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003279/1.516, allocations: 1.197 MB / 0.5692 GB, free: 93.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03252/1.548, allocations: 9.942 MB / 0.5789 GB, free: 91.48 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09146/1.64, allocations: 57.05 MB / 0.6346 GB, free: 45.62 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02389/1.664, allocations: 4.994 MB / 0.6395 GB, free: 41.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005533/1.669, allocations: 2.368 MB / 0.6418 GB, free: 39.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0284/1.698, allocations: 11.14 MB / 0.6527 GB, free: 28.31 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/1.698, allocations: 55.81 kB / 0.6527 GB, free: 28.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=198): time 6.392e-06/1.698, allocations: 0 / 0.6527 GB, free: 28.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.09266/1.791, allocations: 20.57 MB / 0.6728 GB, free: 7.543 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003427/1.794, allocations: 4.601 MB / 0.6773 GB, free: 2.473 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009707/1.804, allocations: 3.965 MB / 0.6812 GB, free: 14.49 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009508/1.805, allocations: 61.7 kB / 0.6812 GB, free: 14.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004119/1.809, allocations: 3.39 MB / 0.6846 GB, free: 11.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002122/1.811, allocations: 0.95 MB / 0.6855 GB, free: 10.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001213/1.812, allocations: 144 kB / 0.6856 GB, free: 9.961 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007677/1.813, allocations: 0.6285 MB / 0.6862 GB, free: 9.324 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009111/1.822, allocations: 3.044 MB / 0.6892 GB, free: 6.277 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01334/1.836, allocations: 7.24 MB / 0.6963 GB, free: 12.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/1.848, allocations: 4.635 MB / 0.7008 GB, free: 8.312 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001677/1.848, allocations: 44 kB / 0.7008 GB, free: 8.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=961) (initialization): time 0.3909/2.239, allocations: 12.29 MB / 0.7129 GB, free: 112 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00015/2.239, allocations: 73.47 kB / 0.7129 GB, free: 112 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0278/2.267, allocations: 6.363 MB / 0.7191 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02048/2.288, allocations: 3.357 MB / 0.7224 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01111/2.299, allocations: 1.695 MB / 0.7241 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02764/2.327, allocations: 15.92 MB / 0.7396 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01196/2.339, allocations: 0.7634 MB / 0.7404 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001966/2.341, allocations: 451 kB / 0.7408 GB, free: 104 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (882): * Single equations (assignments): 862 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,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 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002375/2.343, allocations: 0.6575 MB / 0.7414 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/2.344, allocations: 407.8 kB / 0.7418 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02573/2.37, allocations: 6.945 MB / 0.7486 GB, free: 103.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02403/2.394, allocations: 6.308 MB / 0.7548 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.552e-05/2.394, allocations: 7.438 kB / 0.7548 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.817e-05/2.394, allocations: 15.97 kB / 0.7548 GB, free: 103.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04859/2.443, allocations: 14.91 MB / 0.7694 GB, free: 98.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.893e-05/2.443, allocations: 5.75 kB / 0.7694 GB, free: 98.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004115/2.447, allocations: 416.3 kB / 0.7698 GB, free: 98.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01857/2.466, allocations: 3.346 MB / 0.773 GB, free: 98.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008491/2.467, allocations: 71.66 kB / 0.7731 GB, free: 98.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02875/2.495, allocations: 16.56 MB / 0.7893 GB, free: 88.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003361/2.499, allocations: 4.399 MB / 0.7936 GB, free: 83.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03205/2.531, allocations: 10.82 MB / 0.8041 GB, free: 79.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/2.533, allocations: 491.3 kB / 0.8046 GB, free: 78.88 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001828/2.534, allocations: 63.92 kB / 0.8047 GB, free: 78.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006089/2.541, allocations: 335.6 kB / 0.805 GB, free: 78.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/2.542, allocations: 188.2 kB / 0.8052 GB, free: 78.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003378/2.542, allocations: 76.05 kB / 0.8052 GB, free: 78.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006427/2.549, allocations: 2.749 MB / 0.8079 GB, free: 76.03 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.233e-06/2.549, allocations: 0 / 0.8079 GB, free: 76.03 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009563/2.558, allocations: 1.49 MB / 0.8094 GB, free: 74.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($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],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,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 {(5,100.0%) 8,(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.03135/2.59, allocations: 12.41 MB / 0.8215 GB, free: 62.08 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02404/2.614, allocations: 8.814 MB / 0.8301 GB, free: 53.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/2.614, allocations: 4 kB / 0.8301 GB, free: 53.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0154/2.629, allocations: 4.491 MB / 0.8345 GB, free: 48.65 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/2.634, allocations: 0.4915 MB / 0.835 GB, free: 48.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03672/2.67, allocations: 13.44 MB / 0.8481 GB, free: 34.89 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006903/2.677, allocations: 3.74 MB / 0.8517 GB, free: 31.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005087/2.682, allocations: 2.268 MB / 0.854 GB, free: 28.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.874e-06/2.683, allocations: 0 / 0.854 GB, free: 28.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.643/9.326, allocations: 305.9 MB / 1.153 GB, free: 114.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat