Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.558e-05/3.561e-05, allocations: 7.375 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1273, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4746/0.6019, allocations: 96.03 MB / 438.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.6023, allocations: 82.77 kB / 438.8 MB, free: 14.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8503/1.453, allocations: 124.9 MB / 0.5504 GB, free: 92.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.103e-06/1.453, allocations: 0 / 0.5504 GB, free: 92.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004601/1.453, allocations: 120.2 kB / 0.5505 GB, free: 92.79 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02794/1.481, allocations: 6.505 MB / 0.5569 GB, free: 90.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/1.481, allocations: 7.812 kB / 0.5569 GB, free: 90.41 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005263/1.486, allocations: 1.205 MB / 0.5581 GB, free: 90.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06734/1.554, allocations: 9.424 MB / 0.5673 GB, free: 89.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02952/1.583, allocations: 8.094 MB / 0.5752 GB, free: 89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/1.584, allocations: 434.4 kB / 0.5756 GB, free: 88.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003608/1.588, allocations: 0.5804 MB / 0.5762 GB, free: 88.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04496/1.633, allocations: 14.65 MB / 0.5905 GB, free: 84.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004699/1.633, allocations: 91.23 kB / 0.5906 GB, free: 84.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002815/1.636, allocations: 273.1 kB / 0.5908 GB, free: 84.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/1.639, allocations: 1.445 MB / 0.5922 GB, free: 83.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03953/1.679, allocations: 12.61 MB / 0.6045 GB, free: 78.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1034/1.782, allocations: 64.67 MB / 0.6677 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03253/1.815, allocations: 7.786 MB / 0.6753 GB, free: 7.703 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009139/1.824, allocations: 5.148 MB / 0.6803 GB, free: 2.551 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03568/1.86, allocations: 12.94 MB / 0.693 GB, free: 5.539 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.247e-05/1.86, allocations: 72.8 kB / 0.693 GB, free: 5.457 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 7.444e-06/1.86, allocations: 0 / 0.693 GB, free: 5.457 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.8478/2.708, allocations: 79.59 MB / 0.7708 GB, free: 92.71 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/2.708, allocations: 269.3 kB / 0.771 GB, free: 92.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0114/2.719, allocations: 4.676 MB / 0.7756 GB, free: 89.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002239/2.722, allocations: 113.7 kB / 0.7757 GB, free: 89.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003775/2.726, allocations: 4.012 MB / 0.7796 GB, free: 86.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004029/2.73, allocations: 2.112 MB / 0.7817 GB, free: 84.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002561/2.732, allocations: 188.7 kB / 0.7818 GB, free: 84.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007214/2.733, allocations: 0.7081 MB / 0.7825 GB, free: 83.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01912/2.752, allocations: 8.558 MB / 0.7909 GB, free: 75.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0223/2.774, allocations: 12.61 MB / 0.8032 GB, free: 62.41 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02663/2.801, allocations: 10.52 MB / 0.8135 GB, free: 52.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001692/2.801, allocations: 40 kB / 0.8135 GB, free: 52.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1813/2.983, allocations: 39.72 MB / 0.8523 GB, free: 12.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/2.983, allocations: 64.22 kB / 0.8524 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001899/2.983, allocations: 140 kB / 0.8525 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.451/3.434, allocations: 21.5 MB / 0.8735 GB, free: 85.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009377/3.444, allocations: 1.434 MB / 0.8749 GB, free: 85.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3627/3.806, allocations: 144.4 MB / 1.016 GB, free: 4.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02446/3.831, allocations: 0.7237 MB / 1.017 GB, free: 4.223 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003964/3.835, allocations: 0.5278 MB / 1.017 GB, free: 3.695 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (775): * Single equations (assignments): 768 * 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,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.006496/3.841, allocations: 0.7401 MB / 1.018 GB, free: 3.18 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003454/3.845, allocations: 0.5917 MB / 1.018 GB, free: 2.621 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4925/4.337, allocations: 36.12 MB / 1.054 GB, free: 98.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-05/4.338, allocations: 61.5 kB / 1.054 GB, free: 98.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001494/4.338, allocations: 63.69 kB / 1.054 GB, free: 98.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001283/4.338, allocations: 31.42 kB / 1.054 GB, free: 98.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2367/4.575, allocations: 57.03 MB / 1.11 GB, free: 87.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/4.575, allocations: 0 / 1.11 GB, free: 87.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002779/4.577, allocations: 271.3 kB / 1.11 GB, free: 87.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1081/4.686, allocations: 20.72 MB / 1.13 GB, free: 76 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002111/4.688, allocations: 99.98 kB / 1.13 GB, free: 75.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6886/5.376, allocations: 132.2 MB / 1.259 GB, free: 84.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.435e-06/5.376, allocations: 3.5 kB / 1.259 GB, free: 84.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1822/5.559, allocations: 48.54 MB / 1.307 GB, free: 62.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/5.561, allocations: 0.6161 MB / 1.307 GB, free: 61.44 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003707/5.564, allocations: 92.7 kB / 1.307 GB, free: 61.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0134/5.578, allocations: 0.497 MB / 1.308 GB, free: 61.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005152/5.583, allocations: 0.5133 MB / 1.308 GB, free: 60.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00199/5.585, allocations: 140.6 kB / 1.309 GB, free: 60.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009045/5.594, allocations: 3.333 MB / 1.312 GB, free: 57.68 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.182e-06/5.594, allocations: 0 / 1.312 GB, free: 57.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02064/5.615, allocations: 3.433 MB / 1.315 GB, free: 54.26 MB / 474.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 (148): * Single equations (assignments): 141 * 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.1689/5.784, allocations: 49.19 MB / 1.363 GB, free: 9.996 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.4084/6.192, allocations: 23.77 MB / 1.386 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/6.192, allocations: 1.125 kB / 1.386 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04268/6.235, allocations: 13.37 MB / 1.399 GB, free: 106.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007504/6.243, allocations: 0.7054 MB / 1.4 GB, free: 106.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07325/6.316, allocations: 23.24 MB / 1.423 GB, free: 104.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/6.329, allocations: 5.312 MB / 1.428 GB, free: 103.4 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01059/6.34, allocations: 2.085 MB / 1.43 GB, free: 103.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007581/6.348, allocations: 3.037 MB / 1.433 GB, free: 100.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.894e-06/6.348, allocations: 3.938 kB / 1.433 GB, free: 100.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.985/7.333, allocations: 289.4 MB / 1.716 GB, free: 3.824 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003306/7.333, allocations: 192.2 kB / 1.716 GB, free: 3.594 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/18.72, allocations: 0 / 1.716 GB, free: 3.594 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat