Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.182/2.182, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.576e-05/3.575e-05, allocations: 0 / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09762/0.0977, allocations: 44.5 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4498/0.5475, allocations: 88.74 MB / 388.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003868/0.548, allocations: 87.8 kB / 388.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7189/1.267, allocations: 122.7 MB / 0.4995 GB, free: 4.656 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.267, allocations: 0 / 0.4995 GB, free: 4.656 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005935/1.268, allocations: 127.9 kB / 0.4996 GB, free: 4.531 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.03111/1.299, allocations: 6.516 MB / 0.506 GB, free: 13.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/1.299, allocations: 12.03 kB / 0.506 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005904/1.305, allocations: 1.201 MB / 0.5072 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07228/1.377, allocations: 9.422 MB / 0.5164 GB, free: 3.273 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3115/1.689, allocations: 8.559 MB / 0.5247 GB, free: 67.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006903/1.689, allocations: 437.1 kB / 0.5251 GB, free: 67.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/1.693, allocations: 0.5802 MB / 0.5257 GB, free: 67.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04959/1.743, allocations: 14.63 MB / 0.54 GB, free: 64.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006428/1.743, allocations: 95.55 kB / 0.5401 GB, free: 64.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003685/1.747, allocations: 270.3 kB / 0.5403 GB, free: 64.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003413/1.751, allocations: 1.443 MB / 0.5417 GB, free: 64.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03956/1.79, allocations: 12.6 MB / 0.554 GB, free: 64.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1041/1.894, allocations: 64.66 MB / 0.6172 GB, free: 40.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03164/1.926, allocations: 7.774 MB / 0.6248 GB, free: 37.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009323/1.935, allocations: 5.151 MB / 0.6298 GB, free: 35.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03104/1.967, allocations: 12.98 MB / 0.6425 GB, free: 27.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.2e-05/1.967, allocations: 68.75 kB / 0.6426 GB, free: 27.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 7.374e-06/1.967, allocations: 0 / 0.6426 GB, free: 27.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.7865/2.753, allocations: 80.06 MB / 0.7207 GB, free: 74.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/2.753, allocations: 272.8 kB / 0.721 GB, free: 74.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01185/2.765, allocations: 4.704 MB / 0.7256 GB, free: 73.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002167/2.767, allocations: 117.9 kB / 0.7257 GB, free: 73.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003845/2.771, allocations: 4.004 MB / 0.7296 GB, free: 72.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004047/2.775, allocations: 2.11 MB / 0.7317 GB, free: 70.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002261/2.778, allocations: 193.4 kB / 0.7319 GB, free: 70.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007289/2.779, allocations: 0.7102 MB / 0.7326 GB, free: 70.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01963/2.798, allocations: 8.553 MB / 0.7409 GB, free: 68.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02316/2.821, allocations: 12.59 MB / 0.7532 GB, free: 60.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02364/2.845, allocations: 10.51 MB / 0.7635 GB, free: 56.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/2.845, allocations: 38.38 kB / 0.7635 GB, free: 56.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1612/3.007, allocations: 39.7 MB / 0.8023 GB, free: 34.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/3.007, allocations: 66.34 kB / 0.8023 GB, free: 34.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/3.007, allocations: 136 kB / 0.8025 GB, free: 34.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1156/3.122, allocations: 21.51 MB / 0.8235 GB, free: 16.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008768/3.131, allocations: 1.438 MB / 0.8249 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.693/3.824, allocations: 144.4 MB / 0.9659 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01867/3.843, allocations: 0.7217 MB / 0.9666 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003489/3.847, allocations: 0.5295 MB / 0.9671 GB, free: 9.359 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * 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 (772): * Single equations (assignments): 765 * 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.006248/3.853, allocations: 0.7307 MB / 0.9678 GB, free: 8.855 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003557/3.857, allocations: 0.5922 MB / 0.9684 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.479/4.336, allocations: 36.22 MB / 1.004 GB, free: 79.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/4.336, allocations: 57.91 kB / 1.004 GB, free: 79.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001786/4.336, allocations: 65.19 kB / 1.004 GB, free: 79.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001301/4.336, allocations: 27.22 kB / 1.004 GB, free: 79.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2061/4.542, allocations: 57.04 MB / 1.06 GB, free: 73.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001021/4.542, allocations: 3.938 kB / 1.06 GB, free: 73.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/4.545, allocations: 276 kB / 1.06 GB, free: 73.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1102/4.656, allocations: 20.72 MB / 1.08 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002499/4.658, allocations: 95.05 kB / 1.08 GB, free: 68.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7274/5.386, allocations: 132.2 MB / 1.209 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/5.386, allocations: 2.25 kB / 1.209 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1793/5.565, allocations: 48.55 MB / 1.257 GB, free: 42.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009988/5.575, allocations: 2.401 MB / 1.259 GB, free: 39.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004236/5.579, allocations: 92 kB / 1.259 GB, free: 39.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0142/5.593, allocations: 0.4986 MB / 1.26 GB, free: 39.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005881/5.599, allocations: 0.509 MB / 1.26 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002392/5.602, allocations: 140.5 kB / 1.26 GB, free: 39.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01005/5.612, allocations: 3.359 MB / 1.264 GB, free: 36.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.473e-06/5.612, allocations: 0 / 1.264 GB, free: 36.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.02303/5.635, allocations: 3.432 MB / 1.267 GB, free: 32.77 MB / 442.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.5134/6.149, allocations: 49.21 MB / 1.315 GB, free: 65.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.06921/6.218, allocations: 23.76 MB / 1.338 GB, free: 64.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/6.218, allocations: 0 / 1.338 GB, free: 64.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.06292/6.281, allocations: 13.36 MB / 1.351 GB, free: 63.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01107/6.292, allocations: 0.7066 MB / 1.352 GB, free: 63.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09497/6.387, allocations: 23.27 MB / 1.375 GB, free: 54.96 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01306/6.4, allocations: 5.31 MB / 1.38 GB, free: 53.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01025/6.41, allocations: 2.083 MB / 1.382 GB, free: 53.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007096/6.418, allocations: 3.056 MB / 1.385 GB, free: 50.69 MB / 442.7 MB Notification: Performance of SimCode: time 1.533e-06/6.418, allocations: 0 / 1.385 GB, free: 50.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.4/7.818, allocations: 289.4 MB / 1.668 GB, free: 83.73 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/7.818, allocations: 185.3 kB / 1.668 GB, free: 83.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/18.97, allocations: 0 / 1.668 GB, free: 83.5 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat