Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.15/2.15, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.885e-05/4.899e-05, allocations: 8 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5594, allocations: 93.35 MB / 415.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.5597, allocations: 83.12 kB / 415.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.738/1.298, allocations: 94.64 MB / 0.4979 GB, free: 93.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.298, allocations: 1.344 kB / 0.4979 GB, free: 93.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000378/1.298, allocations: 86.22 kB / 0.498 GB, free: 93.3 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.02226/1.32, allocations: 4.614 MB / 0.5025 GB, free: 91.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/1.321, allocations: 10.47 kB / 0.5025 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004831/1.325, allocations: 0.9073 MB / 0.5034 GB, free: 91.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05129/1.377, allocations: 6.733 MB / 0.51 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02534/1.402, allocations: 6.306 MB / 0.5162 GB, free: 90.89 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005808/1.403, allocations: 328.8 kB / 0.5165 GB, free: 90.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002856/1.406, allocations: 448.3 kB / 0.5169 GB, free: 90.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03556/1.441, allocations: 10.97 MB / 0.5276 GB, free: 88.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003585/1.442, allocations: 65.08 kB / 0.5277 GB, free: 88.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002193/1.444, allocations: 208.7 kB / 0.5279 GB, free: 88.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002317/1.446, allocations: 1.017 MB / 0.5289 GB, free: 88.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/1.475, allocations: 9.155 MB / 0.5378 GB, free: 88.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06937/1.545, allocations: 47.59 MB / 0.5843 GB, free: 52.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01748/1.562, allocations: 4.103 MB / 0.5883 GB, free: 50.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003752/1.566, allocations: 1.788 MB / 0.59 GB, free: 50.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01753/1.584, allocations: 7.506 MB / 0.5974 GB, free: 45.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/1.584, allocations: 57.09 kB / 0.5974 GB, free: 45.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=180): time 6.372e-06/1.584, allocations: 4 kB / 0.5974 GB, free: 45.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=236): time 0.1452/1.729, allocations: 25.7 MB / 0.6225 GB, free: 26.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.656e-05/1.729, allocations: 205.9 kB / 0.6227 GB, free: 25.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009155/1.738, allocations: 3.757 MB / 0.6264 GB, free: 22.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007209/1.739, allocations: 61.7 kB / 0.6264 GB, free: 22.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002746/1.742, allocations: 3.105 MB / 0.6295 GB, free: 19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001497/1.743, allocations: 0.8778 MB / 0.6303 GB, free: 18.13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/1.744, allocations: 124 kB / 0.6305 GB, free: 18.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004818/1.745, allocations: 0.5791 MB / 0.631 GB, free: 17.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00779/1.753, allocations: 3.367 MB / 0.6343 GB, free: 14.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/1.763, allocations: 6.957 MB / 0.6411 GB, free: 5.293 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.774, allocations: 4.748 MB / 0.6457 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/1.774, allocations: 36 kB / 0.6458 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.06862/1.842, allocations: 15.16 MB / 0.6606 GB, free: 1.336 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/1.843, allocations: 60 kB / 0.6606 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000221/1.843, allocations: 124 kB / 0.6608 GB, free: 1.156 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.357/2.2, allocations: 5.923 MB / 0.6665 GB, free: 96.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/2.21, allocations: 1.433 MB / 0.6679 GB, free: 96.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05712/2.267, allocations: 24.95 MB / 0.6923 GB, free: 92.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009046/2.276, allocations: 395.8 kB / 0.6927 GB, free: 92.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/2.278, allocations: 373.4 kB / 0.693 GB, free: 92.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (743): * Single equations (assignments): 738 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002679/2.281, allocations: 0.5862 MB / 0.6936 GB, free: 92.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/2.282, allocations: 398 kB / 0.694 GB, free: 92.43 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05142/2.334, allocations: 10.76 MB / 0.7045 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-05/2.334, allocations: 29.44 kB / 0.7045 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/2.334, allocations: 10.91 kB / 0.7045 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.426e-05/2.334, allocations: 11.05 kB / 0.7045 GB, free: 89.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07495/2.409, allocations: 20.15 MB / 0.7242 GB, free: 81.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.457e-05/2.409, allocations: 7.344 kB / 0.7242 GB, free: 81.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003878/2.413, allocations: 377.2 kB / 0.7246 GB, free: 81.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03674/2.449, allocations: 4.992 MB / 0.7295 GB, free: 80.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006538/2.45, allocations: 46.22 kB / 0.7295 GB, free: 80.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04318/2.493, allocations: 20.15 MB / 0.7492 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/2.493, allocations: 18.31 kB / 0.7492 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05284/2.546, allocations: 14.49 MB / 0.7634 GB, free: 59.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003586/2.55, allocations: 0.9587 MB / 0.7643 GB, free: 58.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001395/2.551, allocations: 47.94 kB / 0.7643 GB, free: 58.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004924/2.556, allocations: 168.5 kB / 0.7645 GB, free: 57.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001209/2.558, allocations: 159.8 kB / 0.7646 GB, free: 57.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000374/2.558, allocations: 65.73 kB / 0.7647 GB, free: 57.66 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006662/2.565, allocations: 2.643 MB / 0.7673 GB, free: 55.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/2.565, allocations: 0 / 0.7673 GB, free: 55.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008398/2.573, allocations: 1.324 MB / 0.7686 GB, free: 53.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05412/2.627, allocations: 16.3 MB / 0.7845 GB, free: 37.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01783/2.645, allocations: 7.865 MB / 0.7922 GB, free: 29.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/2.645, allocations: 4 kB / 0.7922 GB, free: 29.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007296/2.653, allocations: 3.081 MB / 0.7952 GB, free: 26.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004898/2.658, allocations: 480.7 kB / 0.7957 GB, free: 26.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03629/2.694, allocations: 11.92 MB / 0.8073 GB, free: 14.24 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007866/2.702, allocations: 3.607 MB / 0.8108 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005605/2.708, allocations: 2.108 MB / 0.8129 GB, free: 8.535 MB / 442.7 MB Notification: Performance of SimCode: time 1.763e-06/2.708, allocations: 0 / 0.8129 GB, free: 8.535 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.18/7.888, allocations: 132 MB / 0.9418 GB, free: 44.01 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat