Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.945e-05/3.956e-05, allocations: 4 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2681, allocations: 38.77 MB / 263.9 MB, free: 9.691 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.4191, allocations: 83.01 MB / 346.9 MB, free: 6.559 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/0.4195, allocations: 83.95 kB / 346.9 MB, free: 6.477 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8005/1.22, allocations: 122.4 MB / 469.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.22, allocations: 0 / 469.3 MB, free: 3.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004743/1.221, allocations: 120 kB / 469.4 MB, free: 3.742 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.02988/1.25, allocations: 6.508 MB / 475.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.37e-05/1.251, allocations: 8.031 kB / 476 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005969/1.257, allocations: 1.193 MB / 477.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07225/1.329, allocations: 9.423 MB / 486.6 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.038/1.367, allocations: 8.56 MB / 495.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007361/1.368, allocations: 435.4 kB / 495.6 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003505/1.371, allocations: 0.5738 MB / 496.1 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3426/1.714, allocations: 14.69 MB / 0.4988 GB, free: 49.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005778/1.714, allocations: 83.09 kB / 0.4989 GB, free: 49.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003333/1.718, allocations: 275.9 kB / 0.4992 GB, free: 49.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003466/1.721, allocations: 1.437 MB / 0.5006 GB, free: 49.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0421/1.764, allocations: 12.81 MB / 0.5131 GB, free: 49.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1124/1.876, allocations: 64.58 MB / 0.5762 GB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03315/1.909, allocations: 7.805 MB / 0.5838 GB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009685/1.919, allocations: 5.155 MB / 0.5888 GB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03663/1.956, allocations: 12.99 MB / 0.6015 GB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/1.956, allocations: 79.23 kB / 0.6016 GB, free: 11.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 8.366e-06/1.956, allocations: 0 / 0.6016 GB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.844/2.8, allocations: 79.85 MB / 0.6796 GB, free: 77.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/2.8, allocations: 268.9 kB / 0.6798 GB, free: 77.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01217/2.812, allocations: 4.709 MB / 0.6844 GB, free: 76.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002271/2.815, allocations: 114.2 kB / 0.6845 GB, free: 76.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004139/2.819, allocations: 4.002 MB / 0.6884 GB, free: 73.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004045/2.823, allocations: 2.112 MB / 0.6905 GB, free: 71.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002689/2.826, allocations: 187.9 kB / 0.6907 GB, free: 71.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007657/2.826, allocations: 0.7127 MB / 0.6914 GB, free: 71.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01988/2.846, allocations: 8.553 MB / 0.6997 GB, free: 67.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02317/2.87, allocations: 12.65 MB / 0.7121 GB, free: 59.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02364/2.893, allocations: 10.5 MB / 0.7223 GB, free: 50.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000156/2.893, allocations: 40 kB / 0.7224 GB, free: 50.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1871/3.081, allocations: 40.08 MB / 0.7615 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001837/3.081, allocations: 72.92 kB / 0.7616 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003005/3.081, allocations: 136 kB / 0.7617 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4427/3.524, allocations: 21.5 MB / 0.7827 GB, free: 68.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008836/3.533, allocations: 1.425 MB / 0.7841 GB, free: 68.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6805/4.213, allocations: 144.4 MB / 0.9251 GB, free: 72.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01805/4.231, allocations: 0.7215 MB / 0.9258 GB, free: 72.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003436/4.235, allocations: 0.5298 MB / 0.9263 GB, free: 72.7 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.005375/4.24, allocations: 0.729 MB / 0.927 GB, free: 72.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002936/4.243, allocations: 0.5923 MB / 0.9276 GB, free: 72.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1456/4.389, allocations: 36.12 MB / 0.9629 GB, free: 70.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001273/4.389, allocations: 64.89 kB / 0.9629 GB, free: 70.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001677/4.389, allocations: 64.16 kB / 0.963 GB, free: 70.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001455/4.389, allocations: 32.58 kB / 0.963 GB, free: 70.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2191/4.609, allocations: 57.03 MB / 1.019 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001445/4.609, allocations: 0 / 1.019 GB, free: 35.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004369/4.613, allocations: 272 kB / 1.019 GB, free: 35.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.13/4.743, allocations: 20.72 MB / 1.039 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002251/4.746, allocations: 97.48 kB / 1.039 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6696/5.415, allocations: 132.2 MB / 1.168 GB, free: 22.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/5.415, allocations: 0 / 1.168 GB, free: 22.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.469/5.884, allocations: 48.79 MB / 1.216 GB, free: 73.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009662/5.894, allocations: 2.401 MB / 1.218 GB, free: 73.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00373/5.898, allocations: 98.95 kB / 1.219 GB, free: 73.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01348/5.911, allocations: 0.4927 MB / 1.219 GB, free: 73.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005407/5.917, allocations: 0.499 MB / 1.219 GB, free: 73.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001981/5.919, allocations: 146.8 kB / 1.22 GB, free: 73.24 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009367/5.928, allocations: 3.362 MB / 1.223 GB, free: 73.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.403e-06/5.928, allocations: 0 / 1.223 GB, free: 73.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.02033/5.949, allocations: 3.434 MB / 1.226 GB, free: 73.04 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.1724/6.121, allocations: 49.19 MB / 1.274 GB, free: 56.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.06346/6.185, allocations: 24.18 MB / 1.298 GB, free: 35.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/6.185, allocations: 0 / 1.298 GB, free: 35.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04161/6.226, allocations: 13.59 MB / 1.311 GB, free: 21.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008926/6.235, allocations: 0.7176 MB / 1.312 GB, free: 21.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3631/6.598, allocations: 23.27 MB / 1.335 GB, free: 69.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01262/6.611, allocations: 5.312 MB / 1.34 GB, free: 68.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01057/6.622, allocations: 2.086 MB / 1.342 GB, free: 68.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006647/6.628, allocations: 3.04 MB / 1.345 GB, free: 68.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.442e-06/6.628, allocations: 0 / 1.345 GB, free: 68.45 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.2/7.829, allocations: 291.3 MB / 1.629 GB, free: 77.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000259/7.829, allocations: 188.5 kB / 1.629 GB, free: 77.47 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/18.8, allocations: 6.562 kB / 1.629 GB, free: 77.47 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat