Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.843e-05/4.847e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09597, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4622/0.5583, allocations: 94.14 MB / 394.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.5586, allocations: 84.7 kB / 394.2 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5592/1.118, allocations: 126.2 MB / 0.5082 GB, free: 11.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.809e-06/1.118, allocations: 4 kB / 0.5082 GB, free: 11.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006536/1.119, allocations: 119.9 kB / 0.5083 GB, free: 11.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.04266/1.161, allocations: 6.313 MB / 0.5144 GB, free: 5.363 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.581e-05/1.161, allocations: 8.031 kB / 0.5144 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0254/1.187, allocations: 1.312 MB / 0.5157 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3712/1.558, allocations: 8.304 MB / 0.5238 GB, free: 71.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0284/1.587, allocations: 7.268 MB / 0.5309 GB, free: 71.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006412/1.587, allocations: 450.8 kB / 0.5314 GB, free: 71.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003689/1.591, allocations: 0.5889 MB / 0.5319 GB, free: 71.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04475/1.636, allocations: 15.51 MB / 0.5471 GB, free: 67.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003935/1.636, allocations: 69.81 kB / 0.5472 GB, free: 67.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002802/1.639, allocations: 284.4 kB / 0.5474 GB, free: 67.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003315/1.642, allocations: 1.62 MB / 0.549 GB, free: 67.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03932/1.682, allocations: 13.53 MB / 0.5622 GB, free: 67.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1044/1.786, allocations: 63.99 MB / 0.6247 GB, free: 41.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02182/1.808, allocations: 6.369 MB / 0.6309 GB, free: 38.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007237/1.815, allocations: 3.46 MB / 0.6343 GB, free: 36.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03376/1.849, allocations: 14.33 MB / 0.6483 GB, free: 24.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.321e-05/1.849, allocations: 64.5 kB / 0.6484 GB, free: 24.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.724e-06/1.849, allocations: 0 / 0.6484 GB, free: 24.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1601/2.009, allocations: 29.64 MB / 0.6773 GB, free: 1.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/2.01, allocations: 220.9 kB / 0.6775 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3236/2.333, allocations: 5.485 MB / 0.6829 GB, free: 83.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009208/2.334, allocations: 75.19 kB / 0.6829 GB, free: 83.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004181/2.338, allocations: 4.287 MB / 0.6871 GB, free: 81.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002229/2.341, allocations: 1.243 MB / 0.6883 GB, free: 81.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001245/2.342, allocations: 173.2 kB / 0.6885 GB, free: 81.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006819/2.343, allocations: 0.683 MB / 0.6892 GB, free: 80.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01232/2.355, allocations: 4.456 MB / 0.6935 GB, free: 80.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01559/2.371, allocations: 9.359 MB / 0.7027 GB, free: 74.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01444/2.385, allocations: 6.386 MB / 0.7089 GB, free: 74.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002255/2.385, allocations: 48.81 kB / 0.709 GB, free: 74.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07213/2.458, allocations: 17.85 MB / 0.7264 GB, free: 73.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/2.458, allocations: 78.09 kB / 0.7265 GB, free: 73.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002706/2.458, allocations: 174.8 kB / 0.7266 GB, free: 73.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03994/2.498, allocations: 5.627 MB / 0.7321 GB, free: 73.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0137/2.512, allocations: 2.046 MB / 0.7341 GB, free: 73.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04891/2.561, allocations: 23.61 MB / 0.7572 GB, free: 63.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01246/2.573, allocations: 0.5377 MB / 0.7577 GB, free: 62.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/2.576, allocations: 0.5053 MB / 0.7582 GB, free: 62.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.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 (1057): * Single equations (assignments): 1049 * 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.003986/2.58, allocations: 0.7451 MB / 0.7589 GB, free: 62.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001822/2.582, allocations: 0.495 MB / 0.7594 GB, free: 61.98 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05494/2.637, allocations: 12.26 MB / 0.7714 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/2.637, allocations: 56.03 kB / 0.7714 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.132e-05/2.637, allocations: 11.75 kB / 0.7714 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-05/2.637, allocations: 13.69 kB / 0.7715 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08381/2.721, allocations: 23.85 MB / 0.7947 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-05/2.721, allocations: 7.844 kB / 0.7948 GB, free: 41.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005778/2.727, allocations: 0.5722 MB / 0.7953 GB, free: 41.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03512/2.762, allocations: 4.645 MB / 0.7998 GB, free: 38.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008984/2.763, allocations: 51.2 kB / 0.7999 GB, free: 38.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03849/2.801, allocations: 18.91 MB / 0.8184 GB, free: 22.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/2.801, allocations: 19.83 kB / 0.8184 GB, free: 22.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3648/3.166, allocations: 17.24 MB / 0.8352 GB, free: 70.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00545/3.172, allocations: 1.211 MB / 0.8364 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00255/3.174, allocations: 58.33 kB / 0.8365 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006877/3.181, allocations: 253.5 kB / 0.8367 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001409/3.183, allocations: 187.3 kB / 0.8369 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004722/3.183, allocations: 86.44 kB / 0.837 GB, free: 70.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01122/3.194, allocations: 3.303 MB / 0.8402 GB, free: 70.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.723e-06/3.195, allocations: 0 / 0.8402 GB, free: 70.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01253/3.207, allocations: 1.704 MB / 0.8418 GB, free: 70.66 MB / 426.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 (251): * Single equations (assignments): 243 * 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.06113/3.268, allocations: 18.97 MB / 0.8604 GB, free: 67.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.023/3.291, allocations: 10.05 MB / 0.8702 GB, free: 67.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/3.291, allocations: 2.312 kB / 0.8702 GB, free: 67.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00911/3.301, allocations: 3.858 MB / 0.874 GB, free: 67.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006124/3.307, allocations: 0.5722 MB / 0.8745 GB, free: 67.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05148/3.358, allocations: 16.21 MB / 0.8903 GB, free: 62.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01069/3.369, allocations: 4.754 MB / 0.895 GB, free: 60.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007751/3.377, allocations: 2.957 MB / 0.8979 GB, free: 58.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.863e-06/3.377, allocations: 0 / 0.8979 GB, free: 58.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.671/9.048, allocations: 178.5 MB / 1.072 GB, free: 64.49 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat