Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.005/2.005, allocations: 209.3 MB / 216.9 MB, free: 6.738 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.45e-05, allocations: 0 / 267.6 MB, free: 5.395 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1196, allocations: 48.7 MB / 316.3 MB, free: 4.598 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4373/0.5569, allocations: 95.66 MB / 412 MB, free: 12.98 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.5573, allocations: 78.2 kB / 412 MB, free: 12.94 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.8332/1.391, allocations: 123.9 MB / 0.5234 GB, free: 83.75 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.545e-06/1.391, allocations: 3.938 kB / 0.5234 GB, free: 83.75 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0003689/1.391, allocations: 119.4 kB / 0.5235 GB, free: 83.74 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.02631/1.417, allocations: 6.329 MB / 0.5297 GB, free: 81.3 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/1.417, allocations: 10.44 kB / 0.5297 GB, free: 81.3 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05956/1.477, allocations: 8.314 MB / 0.5378 GB, free: 80.86 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02723/1.504, allocations: 7.363 MB / 0.545 GB, free: 79.17 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003922/1.505, allocations: 191.8 kB / 0.5452 GB, free: 79.17 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003797/1.508, allocations: 348.3 kB / 0.5456 GB, free: 79.16 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02453/1.533, allocations: 10.15 MB / 0.5555 GB, free: 74.18 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03694/1.57, allocations: 14.07 MB / 0.5692 GB, free: 58.95 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003666/1.57, allocations: 71.31 kB / 0.5693 GB, free: 58.88 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003166/1.574, allocations: 39.95 kB / 0.5693 GB, free: 58.84 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/1.577, allocations: 1.623 MB / 0.5709 GB, free: 57.22 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1004/1.678, allocations: 61.39 MB / 0.6309 GB, free: 10.59 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/1.689, allocations: 5.603 MB / 0.6363 GB, free: 4.758 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007818/1.697, allocations: 3.435 MB / 0.6397 GB, free: 1.309 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3354/2.032, allocations: 14.12 MB / 0.6535 GB, free: 90.72 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.381e-05/2.032, allocations: 56.25 kB / 0.6535 GB, free: 90.68 MB / 426.8 MB Notification: Performance of pre-optimization done (n=289): time 7.744e-06/2.032, allocations: 3.969 kB / 0.6535 GB, free: 90.68 MB / 426.8 MB Notification: Performance of matching and sorting (n=339): time 0.1244/2.157, allocations: 30.96 MB / 0.6838 GB, free: 84.65 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.677e-05/2.157, allocations: 211 kB / 0.684 GB, free: 84.43 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/2.168, allocations: 4.278 MB / 0.6881 GB, free: 82.86 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001018/2.169, allocations: 25.7 kB / 0.6882 GB, free: 82.82 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004038/2.173, allocations: 4.425 MB / 0.6925 GB, free: 79.3 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002205/2.175, allocations: 1.223 MB / 0.6937 GB, free: 78.4 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001711/2.177, allocations: 0 / 0.6937 GB, free: 78.4 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0009103/2.178, allocations: 0.7048 MB / 0.6944 GB, free: 77.92 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/2.188, allocations: 4.393 MB / 0.6987 GB, free: 76.24 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01362/2.202, allocations: 9.567 MB / 0.708 GB, free: 67.61 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.216, allocations: 6.401 MB / 0.7142 GB, free: 65.48 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002538/2.216, allocations: 53.44 kB / 0.7143 GB, free: 65.48 MB / 426.8 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.06738/2.284, allocations: 17.56 MB / 0.7314 GB, free: 56.47 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/2.284, allocations: 84 kB / 0.7315 GB, free: 56.39 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002695/2.284, allocations: 188.2 kB / 0.7317 GB, free: 56.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0382/2.322, allocations: 5.625 MB / 0.7372 GB, free: 52.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01401/2.336, allocations: 2.151 MB / 0.7393 GB, free: 50.96 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04264/2.379, allocations: 21.61 MB / 0.7604 GB, free: 32.05 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01129/2.39, allocations: 391.2 kB / 0.7608 GB, free: 31.67 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002447/2.393, allocations: 0.5273 MB / 0.7613 GB, free: 31.14 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 838 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1106): * Single equations (assignments): 1098 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003729/2.397, allocations: 0.5598 MB / 0.7618 GB, free: 30.57 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05098/2.448, allocations: 11.94 MB / 0.7735 GB, free: 18.57 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001919/2.45, allocations: 477.8 kB / 0.774 GB, free: 18.1 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05083/2.5, allocations: 12.09 MB / 0.7858 GB, free: 5.941 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001352/2.501, allocations: 56 kB / 0.7858 GB, free: 5.887 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/2.501, allocations: 11.98 kB / 0.7858 GB, free: 5.875 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-05/2.501, allocations: 15.95 kB / 0.7858 GB, free: 5.859 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3969/2.898, allocations: 22.57 MB / 0.8079 GB, free: 95.11 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-05/2.898, allocations: 13.2 kB / 0.8079 GB, free: 95.11 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005965/2.904, allocations: 0.5754 MB / 0.8085 GB, free: 95.11 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03446/2.938, allocations: 4.634 MB / 0.813 GB, free: 95.1 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009825/2.939, allocations: 15.83 kB / 0.813 GB, free: 95.1 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04014/2.979, allocations: 17.32 MB / 0.8299 GB, free: 91.71 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-05/2.98, allocations: 9.969 kB / 0.8299 GB, free: 91.71 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05675/3.036, allocations: 17.09 MB / 0.8466 GB, free: 85.24 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004482/3.041, allocations: 1.188 MB / 0.8478 GB, free: 84.87 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002211/3.043, allocations: 12.77 kB / 0.8478 GB, free: 84.87 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006038/3.049, allocations: 205.5 kB / 0.848 GB, free: 84.86 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/3.051, allocations: 200 kB / 0.8482 GB, free: 84.83 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006063/3.051, allocations: 85.05 kB / 0.8483 GB, free: 84.81 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.007074/3.058, allocations: 2.845 MB / 0.851 GB, free: 83.8 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.042e-06/3.058, allocations: 0 / 0.851 GB, free: 83.8 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01188/3.07, allocations: 1.495 MB / 0.8525 GB, free: 83.79 MB / 442.8 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05728/3.128, allocations: 18.8 MB / 0.8709 GB, free: 75.8 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02168/3.149, allocations: 10.07 MB / 0.8807 GB, free: 72.36 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/3.149, allocations: 0 / 0.8807 GB, free: 72.36 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008482/3.158, allocations: 3.867 MB / 0.8845 GB, free: 68.99 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00479/3.163, allocations: 458.3 kB / 0.8849 GB, free: 68.61 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04884/3.212, allocations: 15.93 MB / 0.9005 GB, free: 54.78 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01098/3.223, allocations: 4.747 MB / 0.9051 GB, free: 51.25 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008044/3.231, allocations: 2.961 MB / 0.908 GB, free: 48.5 MB / 442.8 MB Notification: Performance of SimCode: time 1.823e-06/3.231, allocations: 0 / 0.908 GB, free: 48.5 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.468/8.699, allocations: 177.5 MB / 1.081 GB, free: 37.7 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat