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 2.027/2.027, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.5e-05/2.51e-05, allocations: 0 / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2721, allocations: 38.77 MB / 258.4 MB, free: 12.21 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/0.4434, allocations: 82.34 MB / 340.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.4438, allocations: 83.95 kB / 340.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.698/1.142, allocations: 119.7 MB / 460.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.142, allocations: 0 / 460.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0005737/1.142, allocations: 124 kB / 460.6 MB, free: 14.7 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.0287/1.171, allocations: 6.502 MB / 467.1 MB, free: 8.125 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/1.171, allocations: 19.89 kB / 467.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06661/1.238, allocations: 9.419 MB / 476.6 MB, free: 14.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03199/1.27, allocations: 8.548 MB / 485.1 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004429/1.27, allocations: 184 kB / 485.3 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003469/1.274, allocations: 351.8 kB / 485.6 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02518/1.299, allocations: 8.844 MB / 494.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2943/1.594, allocations: 12.99 MB / 0.4956 GB, free: 52.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000701/1.594, allocations: 87.31 kB / 0.4957 GB, free: 52.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003067/1.597, allocations: 37.62 kB / 0.4957 GB, free: 52.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004055/1.601, allocations: 1.434 MB / 0.4971 GB, free: 52.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/1.702, allocations: 62.8 MB / 0.5584 GB, free: 18.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01245/1.714, allocations: 7.018 MB / 0.5653 GB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00864/1.723, allocations: 5.049 MB / 0.5702 GB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001237/1.724, allocations: 0.5788 MB / 0.5708 GB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.375e-05/1.724, allocations: 70.55 kB / 0.5708 GB, free: 12.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=346): time 8.336e-06/1.724, allocations: 0 / 0.5708 GB, free: 12.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=610): time 0.6374/2.362, allocations: 76.85 MB / 0.6459 GB, free: 80.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/2.362, allocations: 272.7 kB / 0.6462 GB, free: 79.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009794/2.372, allocations: 3.977 MB / 0.65 GB, free: 79.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002101/2.374, allocations: 31.17 kB / 0.6501 GB, free: 79.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003665/2.378, allocations: 4.048 MB / 0.654 GB, free: 78.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003893/2.382, allocations: 2.051 MB / 0.656 GB, free: 76.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002267/2.384, allocations: 0 / 0.656 GB, free: 76.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007766/2.385, allocations: 0.7211 MB / 0.6567 GB, free: 76.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01738/2.402, allocations: 8.429 MB / 0.665 GB, free: 76.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02066/2.423, allocations: 12.61 MB / 0.6773 GB, free: 71.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02152/2.444, allocations: 10.41 MB / 0.6874 GB, free: 67.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001803/2.445, allocations: 38.81 kB / 0.6875 GB, free: 67.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.1531/2.598, allocations: 38.98 MB / 0.7255 GB, free: 54.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/2.598, allocations: 65.25 kB / 0.7256 GB, free: 54.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002242/2.598, allocations: 146.6 kB / 0.7257 GB, free: 54.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1149/2.713, allocations: 21.33 MB / 0.7466 GB, free: 36.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009408/2.723, allocations: 1.493 MB / 0.748 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6209/3.343, allocations: 137 MB / 0.8819 GB, free: 21.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01724/3.361, allocations: 0.5449 MB / 0.8824 GB, free: 21.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00319/3.364, allocations: 0.5413 MB / 0.8829 GB, free: 21.05 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.005747/3.37, allocations: 490.1 kB / 0.8834 GB, free: 20.8 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4187/3.789, allocations: 34.69 MB / 0.9173 GB, free: 65.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003358/3.792, allocations: 0.5462 MB / 0.9178 GB, free: 65.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1368/3.929, allocations: 35.47 MB / 0.9524 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/3.929, allocations: 61.59 kB / 0.9525 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001362/3.929, allocations: 67.05 kB / 0.9526 GB, free: 64.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001518/3.929, allocations: 32.95 kB / 0.9526 GB, free: 64.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1852/4.115, allocations: 55.74 MB / 1.007 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.428e-05/4.115, allocations: 0 / 1.007 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002711/4.117, allocations: 275.6 kB / 1.007 GB, free: 38.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1053/4.223, allocations: 20.57 MB / 1.027 GB, free: 17.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002116/4.225, allocations: 11.98 kB / 1.027 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6012/4.826, allocations: 124.6 MB / 1.149 GB, free: 41.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/4.826, allocations: 7.25 kB / 1.149 GB, free: 41.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4481/5.274, allocations: 48.01 MB / 1.196 GB, free: 73.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008844/5.283, allocations: 2.351 MB / 1.198 GB, free: 73.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003722/5.287, allocations: 7.297 kB / 1.198 GB, free: 73.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01273/5.3, allocations: 415 kB / 1.199 GB, free: 73.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005541/5.305, allocations: 0.507 MB / 1.199 GB, free: 73.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002032/5.307, allocations: 143.4 kB / 1.199 GB, free: 73.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007332/5.315, allocations: 2.733 MB / 1.202 GB, free: 73.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.342e-06/5.315, allocations: 0 / 1.202 GB, free: 73.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01972/5.335, allocations: 3.047 MB / 1.205 GB, free: 73.42 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.1636/5.498, allocations: 48.57 MB / 1.252 GB, free: 65.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.06105/5.559, allocations: 23.56 MB / 1.275 GB, free: 51.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/5.559, allocations: 0 / 1.275 GB, free: 51.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0389/5.598, allocations: 13.25 MB / 1.288 GB, free: 39.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006926/5.605, allocations: 0.5376 MB / 1.289 GB, free: 39.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06749/5.673, allocations: 22.68 MB / 1.311 GB, free: 19.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/5.685, allocations: 5.304 MB / 1.316 GB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01019/5.695, allocations: 2.139 MB / 1.318 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007084/5.702, allocations: 3.037 MB / 1.321 GB, free: 11.29 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/5.702, allocations: 0 / 1.321 GB, free: 11.29 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.225/6.927, allocations: 277.7 MB / 1.592 GB, free: 15.6 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002768/6.928, allocations: 148.5 kB / 1.593 GB, free: 15.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/17.37, allocations: 0.5469 kB / 1.593 GB, free: 15.4 MB / 410.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