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 1.763/1.763, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.127e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.308, allocations: 38.78 MB / 263.9 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.4607, allocations: 83.02 MB / 346.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.4611, allocations: 83.95 kB / 347 MB, free: 6.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7185/1.18, allocations: 122.4 MB / 469.3 MB, free: 4.137 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/1.18, allocations: 0 / 469.3 MB, free: 4.137 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004748/1.18, allocations: 124 kB / 469.4 MB, free: 4.016 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.02983/1.21, allocations: 6.504 MB / 475.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/1.21, allocations: 8.031 kB / 476 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006515/1.217, allocations: 1.193 MB / 477.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07233/1.289, allocations: 9.427 MB / 486.6 MB, free: 2.773 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/1.323, allocations: 8.571 MB / 495.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007347/1.324, allocations: 427.4 kB / 495.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003598/1.327, allocations: 0.5816 MB / 496.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3066/1.634, allocations: 14.61 MB / 0.4988 GB, free: 49.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004641/1.634, allocations: 80.28 kB / 0.4989 GB, free: 49.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00241/1.637, allocations: 273.1 kB / 0.4991 GB, free: 49.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00315/1.64, allocations: 1.438 MB / 0.5005 GB, free: 49.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0396/1.68, allocations: 12.59 MB / 0.5128 GB, free: 49.56 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/1.783, allocations: 64.58 MB / 0.5759 GB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03288/1.816, allocations: 7.77 MB / 0.5835 GB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009417/1.825, allocations: 5.153 MB / 0.5885 GB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03304/1.858, allocations: 13.01 MB / 0.6012 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.223e-05/1.859, allocations: 75.66 kB / 0.6013 GB, free: 12.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 7.364e-06/1.859, allocations: 3.625 kB / 0.6013 GB, free: 12.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.7401/2.599, allocations: 79.78 MB / 0.6792 GB, free: 77.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/2.599, allocations: 274.9 kB / 0.6795 GB, free: 76.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/2.611, allocations: 4.705 MB / 0.6841 GB, free: 76.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00237/2.613, allocations: 119.2 kB / 0.6842 GB, free: 76.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003774/2.617, allocations: 3.799 MB / 0.6879 GB, free: 73.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004136/2.621, allocations: 2.102 MB / 0.6899 GB, free: 71.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002594/2.624, allocations: 194 kB / 0.6901 GB, free: 71.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007736/2.625, allocations: 0.7181 MB / 0.6908 GB, free: 71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01983/2.645, allocations: 8.549 MB / 0.6992 GB, free: 67.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0222/2.667, allocations: 12.58 MB / 0.7115 GB, free: 59.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02344/2.69, allocations: 10.51 MB / 0.7217 GB, free: 51.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/2.69, allocations: 40 kB / 0.7218 GB, free: 51.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2126/2.903, allocations: 39.46 MB / 0.7603 GB, free: 17.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/2.903, allocations: 65.25 kB / 0.7604 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/2.903, allocations: 136 kB / 0.7605 GB, free: 17.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3932/3.297, allocations: 21.51 MB / 0.7815 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008788/3.305, allocations: 1.431 MB / 0.7829 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.65/3.956, allocations: 144.4 MB / 0.9239 GB, free: 74.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01847/3.974, allocations: 0.7258 MB / 0.9246 GB, free: 74.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003409/3.978, allocations: 0.5279 MB / 0.9252 GB, free: 74.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.005473/3.983, allocations: 0.7292 MB / 0.9259 GB, free: 74.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003078/3.986, allocations: 0.5915 MB / 0.9265 GB, free: 74.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.147/4.133, allocations: 36.13 MB / 0.9617 GB, free: 72.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/4.133, allocations: 61.39 kB / 0.9618 GB, free: 72.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000133/4.133, allocations: 66.94 kB / 0.9619 GB, free: 72.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001324/4.134, allocations: 30.19 kB / 0.9619 GB, free: 72.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1974/4.331, allocations: 57.03 MB / 1.018 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001078/4.331, allocations: 0 / 1.018 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002765/4.334, allocations: 267.6 kB / 1.018 GB, free: 37.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1088/4.443, allocations: 20.72 MB / 1.038 GB, free: 16.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002252/4.445, allocations: 102.7 kB / 1.038 GB, free: 16.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6381/5.083, allocations: 132.2 MB / 1.167 GB, free: 23.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/5.083, allocations: 5.531 kB / 1.167 GB, free: 23.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.479/5.562, allocations: 48.65 MB / 1.215 GB, free: 72.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00918/5.572, allocations: 2.405 MB / 1.217 GB, free: 72.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003879/5.575, allocations: 101.1 kB / 1.217 GB, free: 72.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01353/5.589, allocations: 0.4942 MB / 1.218 GB, free: 72.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005154/5.594, allocations: 0.5082 MB / 1.218 GB, free: 72.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002161/5.596, allocations: 142.1 kB / 1.218 GB, free: 72.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009529/5.606, allocations: 3.365 MB / 1.222 GB, free: 72.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.082e-06/5.606, allocations: 0 / 1.222 GB, free: 72.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.02082/5.627, allocations: 3.439 MB / 1.225 GB, free: 72.57 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.1741/5.801, allocations: 49.18 MB / 1.273 GB, free: 57.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.06382/5.865, allocations: 23.75 MB / 1.296 GB, free: 36.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/5.865, allocations: 0 / 1.296 GB, free: 36.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04303/5.908, allocations: 13.37 MB / 1.309 GB, free: 23.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008701/5.917, allocations: 0.704 MB / 1.31 GB, free: 22.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4197/6.337, allocations: 23.99 MB / 1.333 GB, free: 68.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01443/6.351, allocations: 5.326 MB / 1.339 GB, free: 67.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007859/6.359, allocations: 3.085 MB / 1.342 GB, free: 67.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.283e-06/6.359, allocations: 3.688 kB / 1.342 GB, free: 67.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.191/13.55, allocations: 267 MB / 1.602 GB, free: 5.844 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