Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.414/2.414, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.213e-05, allocations: 2.75 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1028, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5146/0.6174, allocations: 88.06 MB / 382.4 MB, free: 5.316 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.6178, allocations: 89.48 kB / 382.4 MB, free: 5.305 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.246, allocations: 120 MB / 0.4907 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.246, allocations: 0 / 0.4907 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005963/1.246, allocations: 120 kB / 0.4908 GB, free: 0.7656 MB / 394.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.3714/1.618, allocations: 6.509 MB / 0.4972 GB, free: 64.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/1.618, allocations: 9.688 kB / 0.4972 GB, free: 64.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08424/1.702, allocations: 9.426 MB / 0.5064 GB, free: 64.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03496/1.737, allocations: 8.546 MB / 0.5147 GB, free: 63.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004622/1.737, allocations: 188.4 kB / 0.5149 GB, free: 63.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003885/1.741, allocations: 349.9 kB / 0.5152 GB, free: 63.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02595/1.767, allocations: 8.868 MB / 0.5239 GB, free: 63.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0398/1.807, allocations: 13 MB / 0.5366 GB, free: 60.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006121/1.808, allocations: 90.44 kB / 0.5367 GB, free: 60.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003482/1.811, allocations: 41.64 kB / 0.5367 GB, free: 60.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003865/1.815, allocations: 1.435 MB / 0.5381 GB, free: 60.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.118/1.933, allocations: 62.88 MB / 0.5995 GB, free: 35.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01479/1.948, allocations: 7.012 MB / 0.6064 GB, free: 29.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01017/1.958, allocations: 5.044 MB / 0.6113 GB, free: 24.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/1.96, allocations: 0.5812 MB / 0.6119 GB, free: 24.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.932e-05/1.96, allocations: 70.28 kB / 0.6119 GB, free: 24.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=346): time 8.677e-06/1.96, allocations: 0 / 0.6119 GB, free: 24.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=610): time 0.7599/2.72, allocations: 75.3 MB / 0.6855 GB, free: 72.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001797/2.72, allocations: 265.8 kB / 0.6857 GB, free: 72.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/2.732, allocations: 3.982 MB / 0.6896 GB, free: 71.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002525/2.734, allocations: 28.58 kB / 0.6896 GB, free: 71.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004411/2.739, allocations: 4.052 MB / 0.6936 GB, free: 69.33 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004701/2.744, allocations: 2.048 MB / 0.6956 GB, free: 68.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003032/2.747, allocations: 0 / 0.6956 GB, free: 68.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009189/2.748, allocations: 0.7189 MB / 0.6963 GB, free: 67.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02149/2.769, allocations: 8.439 MB / 0.7045 GB, free: 66.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02451/2.794, allocations: 12.61 MB / 0.7168 GB, free: 57.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02578/2.819, allocations: 10.41 MB / 0.727 GB, free: 53.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001958/2.82, allocations: 45.28 kB / 0.7271 GB, free: 53.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=1263) (initialization): time 0.1904/3.01, allocations: 38.98 MB / 0.7651 GB, free: 23.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/3.01, allocations: 68 kB / 0.7652 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002515/3.011, allocations: 144 kB / 0.7653 GB, free: 23.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1464/3.157, allocations: 21.33 MB / 0.7861 GB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01107/3.168, allocations: 1.489 MB / 0.7876 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8252/3.993, allocations: 137 MB / 0.9214 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02039/4.014, allocations: 0.5463 MB / 0.922 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003903/4.018, allocations: 0.5464 MB / 0.9225 GB, free: 2.504 MB / 410.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.006722/4.025, allocations: 499.4 kB / 0.923 GB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.5857/4.61, allocations: 35.73 MB / 0.9579 GB, free: 76.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004132/4.614, allocations: 0.5446 MB / 0.9584 GB, free: 76.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1736/4.788, allocations: 35.47 MB / 0.993 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001591/4.788, allocations: 68.03 kB / 0.9931 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001852/4.789, allocations: 67.23 kB / 0.9932 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001882/4.789, allocations: 30.47 kB / 0.9932 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2247/5.013, allocations: 55.74 MB / 1.048 GB, free: 48.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-05/5.014, allocations: 6.25 kB / 1.048 GB, free: 48.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00328/5.017, allocations: 287.3 kB / 1.048 GB, free: 48.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1278/5.145, allocations: 20.56 MB / 1.068 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002384/5.147, allocations: 12 kB / 1.068 GB, free: 28.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7585/5.906, allocations: 124.6 MB / 1.19 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/5.906, allocations: 2.344 kB / 1.19 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1916/6.097, allocations: 48.01 MB / 1.237 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01086/6.108, allocations: 2.351 MB / 1.239 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004962/6.113, allocations: 0 / 1.239 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01627/6.13, allocations: 419.2 kB / 1.239 GB, free: 8.473 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006385/6.136, allocations: 0.5002 MB / 1.24 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00233/6.139, allocations: 144.9 kB / 1.24 GB, free: 7.828 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008344/6.147, allocations: 2.724 MB / 1.243 GB, free: 5.117 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.022e-06/6.147, allocations: 4 kB / 1.243 GB, free: 5.113 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.02414/6.171, allocations: 3.052 MB / 1.246 GB, free: 2.07 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.6235/6.795, allocations: 48.57 MB / 1.293 GB, free: 87.21 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0695/6.864, allocations: 23.56 MB / 1.316 GB, free: 83.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/6.864, allocations: 0 / 1.316 GB, free: 83.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04452/6.909, allocations: 13.25 MB / 1.329 GB, free: 77.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007864/6.917, allocations: 0.5364 MB / 1.329 GB, free: 77.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08163/6.998, allocations: 22.7 MB / 1.352 GB, free: 59.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01439/7.013, allocations: 5.321 MB / 1.357 GB, free: 55.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01272/7.026, allocations: 2.134 MB / 1.359 GB, free: 54.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008002/7.034, allocations: 3.043 MB / 1.362 GB, free: 51.67 MB / 442.7 MB Notification: Performance of SimCode: time 2.224e-06/7.034, allocations: 0 / 1.362 GB, free: 51.67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.59/8.624, allocations: 277.7 MB / 1.633 GB, free: 82.34 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003/8.624, allocations: 153.2 kB / 1.633 GB, free: 82.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 12.57/21.2, allocations: 0 / 1.633 GB, free: 82.14 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat