Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.599e-05/3.607e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.278, allocations: 38.76 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1615/0.4396, allocations: 88.4 MB / 352.2 MB, free: 1.219 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.44, allocations: 87.94 kB / 352.3 MB, free: 1.133 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7514/1.191, allocations: 126.2 MB / 478.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.191, allocations: 0 / 478.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004547/1.192, allocations: 115.9 kB / 478.6 MB, free: 10.62 MB / 330.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.02869/1.221, allocations: 6.329 MB / 484.9 MB, free: 4.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/1.221, allocations: 8.031 kB / 484.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0067/1.227, allocations: 1.312 MB / 486.3 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0636/1.291, allocations: 8.314 MB / 494.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03024/1.321, allocations: 7.268 MB / 0.4901 GB, free: 3.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007366/1.322, allocations: 455.7 kB / 0.4905 GB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004062/1.326, allocations: 0.5895 MB / 0.4911 GB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3785/1.705, allocations: 15.58 MB / 0.5063 GB, free: 50.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004229/1.705, allocations: 73.44 kB / 0.5064 GB, free: 50.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003356/1.709, allocations: 282.2 kB / 0.5066 GB, free: 50.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/1.712, allocations: 1.619 MB / 0.5082 GB, free: 50.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04037/1.753, allocations: 13.76 MB / 0.5217 GB, free: 50.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1083/1.861, allocations: 63.97 MB / 0.5841 GB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02244/1.883, allocations: 6.374 MB / 0.5904 GB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006996/1.891, allocations: 3.479 MB / 0.5937 GB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03953/1.93, allocations: 14.33 MB / 0.6077 GB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.528e-05/1.93, allocations: 67.38 kB / 0.6078 GB, free: 5.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.544e-06/1.93, allocations: 0 / 0.6078 GB, free: 5.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.458/2.388, allocations: 29.92 MB / 0.637 GB, free: 81.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/2.388, allocations: 211.1 kB / 0.6372 GB, free: 80.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01745/2.406, allocations: 4.759 MB / 0.6419 GB, free: 80.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001254/2.407, allocations: 76.72 kB / 0.6419 GB, free: 80.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005404/2.413, allocations: 4.293 MB / 0.6461 GB, free: 78.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002854/2.416, allocations: 1.241 MB / 0.6473 GB, free: 78.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001936/2.418, allocations: 171.7 kB / 0.6475 GB, free: 78.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.001212/2.419, allocations: 0.6945 MB / 0.6482 GB, free: 77.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01068/2.43, allocations: 4.452 MB / 0.6525 GB, free: 77.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01413/2.444, allocations: 9.405 MB / 0.6617 GB, free: 71.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/2.458, allocations: 6.387 MB / 0.668 GB, free: 71.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002266/2.458, allocations: 49.16 kB / 0.668 GB, free: 71.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07147/2.53, allocations: 18.32 MB / 0.6859 GB, free: 68.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/2.53, allocations: 78.62 kB / 0.686 GB, free: 68.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002877/2.53, allocations: 174.9 kB / 0.6861 GB, free: 68.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04019/2.57, allocations: 5.636 MB / 0.6916 GB, free: 67.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01394/2.584, allocations: 2.04 MB / 0.6936 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04879/2.633, allocations: 23.61 MB / 0.7167 GB, free: 54.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/2.645, allocations: 0.5415 MB / 0.7172 GB, free: 54.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002268/2.647, allocations: 0.5056 MB / 0.7177 GB, free: 54.01 MB / 378.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.003631/2.651, allocations: 0.7357 MB / 0.7184 GB, free: 53.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001513/2.652, allocations: 0.5052 MB / 0.7189 GB, free: 52.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05423/2.707, allocations: 12.26 MB / 0.7309 GB, free: 43.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/2.707, allocations: 52 kB / 0.731 GB, free: 43.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/2.707, allocations: 10.81 kB / 0.731 GB, free: 43.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.596e-05/2.707, allocations: 16.28 kB / 0.731 GB, free: 43.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08223/2.789, allocations: 23.86 MB / 0.7543 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.318e-05/2.789, allocations: 4 kB / 0.7543 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005825/2.795, allocations: 0.57 MB / 0.7548 GB, free: 21.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03522/2.83, allocations: 4.638 MB / 0.7594 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008991/2.831, allocations: 60.7 kB / 0.7594 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3217/3.153, allocations: 18.91 MB / 0.7779 GB, free: 71.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/3.153, allocations: 15.67 kB / 0.7779 GB, free: 71.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05839/3.211, allocations: 17.26 MB / 0.7948 GB, free: 70.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004759/3.216, allocations: 1.208 MB / 0.7959 GB, free: 70.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001914/3.218, allocations: 54.39 kB / 0.796 GB, free: 70.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006339/3.225, allocations: 249 kB / 0.7962 GB, free: 70.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001408/3.226, allocations: 193.7 kB / 0.7964 GB, free: 70.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004692/3.227, allocations: 83.2 kB / 0.7965 GB, free: 70.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008702/3.235, allocations: 3.305 MB / 0.7997 GB, free: 69.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.022e-06/3.235, allocations: 0.5469 kB / 0.7997 GB, free: 69.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01086/3.246, allocations: 1.705 MB / 0.8014 GB, free: 69.92 MB / 378.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.05968/3.306, allocations: 18.97 MB / 0.8199 GB, free: 62.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02383/3.33, allocations: 10.31 MB / 0.83 GB, free: 59.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-05/3.33, allocations: 4.781 kB / 0.83 GB, free: 59.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01291/3.343, allocations: 3.904 MB / 0.8338 GB, free: 57.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005434/3.348, allocations: 0.5832 MB / 0.8344 GB, free: 57.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05352/3.402, allocations: 16.21 MB / 0.8502 GB, free: 44.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01103/3.413, allocations: 4.763 MB / 0.8549 GB, free: 41.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007807/3.421, allocations: 2.953 MB / 0.8577 GB, free: 38.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.814e-06/3.421, allocations: 0.8125 kB / 0.8577 GB, free: 38.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.84/9.261, allocations: 179.9 MB / 1.033 GB, free: 5.867 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat