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.746/1.746, allocations: 171.2 MB / 178.8 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.583e-05/3.588e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2608, allocations: 38.76 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4063, allocations: 82.34 MB / 340.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.4066, allocations: 79.95 kB / 340.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7497/1.156, allocations: 119.7 MB / 460.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.156, allocations: 0 / 460.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000458/1.157, allocations: 120 kB / 460.6 MB, free: 14.79 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.03369/1.191, allocations: 6.502 MB / 467.1 MB, free: 8.211 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.191, allocations: 8.031 kB / 467.1 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06633/1.257, allocations: 9.431 MB / 476.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03231/1.289, allocations: 8.552 MB / 485.1 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005144/1.29, allocations: 184 kB / 485.3 MB, free: 5.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003689/1.294, allocations: 339.8 kB / 485.6 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0256/1.319, allocations: 8.856 MB / 494.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3072/1.627, allocations: 12.99 MB / 0.4956 GB, free: 53.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007245/1.627, allocations: 89.62 kB / 0.4956 GB, free: 53.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003015/1.63, allocations: 35.38 kB / 0.4957 GB, free: 53.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00387/1.634, allocations: 1.438 MB / 0.4971 GB, free: 53.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1006/1.735, allocations: 62.8 MB / 0.5584 GB, free: 19.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/1.748, allocations: 7.009 MB / 0.5652 GB, free: 16.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008725/1.756, allocations: 5.044 MB / 0.5702 GB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001245/1.758, allocations: 0.5841 MB / 0.5707 GB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.137e-05/1.758, allocations: 67.84 kB / 0.5708 GB, free: 13.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=346): time 7.734e-06/1.758, allocations: 0 / 0.5708 GB, free: 13.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=610): time 0.6115/2.369, allocations: 76.29 MB / 0.6453 GB, free: 79.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/2.369, allocations: 267.4 kB / 0.6456 GB, free: 79.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/2.38, allocations: 3.986 MB / 0.6495 GB, free: 79.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002281/2.383, allocations: 25.7 kB / 0.6495 GB, free: 79.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003664/2.386, allocations: 3.897 MB / 0.6533 GB, free: 77.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004259/2.391, allocations: 2.059 MB / 0.6553 GB, free: 76.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002842/2.394, allocations: 0 / 0.6553 GB, free: 76.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000875/2.395, allocations: 0.7244 MB / 0.656 GB, free: 76.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02154/2.416, allocations: 8.435 MB / 0.6642 GB, free: 76.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03021/2.446, allocations: 12.61 MB / 0.6766 GB, free: 70.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03093/2.477, allocations: 10.4 MB / 0.6867 GB, free: 67.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002738/2.478, allocations: 37.72 kB / 0.6868 GB, free: 67.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.1571/2.635, allocations: 38.8 MB / 0.7246 GB, free: 56.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001147/2.635, allocations: 67 kB / 0.7247 GB, free: 56.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/2.635, allocations: 148 kB / 0.7248 GB, free: 56.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1201/2.755, allocations: 21.34 MB / 0.7457 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009303/2.765, allocations: 1.496 MB / 0.7471 GB, free: 39.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6801/3.445, allocations: 137 MB / 0.881 GB, free: 24.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02373/3.469, allocations: 0.5468 MB / 0.8815 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004141/3.473, allocations: 0.5479 MB / 0.882 GB, free: 24.17 MB / 378.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.007297/3.48, allocations: 493.9 kB / 0.8825 GB, free: 23.92 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4479/3.928, allocations: 34.82 MB / 0.9165 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003481/3.932, allocations: 0.5507 MB / 0.917 GB, free: 65.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1396/4.071, allocations: 35.46 MB / 0.9517 GB, free: 64.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001262/4.071, allocations: 61.92 kB / 0.9517 GB, free: 64.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001284/4.072, allocations: 70.23 kB / 0.9518 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001517/4.072, allocations: 31.66 kB / 0.9518 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1861/4.258, allocations: 55.73 MB / 1.006 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-05/4.258, allocations: 7.25 kB / 1.006 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/4.261, allocations: 279.6 kB / 1.007 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.105/4.366, allocations: 20.57 MB / 1.027 GB, free: 21.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002171/4.368, allocations: 12 kB / 1.027 GB, free: 21.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5906/4.959, allocations: 124.6 MB / 1.148 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/4.959, allocations: 7.547 kB / 1.148 GB, free: 27.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4459/5.405, allocations: 48 MB / 1.195 GB, free: 74.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008862/5.414, allocations: 2.352 MB / 1.198 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003965/5.418, allocations: 0 / 1.198 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01292/5.431, allocations: 417.6 kB / 1.198 GB, free: 74.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005488/5.436, allocations: 0.5054 MB / 1.198 GB, free: 74.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001962/5.438, allocations: 147.5 kB / 1.199 GB, free: 74.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007494/5.446, allocations: 2.733 MB / 1.201 GB, free: 74.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.31e-05/5.446, allocations: 0 / 1.201 GB, free: 74.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01972/5.465, allocations: 3.05 MB / 1.204 GB, free: 74.1 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 (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.1624/5.628, allocations: 48.57 MB / 1.252 GB, free: 66.51 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.05816/5.686, allocations: 23.56 MB / 1.275 GB, free: 53.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.403e-06/5.686, allocations: 0 / 1.275 GB, free: 53.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03789/5.724, allocations: 13.24 MB / 1.288 GB, free: 41.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006986/5.731, allocations: 0.534 MB / 1.288 GB, free: 41.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07162/5.803, allocations: 23.42 MB / 1.311 GB, free: 20.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/5.815, allocations: 5.309 MB / 1.316 GB, free: 16.97 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006962/5.822, allocations: 3.087 MB / 1.319 GB, free: 14.11 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/5.822, allocations: 0 / 1.319 GB, free: 14.11 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.261/13.08, allocations: 264.6 MB / 1.578 GB, free: 30.11 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