Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.InitializationConversion.Bodies,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_InitializationConversion_Bodies",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.337/2.337, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-05/4.374e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4103/0.4104, allocations: 54.86 MB / 359.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.6152, allocations: 95.28 MB / 455.1 MB, free: 1.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/0.6156, allocations: 72.5 kB / 455.2 MB, free: 1.586 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7691/1.385, allocations: 102.4 MB / 0.5445 GB, free: 102.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.385, allocations: 1.031 kB / 0.5445 GB, free: 102.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004094/1.385, allocations: 91.45 kB / 0.5446 GB, free: 102.8 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: 1495 * Number of variables: 1495 Notification: Performance of Generate backend data structure: time 0.05481/1.44, allocations: 6.384 MB / 0.5508 GB, free: 100.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/1.44, allocations: 10.06 kB / 0.5508 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003761/1.444, allocations: 0.7854 MB / 0.5516 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05594/1.5, allocations: 7.365 MB / 0.5588 GB, free: 100.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06593/1.566, allocations: 18.23 MB / 0.5766 GB, free: 99.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/1.566, allocations: 312.2 kB / 0.5769 GB, free: 99.08 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002464/1.569, allocations: 444.5 kB / 0.5773 GB, free: 98.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02718/1.596, allocations: 10.45 MB / 0.5875 GB, free: 93.32 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003281/1.596, allocations: 89.78 kB / 0.5876 GB, free: 93.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/1.598, allocations: 206.3 kB / 0.5878 GB, free: 93.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002492/1.6, allocations: 1.05 MB / 0.5888 GB, free: 93.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/1.625, allocations: 8.879 MB / 0.5975 GB, free: 88.59 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07467/1.699, allocations: 51.22 MB / 0.6475 GB, free: 36.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/1.713, allocations: 3.794 MB / 0.6512 GB, free: 32.09 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004038/1.717, allocations: 1.952 MB / 0.6531 GB, free: 30.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002436/1.717, allocations: 34.22 kB / 0.6532 GB, free: 30.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.717, allocations: 59.72 kB / 0.6532 GB, free: 30.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=188): time 7.043e-06/1.718, allocations: 4 kB / 0.6532 GB, free: 30.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=216): time 0.07658/1.794, allocations: 19.22 MB / 0.672 GB, free: 10.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004476/1.799, allocations: 6.157 MB / 0.678 GB, free: 3.664 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/1.809, allocations: 4.447 MB / 0.6823 GB, free: 15.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007407/1.81, allocations: 60.3 kB / 0.6824 GB, free: 15.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004377/1.815, allocations: 3.344 MB / 0.6857 GB, free: 11.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002023/1.817, allocations: 0.9104 MB / 0.6866 GB, free: 10.92 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/1.818, allocations: 140 kB / 0.6867 GB, free: 10.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007973/1.819, allocations: 0.6166 MB / 0.6873 GB, free: 10.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008675/1.828, allocations: 3.009 MB / 0.6902 GB, free: 7.148 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01294/1.841, allocations: 7.279 MB / 0.6973 GB, free: 13.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.852, allocations: 4.592 MB / 0.7018 GB, free: 9.145 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001594/1.852, allocations: 44 kB / 0.7019 GB, free: 9.102 MB / 490.7 MB Notification: Performance of matching and sorting (n=946) (initialization): time 0.4363/2.289, allocations: 14.95 MB / 0.7165 GB, free: 110 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/2.289, allocations: 70.34 kB / 0.7165 GB, free: 110 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06468/2.354, allocations: 8.91 MB / 0.7252 GB, free: 109.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06911/2.423, allocations: 6.727 MB / 0.7318 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/2.433, allocations: 1.692 MB / 0.7335 GB, free: 109.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03418/2.467, allocations: 15.69 MB / 0.7488 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.479, allocations: 0.7851 MB / 0.7496 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001742/2.481, allocations: 460.2 kB / 0.75 GB, free: 102 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 694 * Number of states: 0 () * Number of discrete variables: 36 (body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],body1.frameTranslation.color[3],body1.frameTranslation.color[2],body1.frameTranslation.color[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.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 (870): * Single equations (assignments): 845 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001955/2.483, allocations: 0.6475 MB / 0.7506 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/2.484, allocations: 450.8 kB / 0.7511 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002051/2.486, allocations: 0.6188 MB / 0.7517 GB, free: 101.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02616/2.513, allocations: 5.973 MB / 0.7575 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.133e-05/2.513, allocations: 7.406 kB / 0.7575 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.424e-05/2.513, allocations: 8.953 kB / 0.7575 GB, free: 101.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03304/2.546, allocations: 10.42 MB / 0.7677 GB, free: 98.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.154e-05/2.546, allocations: 3.594 kB / 0.7677 GB, free: 98.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004383/2.55, allocations: 441.9 kB / 0.7681 GB, free: 98.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02338/2.574, allocations: 3.595 MB / 0.7716 GB, free: 97.83 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008012/2.575, allocations: 91.59 kB / 0.7717 GB, free: 97.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01996/2.595, allocations: 13.6 MB / 0.785 GB, free: 88.51 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004127/2.599, allocations: 5.849 MB / 0.7907 GB, free: 82.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03396/2.633, allocations: 10.65 MB / 0.8011 GB, free: 78.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/2.635, allocations: 0.5341 MB / 0.8016 GB, free: 78.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001761/2.637, allocations: 70.23 kB / 0.8017 GB, free: 78.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006467/2.643, allocations: 347 kB / 0.802 GB, free: 78.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/2.644, allocations: 182.7 kB / 0.8022 GB, free: 78.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002996/2.644, allocations: 73.94 kB / 0.8023 GB, free: 78.61 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007654/2.652, allocations: 3.14 MB / 0.8053 GB, free: 77.53 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.433e-06/2.652, allocations: 0 / 0.8053 GB, free: 77.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01039/2.663, allocations: 1.631 MB / 0.8069 GB, free: 77.38 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.body.frame_a.r_0[1],body3.body.frame_a.r_0[2],body3.body.frame_a.r_0[3],body3.body.w_a[1],body3.body.w_a[2],body3.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.body.frame_a.r_0[1],body2.body.frame_a.r_0[2],body2.body.frame_a.r_0[3],body2.body.w_a[1],body2.body.w_a[2],body2.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.body.frame_a.r_0[1],body1.body.frame_a.r_0[2],body1.body.frame_a.r_0[3],body1.body.w_a[1],body1.body.w_a[2],body1.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3],$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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03439/2.697, allocations: 11.98 MB / 0.8186 GB, free: 65.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0241/2.721, allocations: 8.909 MB / 0.8273 GB, free: 56.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/2.721, allocations: 6.531 kB / 0.8273 GB, free: 56.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01433/2.736, allocations: 4.589 MB / 0.8318 GB, free: 52.03 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006327/2.742, allocations: 0.6299 MB / 0.8324 GB, free: 51.43 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0408/2.783, allocations: 14.56 MB / 0.8466 GB, free: 37.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007932/2.791, allocations: 3.798 MB / 0.8504 GB, free: 33.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005613/2.796, allocations: 2.327 MB / 0.8526 GB, free: 31.12 MB / 490.7 MB Notification: Performance of SimCode: time 2.054e-06/2.797, allocations: 0 / 0.8526 GB, free: 31.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.681/9.478, allocations: 366.7 MB / 1.211 GB, free: 59.63 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.InitializationConversion.Bodies_res.mat does not exist to compare? outputFormat=mat