Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.034/2.034, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.798e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3072, allocations: 44.49 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.4927, allocations: 88.07 MB / 382.3 MB, free: 9.742 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.4931, allocations: 83.95 kB / 382.4 MB, free: 9.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8051/1.298, allocations: 120 MB / 0.4906 GB, free: 46.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.298, allocations: 0 / 0.4906 GB, free: 46.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005041/1.299, allocations: 123.3 kB / 0.4907 GB, free: 46.36 MB / 362.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.02815/1.327, allocations: 6.522 MB / 0.4971 GB, free: 39.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/1.327, allocations: 8.031 kB / 0.4971 GB, free: 39.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06646/1.393, allocations: 9.426 MB / 0.5063 GB, free: 30.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02845/1.422, allocations: 8.543 MB / 0.5147 GB, free: 21.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/1.422, allocations: 188 kB / 0.5148 GB, free: 21.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003028/1.425, allocations: 347.8 kB / 0.5152 GB, free: 21.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02104/1.446, allocations: 8.863 MB / 0.5238 GB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03297/1.479, allocations: 13.01 MB / 0.5365 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004819/1.48, allocations: 91.14 kB / 0.5366 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002647/1.483, allocations: 36 kB / 0.5366 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003834/1.487, allocations: 1.439 MB / 0.5381 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4031/1.89, allocations: 62.86 MB / 0.5994 GB, free: 46.49 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/1.902, allocations: 7.019 MB / 0.6063 GB, free: 45.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008529/1.911, allocations: 5.04 MB / 0.6112 GB, free: 45.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/1.912, allocations: 0.5746 MB / 0.6118 GB, free: 45.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.106e-05/1.912, allocations: 77.2 kB / 0.6119 GB, free: 45.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=346): time 1.178e-05/1.912, allocations: 3.688 kB / 0.6119 GB, free: 45.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=610): time 0.3127/2.225, allocations: 75.3 MB / 0.6854 GB, free: 7.703 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/2.225, allocations: 265.9 kB / 0.6856 GB, free: 7.391 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009155/2.234, allocations: 3.978 MB / 0.6895 GB, free: 3.988 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002158/2.236, allocations: 25.7 kB / 0.6896 GB, free: 3.957 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003701/2.24, allocations: 4.051 MB / 0.6935 GB, free: 428 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004499/2.245, allocations: 2.053 MB / 0.6955 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00236/2.247, allocations: 1.594 kB / 0.6955 GB, free: 14.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009268/2.248, allocations: 0.7204 MB / 0.6962 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02047/2.268, allocations: 8.433 MB / 0.7045 GB, free: 6.004 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0256/2.294, allocations: 12.61 MB / 0.7168 GB, free: 7.551 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3289/2.623, allocations: 10.4 MB / 0.7269 GB, free: 98.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002254/2.623, allocations: 41.03 kB / 0.727 GB, free: 98.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.158/2.781, allocations: 38.97 MB / 0.765 GB, free: 96.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/2.781, allocations: 66.84 kB / 0.7651 GB, free: 96.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002337/2.782, allocations: 145.4 kB / 0.7652 GB, free: 96.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1173/2.899, allocations: 21.33 MB / 0.7861 GB, free: 92.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009155/2.908, allocations: 1.493 MB / 0.7875 GB, free: 91.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6588/3.567, allocations: 137 MB / 0.9213 GB, free: 83.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01759/3.585, allocations: 0.5511 MB / 0.9219 GB, free: 83.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003275/3.588, allocations: 0.5398 MB / 0.9224 GB, free: 83.86 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 649 * 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 (802): * Single equations (assignments): 795 * 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,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.005136/3.593, allocations: 493.8 kB / 0.9229 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1425/3.736, allocations: 34.63 MB / 0.9567 GB, free: 73.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003419/3.739, allocations: 0.5477 MB / 0.9572 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1432/3.883, allocations: 35.47 MB / 0.9919 GB, free: 42.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001529/3.883, allocations: 64 kB / 0.9919 GB, free: 42.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000161/3.883, allocations: 67.95 kB / 0.992 GB, free: 41.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000159/3.883, allocations: 30.33 kB / 0.992 GB, free: 41.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5191/4.402, allocations: 55.73 MB / 1.046 GB, free: 79.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-05/4.402, allocations: 0 / 1.046 GB, free: 79.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002801/4.405, allocations: 279.2 kB / 1.047 GB, free: 79.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.108/4.513, allocations: 20.57 MB / 1.067 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002476/4.516, allocations: 7.672 kB / 1.067 GB, free: 79.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6444/5.16, allocations: 124.6 MB / 1.189 GB, free: 98.15 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/5.16, allocations: 3.094 kB / 1.189 GB, free: 98.15 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1693/5.329, allocations: 48.01 MB / 1.235 GB, free: 96.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009375/5.339, allocations: 2.348 MB / 1.238 GB, free: 95.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004244/5.343, allocations: 6.469 kB / 1.238 GB, free: 95.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01321/5.356, allocations: 416.5 kB / 1.238 GB, free: 95.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00569/5.362, allocations: 0.5086 MB / 1.239 GB, free: 95.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002123/5.364, allocations: 138.8 kB / 1.239 GB, free: 95.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007729/5.372, allocations: 2.725 MB / 1.241 GB, free: 94.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.042e-06/5.372, allocations: 3.594 kB / 1.241 GB, free: 94.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02197/5.394, allocations: 3.054 MB / 1.244 GB, free: 94.44 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 (154): * Single equations (assignments): 147 * 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.1699/5.564, allocations: 48.57 MB / 1.292 GB, free: 63.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.06021/5.624, allocations: 23.57 MB / 1.315 GB, free: 41.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/5.625, allocations: 0 / 1.315 GB, free: 41.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03922/5.664, allocations: 13.25 MB / 1.328 GB, free: 27.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007438/5.671, allocations: 0.5334 MB / 1.328 GB, free: 27.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3825/6.054, allocations: 22.7 MB / 1.35 GB, free: 95.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01356/6.067, allocations: 5.311 MB / 1.356 GB, free: 94.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01058/6.078, allocations: 2.135 MB / 1.358 GB, free: 94.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007399/6.086, allocations: 3.043 MB / 1.361 GB, free: 94.66 MB / 442.7 MB Notification: Performance of SimCode: time 1.673e-06/6.086, allocations: 0 / 1.361 GB, free: 94.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8897/6.975, allocations: 277.7 MB / 1.632 GB, free: 15.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/6.976, allocations: 140.7 kB / 1.632 GB, free: 15.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/17.31, allocations: 0 / 1.632 GB, free: 15.61 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat