Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.482/2.482, allocations: 235.1 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.806e-05, allocations: 4 kB / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3906, allocations: 54.85 MB / 354.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.5897, allocations: 100.4 MB / 454.8 MB, free: 13.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.5901, allocations: 71.97 kB / 454.9 MB, free: 13.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7584/1.348, allocations: 101 MB / 0.5428 GB, free: 84.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.349, allocations: 0 / 0.5428 GB, free: 84.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003626/1.349, allocations: 104 kB / 0.5429 GB, free: 84.6 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.02152/1.37, allocations: 5.201 MB / 0.548 GB, free: 79.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/1.371, allocations: 12.03 kB / 0.548 GB, free: 79.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05533/1.426, allocations: 6.881 MB / 0.5548 GB, free: 72.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02751/1.453, allocations: 7.472 MB / 0.562 GB, free: 64.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002578/1.454, allocations: 160.3 kB / 0.5622 GB, free: 64.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002247/1.456, allocations: 307.8 kB / 0.5625 GB, free: 64.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01835/1.474, allocations: 7.039 MB / 0.5694 GB, free: 57.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02675/1.501, allocations: 10.79 MB / 0.5799 GB, free: 45.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003214/1.502, allocations: 71.31 kB / 0.58 GB, free: 45.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/1.503, allocations: 36 kB / 0.58 GB, free: 45.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002373/1.505, allocations: 1.14 MB / 0.5811 GB, free: 44.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08579/1.591, allocations: 53.94 MB / 0.6338 GB, free: 4.938 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009949/1.601, allocations: 4.317 MB / 0.638 GB, free: 488 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006458/1.608, allocations: 2.75 MB / 0.6407 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001242/1.609, allocations: 0.5627 MB / 0.6413 GB, free: 13.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.782e-05/1.609, allocations: 71.75 kB / 0.6413 GB, free: 13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=213): time 7.243e-06/1.609, allocations: 0 / 0.6413 GB, free: 13 MB / 458.7 MB Notification: Performance of matching and sorting (n=272): time 0.1592/1.768, allocations: 27.02 MB / 0.6677 GB, free: 1.988 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/1.769, allocations: 213.9 kB / 0.6679 GB, free: 1.738 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.36/2.129, allocations: 3.583 MB / 0.6714 GB, free: 121.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007312/2.129, allocations: 28.97 kB / 0.6714 GB, free: 121.8 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003757/2.133, allocations: 3.639 MB / 0.675 GB, free: 120.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00165/2.135, allocations: 0.9716 MB / 0.6759 GB, free: 120 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008653/2.136, allocations: 6.219 kB / 0.6759 GB, free: 120 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005/2.136, allocations: 0.5962 MB / 0.6765 GB, free: 119.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007696/2.144, allocations: 2.878 MB / 0.6793 GB, free: 119.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/2.155, allocations: 6.781 MB / 0.686 GB, free: 114.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/2.165, allocations: 4.372 MB / 0.6902 GB, free: 114.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001421/2.165, allocations: 38.94 kB / 0.6903 GB, free: 114.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.04336/2.208, allocations: 12.13 MB / 0.7021 GB, free: 112.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/2.209, allocations: 67.16 kB / 0.7022 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/2.209, allocations: 135.9 kB / 0.7023 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/2.231, allocations: 3.975 MB / 0.7062 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01026/2.241, allocations: 1.467 MB / 0.7076 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05544/2.297, allocations: 24.34 MB / 0.7314 GB, free: 99.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008452/2.305, allocations: 272 kB / 0.7316 GB, free: 99.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/2.307, allocations: 418.7 kB / 0.732 GB, free: 99.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (791): * Single equations (assignments): 785 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.001445/2.308, allocations: 455.6 kB / 0.7325 GB, free: 98.97 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0281/2.336, allocations: 7.853 MB / 0.7401 GB, free: 93.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001449/2.338, allocations: 418 kB / 0.7405 GB, free: 92.92 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02717/2.365, allocations: 7.743 MB / 0.7481 GB, free: 86.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.926e-05/2.365, allocations: 28.7 kB / 0.7481 GB, free: 86.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/2.365, allocations: 16 kB / 0.7482 GB, free: 86.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.186e-05/2.365, allocations: 17.45 kB / 0.7482 GB, free: 86.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04826/2.413, allocations: 15.75 MB / 0.7635 GB, free: 74.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/2.414, allocations: 4 kB / 0.7635 GB, free: 74.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003064/2.417, allocations: 316.4 kB / 0.7639 GB, free: 73.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01977/2.436, allocations: 3.667 MB / 0.7674 GB, free: 71.35 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005582/2.437, allocations: 16 kB / 0.7674 GB, free: 71.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04941/2.486, allocations: 23.07 MB / 0.79 GB, free: 48.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/2.486, allocations: 15.78 kB / 0.79 GB, free: 48.34 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03389/2.52, allocations: 12.32 MB / 0.802 GB, free: 35.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003309/2.524, allocations: 0.9056 MB / 0.8029 GB, free: 34.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001188/2.525, allocations: 8 kB / 0.8029 GB, free: 34.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004013/2.529, allocations: 127.8 kB / 0.803 GB, free: 34.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001027/2.53, allocations: 198.1 kB / 0.8032 GB, free: 34.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003424/2.53, allocations: 72 kB / 0.8033 GB, free: 34.37 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005162/2.536, allocations: 2.435 MB / 0.8057 GB, free: 31.93 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.536, allocations: 4 kB / 0.8057 GB, free: 31.93 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009356/2.545, allocations: 1.239 MB / 0.8069 GB, free: 30.69 MB / 474.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 (168): * 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): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03622/2.581, allocations: 14.09 MB / 0.8206 GB, free: 16.39 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02023/2.602, allocations: 7.767 MB / 0.8282 GB, free: 8.617 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/2.602, allocations: 0 / 0.8282 GB, free: 8.617 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009543/2.611, allocations: 3.355 MB / 0.8315 GB, free: 5.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00507/2.616, allocations: 457.9 kB / 0.8319 GB, free: 4.789 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04191/2.658, allocations: 11.78 MB / 0.8434 GB, free: 8.895 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3657/3.024, allocations: 4.03 MB / 0.8474 GB, free: 130.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01097/3.035, allocations: 2.094 MB / 0.8494 GB, free: 130.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00574/3.041, allocations: 2.365 MB / 0.8517 GB, free: 130.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.503e-06/3.041, allocations: 0 / 0.8517 GB, free: 130.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2692/3.31, allocations: 109.9 MB / 0.959 GB, free: 58.62 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002398/3.31, allocations: 158.9 kB / 0.9592 GB, free: 58.43 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.267/9.577, allocations: 0 / 0.9592 GB, free: 58.43 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat does not exist to compare? outputFormat=mat