Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.01e-05/5.048e-05, allocations: 5.406 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5622, allocations: 88.73 MB / 388.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.5625, allocations: 83.47 kB / 388.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5933/1.156, allocations: 122.7 MB / 0.4994 GB, free: 5.145 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.156, allocations: 0 / 0.4994 GB, free: 5.145 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006756/1.157, allocations: 123.9 kB / 0.4995 GB, free: 5.023 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.04033/1.197, allocations: 6.516 MB / 0.5059 GB, free: 14.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/1.197, allocations: 8.031 kB / 0.5059 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007732/1.205, allocations: 1.205 MB / 0.5071 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1003/1.305, allocations: 9.426 MB / 0.5163 GB, free: 3.762 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3548/1.66, allocations: 8.558 MB / 0.5246 GB, free: 68.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000764/1.661, allocations: 435.1 kB / 0.5251 GB, free: 68.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/1.665, allocations: 0.5834 MB / 0.5256 GB, free: 68.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04921/1.714, allocations: 14.7 MB / 0.54 GB, free: 65.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005445/1.715, allocations: 84.28 kB / 0.5401 GB, free: 65.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003231/1.718, allocations: 281.6 kB / 0.5403 GB, free: 65.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003364/1.721, allocations: 1.44 MB / 0.5417 GB, free: 65.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04086/1.762, allocations: 12.82 MB / 0.5543 GB, free: 65.03 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/1.871, allocations: 64.65 MB / 0.6174 GB, free: 40.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03232/1.904, allocations: 7.803 MB / 0.625 GB, free: 37.58 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009751/1.913, allocations: 5.164 MB / 0.6301 GB, free: 35.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03394/1.948, allocations: 12.98 MB / 0.6427 GB, free: 27.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/1.948, allocations: 68.81 kB / 0.6428 GB, free: 27.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 7.203e-06/1.948, allocations: 0 / 0.6428 GB, free: 27.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.7444/2.692, allocations: 80.17 MB / 0.7211 GB, free: 75.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/2.692, allocations: 273.2 kB / 0.7213 GB, free: 74.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0113/2.704, allocations: 4.704 MB / 0.7259 GB, free: 74.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002256/2.706, allocations: 120.5 kB / 0.7261 GB, free: 74.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003566/2.71, allocations: 3.798 MB / 0.7298 GB, free: 72.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004283/2.714, allocations: 2.105 MB / 0.7318 GB, free: 71.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002708/2.717, allocations: 191.1 kB / 0.732 GB, free: 71.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008139/2.717, allocations: 0.7142 MB / 0.7327 GB, free: 70.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02013/2.738, allocations: 8.553 MB / 0.7411 GB, free: 68.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02338/2.761, allocations: 12.65 MB / 0.7534 GB, free: 60.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02423/2.785, allocations: 10.5 MB / 0.7637 GB, free: 56.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002165/2.786, allocations: 40.75 kB / 0.7637 GB, free: 56.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1626/2.948, allocations: 39.86 MB / 0.8026 GB, free: 34.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/2.948, allocations: 64 kB / 0.8027 GB, free: 34.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002001/2.949, allocations: 136 kB / 0.8028 GB, free: 34.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1178/3.066, allocations: 21.51 MB / 0.8238 GB, free: 16.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008616/3.075, allocations: 1.434 MB / 0.8252 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6642/3.739, allocations: 144.4 MB / 0.9662 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01779/3.757, allocations: 0.722 MB / 0.9669 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003452/3.761, allocations: 0.5333 MB / 0.9674 GB, free: 9.234 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (772): * Single equations (assignments): 765 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.005668/3.766, allocations: 0.734 MB / 0.9681 GB, free: 8.727 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003371/3.77, allocations: 0.5905 MB / 0.9687 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4793/4.249, allocations: 36.25 MB / 1.004 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.769e-05/4.249, allocations: 61.53 kB / 1.004 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001453/4.249, allocations: 61.81 kB / 1.004 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001369/4.25, allocations: 34.67 kB / 1.004 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2503/4.5, allocations: 57.04 MB / 1.06 GB, free: 73.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001001/4.5, allocations: 3.906 kB / 1.06 GB, free: 73.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/4.503, allocations: 270.4 kB / 1.06 GB, free: 73.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1081/4.611, allocations: 20.71 MB / 1.08 GB, free: 69.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002273/4.613, allocations: 102.3 kB / 1.081 GB, free: 69.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6622/5.275, allocations: 132.2 MB / 1.21 GB, free: 66.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/5.275, allocations: 3.562 kB / 1.21 GB, free: 66.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1705/5.446, allocations: 48.54 MB / 1.257 GB, free: 42.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009798/5.456, allocations: 2.405 MB / 1.259 GB, free: 39.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003899/5.46, allocations: 97.95 kB / 1.26 GB, free: 39.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01303/5.473, allocations: 0.4942 MB / 1.26 GB, free: 39.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005214/5.478, allocations: 0.5054 MB / 1.26 GB, free: 39.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002103/5.48, allocations: 141 kB / 1.261 GB, free: 39.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00899/5.489, allocations: 3.357 MB / 1.264 GB, free: 36.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.21e-07/5.489, allocations: 3.625 kB / 1.264 GB, free: 36.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01941/5.509, allocations: 3.437 MB / 1.267 GB, free: 32.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.4967/6.005, allocations: 49.2 MB / 1.315 GB, free: 66.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.06502/6.07, allocations: 24.18 MB / 1.339 GB, free: 64.94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/6.071, allocations: 0 / 1.339 GB, free: 64.94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0412/6.112, allocations: 13.58 MB / 1.352 GB, free: 63.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007691/6.12, allocations: 0.7098 MB / 1.353 GB, free: 63.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07448/6.194, allocations: 24.04 MB / 1.376 GB, free: 54.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01307/6.207, allocations: 5.312 MB / 1.382 GB, free: 52.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007647/6.215, allocations: 3.098 MB / 1.385 GB, free: 50.37 MB / 442.7 MB Notification: Performance of SimCode: time 1.353e-06/6.215, allocations: 0 / 1.385 GB, free: 50.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.379/13.59, allocations: 268.5 MB / 1.647 GB, free: 98.75 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat