Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.708e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4089, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.5667, allocations: 88.07 MB / 382.3 MB, free: 9.801 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.5671, allocations: 83.95 kB / 382.4 MB, free: 9.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7452/1.312, allocations: 120 MB / 0.4906 GB, free: 46.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.312, allocations: 0 / 0.4906 GB, free: 46.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004424/1.313, allocations: 120 kB / 0.4907 GB, free: 46.45 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.02711/1.34, allocations: 6.518 MB / 0.4971 GB, free: 39.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/1.34, allocations: 12.03 kB / 0.4971 GB, free: 39.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06485/1.405, allocations: 9.418 MB / 0.5063 GB, free: 30.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02863/1.434, allocations: 8.56 MB / 0.5146 GB, free: 21.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/1.434, allocations: 188 kB / 0.5148 GB, free: 21.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003044/1.437, allocations: 343.8 kB / 0.5152 GB, free: 21.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02106/1.458, allocations: 8.867 MB / 0.5238 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03421/1.492, allocations: 13.01 MB / 0.5365 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005948/1.493, allocations: 87.2 kB / 0.5366 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003173/1.496, allocations: 36 kB / 0.5366 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00398/1.5, allocations: 1.439 MB / 0.538 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4035/1.904, allocations: 62.86 MB / 0.5994 GB, free: 47.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/1.916, allocations: 7.02 MB / 0.6063 GB, free: 46.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008505/1.924, allocations: 5.04 MB / 0.6112 GB, free: 46.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001183/1.926, allocations: 0.5812 MB / 0.6118 GB, free: 46.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.699e-05/1.926, allocations: 65.47 kB / 0.6118 GB, free: 46.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=346): time 7.544e-06/1.926, allocations: 0 / 0.6118 GB, free: 46.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=610): time 0.311/2.237, allocations: 75.3 MB / 0.6854 GB, free: 9.152 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/2.237, allocations: 268.3 kB / 0.6856 GB, free: 8.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008253/2.245, allocations: 3.981 MB / 0.6895 GB, free: 5.438 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002093/2.247, allocations: 25.7 kB / 0.6895 GB, free: 5.406 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003344/2.251, allocations: 3.907 MB / 0.6933 GB, free: 1.969 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003826/2.255, allocations: 2.057 MB / 0.6954 GB, free: 104 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002027/2.257, allocations: 0 / 0.6954 GB, free: 104 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.002084/2.259, allocations: 0.8038 MB / 0.6961 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02049/2.279, allocations: 8.427 MB / 0.7044 GB, free: 7.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02551/2.305, allocations: 12.61 MB / 0.7167 GB, free: 9.219 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.339/2.644, allocations: 10.4 MB / 0.7268 GB, free: 101.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002252/2.644, allocations: 40.47 kB / 0.7269 GB, free: 101.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.1576/2.802, allocations: 38.81 MB / 0.7648 GB, free: 99.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/2.802, allocations: 64.25 kB / 0.7648 GB, free: 99.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002464/2.802, allocations: 142.3 kB / 0.765 GB, free: 99.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1149/2.917, allocations: 21.33 MB / 0.7858 GB, free: 95.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008737/2.926, allocations: 1.496 MB / 0.7873 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6309/3.557, allocations: 137 MB / 0.9211 GB, free: 85.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01708/3.574, allocations: 0.5525 MB / 0.9216 GB, free: 85.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003287/3.577, allocations: 0.5425 MB / 0.9222 GB, free: 85.58 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.005097/3.583, allocations: 491.3 kB / 0.9226 GB, free: 85.43 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1412/3.724, allocations: 34.62 MB / 0.9564 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003168/3.727, allocations: 0.5517 MB / 0.957 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1344/3.861, allocations: 35.47 MB / 0.9916 GB, free: 44.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/3.862, allocations: 60 kB / 0.9917 GB, free: 44.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001207/3.862, allocations: 67.95 kB / 0.9917 GB, free: 44.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001411/3.862, allocations: 31.3 kB / 0.9918 GB, free: 44.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5071/4.369, allocations: 55.73 MB / 1.046 GB, free: 81.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.902e-05/4.369, allocations: 0.6875 kB / 1.046 GB, free: 81.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002722/4.372, allocations: 288.5 kB / 1.046 GB, free: 81.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1053/4.477, allocations: 20.57 MB / 1.067 GB, free: 81.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002015/4.479, allocations: 10.61 kB / 1.067 GB, free: 81.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6084/5.088, allocations: 124.6 MB / 1.188 GB, free: 83.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/5.088, allocations: 4.734 kB / 1.188 GB, free: 83.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1571/5.245, allocations: 48 MB / 1.235 GB, free: 81.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008546/5.253, allocations: 2.346 MB / 1.237 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003288/5.257, allocations: 4.875 kB / 1.237 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01195/5.269, allocations: 423 kB / 1.238 GB, free: 80.67 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004825/5.274, allocations: 0.5102 MB / 1.238 GB, free: 80.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001501/5.275, allocations: 141.8 kB / 1.239 GB, free: 80.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005925/5.281, allocations: 2.727 MB / 1.241 GB, free: 79.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.12e-07/5.281, allocations: 2.062 kB / 1.241 GB, free: 79.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01809/5.299, allocations: 3.05 MB / 1.244 GB, free: 79.57 MB / 426.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.1537/5.453, allocations: 48.58 MB / 1.292 GB, free: 48.61 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.05746/5.511, allocations: 23.56 MB / 1.315 GB, free: 26.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/5.511, allocations: 0 / 1.315 GB, free: 26.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03717/5.548, allocations: 13.24 MB / 1.328 GB, free: 13.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006466/5.554, allocations: 0.5352 MB / 1.328 GB, free: 12.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3688/5.923, allocations: 23.44 MB / 1.351 GB, free: 97.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03825/5.961, allocations: 5.315 MB / 1.356 GB, free: 97.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01732/5.979, allocations: 3.088 MB / 1.359 GB, free: 97.02 MB / 442.7 MB Notification: Performance of SimCode: time 3.076e-06/5.979, allocations: 3.781 kB / 1.359 GB, free: 97.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.776/12.75, allocations: 265 MB / 1.618 GB, free: 28.61 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat