Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.981e-05/4.01e-05, allocations: 7.984 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2613, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.4158, allocations: 83 MB / 346.8 MB, free: 6.629 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003567/0.4162, allocations: 87.94 kB / 346.9 MB, free: 6.543 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7241/1.14, allocations: 122.4 MB / 469.3 MB, free: 3.922 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.14, allocations: 0 / 469.3 MB, free: 3.922 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000463/1.141, allocations: 124 kB / 469.4 MB, free: 3.801 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02929/1.17, allocations: 6.511 MB / 475.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/1.17, allocations: 8.031 kB / 475.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005971/1.176, allocations: 1.197 MB / 477.1 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07052/1.247, allocations: 9.427 MB / 486.5 MB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03333/1.28, allocations: 8.563 MB / 495.1 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006985/1.281, allocations: 431.4 kB / 495.5 MB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003664/1.285, allocations: 0.5699 MB / 496.1 MB, free: 8.914 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3135/1.598, allocations: 14.69 MB / 0.4988 GB, free: 49.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005233/1.599, allocations: 84.2 kB / 0.4989 GB, free: 49.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003276/1.602, allocations: 271.4 kB / 0.4992 GB, free: 49.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003487/1.606, allocations: 1.436 MB / 0.5006 GB, free: 49.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04065/1.646, allocations: 12.8 MB / 0.5131 GB, free: 49.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/1.755, allocations: 64.59 MB / 0.5761 GB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03196/1.787, allocations: 7.806 MB / 0.5838 GB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01277/1.799, allocations: 5.15 MB / 0.5888 GB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05018/1.85, allocations: 13.03 MB / 0.6015 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001191/1.85, allocations: 68.75 kB / 0.6016 GB, free: 11.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 1.047e-05/1.85, allocations: 0 / 0.6016 GB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.7254/2.575, allocations: 79.8 MB / 0.6795 GB, free: 77.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/2.575, allocations: 270.6 kB / 0.6798 GB, free: 77.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01224/2.588, allocations: 4.705 MB / 0.6844 GB, free: 76.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002299/2.59, allocations: 116 kB / 0.6845 GB, free: 76.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003665/2.594, allocations: 3.799 MB / 0.6882 GB, free: 73.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00419/2.598, allocations: 2.103 MB / 0.6902 GB, free: 71.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002742/2.601, allocations: 190.2 kB / 0.6904 GB, free: 71.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0008478/2.602, allocations: 0.7179 MB / 0.6911 GB, free: 71.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01986/2.622, allocations: 8.553 MB / 0.6995 GB, free: 67.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02274/2.644, allocations: 12.64 MB / 0.7118 GB, free: 59.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02348/2.668, allocations: 10.51 MB / 0.7221 GB, free: 50.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001727/2.668, allocations: 40 kB / 0.7221 GB, free: 50.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1637/2.832, allocations: 39.85 MB / 0.761 GB, free: 16.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/2.832, allocations: 64 kB / 0.7611 GB, free: 16.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002014/2.832, allocations: 140 kB / 0.7612 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.398/3.23, allocations: 21.5 MB / 0.7822 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009152/3.239, allocations: 1.433 MB / 0.7836 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.66/3.899, allocations: 144.5 MB / 0.9247 GB, free: 73.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01837/3.918, allocations: 0.7171 MB / 0.9254 GB, free: 73.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003502/3.921, allocations: 0.5281 MB / 0.9259 GB, free: 73.73 MB / 394.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.006306/3.928, allocations: 0.7387 MB / 0.9267 GB, free: 73.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003599/3.931, allocations: 0.5927 MB / 0.9272 GB, free: 73.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1499/4.081, allocations: 36.12 MB / 0.9625 GB, free: 70.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/4.082, allocations: 59.88 kB / 0.9626 GB, free: 70.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001677/4.082, allocations: 69.47 kB / 0.9626 GB, free: 70.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001517/4.082, allocations: 34.2 kB / 0.9627 GB, free: 70.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1997/4.282, allocations: 57.01 MB / 1.018 GB, free: 36.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001052/4.282, allocations: 4 kB / 1.018 GB, free: 36.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/4.285, allocations: 282.3 kB / 1.019 GB, free: 35.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1095/4.394, allocations: 20.71 MB / 1.039 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00214/4.396, allocations: 99.98 kB / 1.039 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6522/5.049, allocations: 132.2 MB / 1.168 GB, free: 23.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/5.049, allocations: 0 / 1.168 GB, free: 23.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4625/5.511, allocations: 48.74 MB / 1.216 GB, free: 72.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009497/5.521, allocations: 2.407 MB / 1.218 GB, free: 72.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003341/5.524, allocations: 100.9 kB / 1.218 GB, free: 72.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01291/5.537, allocations: 0.4895 MB / 1.219 GB, free: 72.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005238/5.542, allocations: 0.5139 MB / 1.219 GB, free: 72.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00186/5.544, allocations: 137.4 kB / 1.219 GB, free: 72.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008686/5.553, allocations: 3.36 MB / 1.222 GB, free: 72.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.12e-07/5.553, allocations: 0 / 1.222 GB, free: 72.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0186/5.572, allocations: 3.435 MB / 1.226 GB, free: 72.36 MB / 394.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.225/5.797, allocations: 49.2 MB / 1.274 GB, free: 57.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.07829/5.875, allocations: 24.18 MB / 1.297 GB, free: 35.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/5.875, allocations: 0 / 1.297 GB, free: 35.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0402/5.915, allocations: 13.59 MB / 1.311 GB, free: 22.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007463/5.923, allocations: 0.7032 MB / 1.311 GB, free: 21.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3608/6.284, allocations: 24.02 MB / 1.335 GB, free: 69.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01525/6.299, allocations: 5.319 MB / 1.34 GB, free: 68.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01016/6.309, allocations: 3.093 MB / 1.343 GB, free: 68.17 MB / 394.7 MB Notification: Performance of SimCode: time 2.755e-06/6.309, allocations: 0 / 1.343 GB, free: 68.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.537/13.85, allocations: 268.1 MB / 1.605 GB, free: 4.266 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat