Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.541e-05/3.572e-05, allocations: 0 / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09562, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4511/0.5468, allocations: 73.17 MB / 373.1 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.5471, allocations: 69.31 kB / 373.2 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0262/0.5733, allocations: 5.453 MB / 378.7 MB, free: 21.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5734, allocations: 0 / 378.7 MB, free: 21.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.5734, allocations: 9.406 kB / 378.7 MB, free: 21.43 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001755/0.5752, allocations: 0.6013 MB / 379.3 MB, free: 21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.5752, allocations: 9.562 kB / 379.3 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.5754, allocations: 64.94 kB / 379.3 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.5755, allocations: 35.91 kB / 379.4 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.576, allocations: 278 kB / 379.6 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.5761, allocations: 18.28 kB / 379.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.5762, allocations: 33.25 kB / 379.7 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009182/0.5771, allocations: 339.1 kB / 380 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.5772, allocations: 5.094 kB / 380 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.096e-05/0.5772, allocations: 8.531 kB / 380 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.5773, allocations: 8.953 kB / 380 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009591/0.5782, allocations: 339.2 kB / 380.4 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003417/0.5817, allocations: 1.124 MB / 381.5 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006868/0.5824, allocations: 277.9 kB / 381.8 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.5829, allocations: 176.7 kB / 381.9 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.318e-05/0.583, allocations: 9.344 kB / 382 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.583, allocations: 39.95 kB / 382 MB, free: 20.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.176e-06/0.583, allocations: 3.938 kB / 382 MB, free: 20.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.003995/0.587, allocations: 1.41 MB / 383.4 MB, free: 19.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.5871, allocations: 61.12 kB / 383.5 MB, free: 19.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.5874, allocations: 187.1 kB / 383.6 MB, free: 19.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.335e-05/0.5875, allocations: 43.41 kB / 383.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.716e-05/0.5876, allocations: 204.1 kB / 383.9 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.5878, allocations: 157.5 kB / 384 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.982e-05/0.5878, allocations: 9.562 kB / 384.1 MB, free: 19.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.352e-05/0.5879, allocations: 332.5 kB / 384.4 MB, free: 18.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.5885, allocations: 172.1 kB / 384.5 MB, free: 18.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.589, allocations: 247 kB / 384.8 MB, free: 18.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004132/0.5894, allocations: 142.2 kB / 384.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.5894, allocations: 5.375 kB / 384.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002318/0.5918, allocations: 0.6065 MB / 385.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.5918, allocations: 10.81 kB / 385.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/0.5919, allocations: 7.906 kB / 385.6 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.593, allocations: 383 kB / 385.9 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.5936, allocations: 69.91 kB / 386 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.5951, allocations: 1.309 MB / 387.3 MB, free: 17.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009513/0.5961, allocations: 96.5 kB / 387.4 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.805e-05/0.5962, allocations: 22.14 kB / 387.4 MB, free: 17.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.5964, allocations: 137.6 kB / 387.6 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.5965, allocations: 30.09 kB / 387.6 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.5987, allocations: 0.6205 MB / 388.2 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.5987, allocations: 6.438 kB / 388.2 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.5987, allocations: 2.25 kB / 388.2 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.5987, allocations: 6.047 kB / 388.2 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004076/0.6028, allocations: 1.297 MB / 389.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.6029, allocations: 1.75 kB / 389.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.6035, allocations: 62.41 kB / 389.6 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009884/0.6045, allocations: 343.7 kB / 389.9 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.433e-05/0.6046, allocations: 20.78 kB / 389.9 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.6058, allocations: 1.266 MB / 391.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.6059, allocations: 4.125 kB / 391.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.6082, allocations: 0.8944 MB / 392.1 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007724/0.609, allocations: 156.3 kB / 392.3 MB, free: 31.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.6092, allocations: 14.94 kB / 392.3 MB, free: 31.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.6098, allocations: 52.12 kB / 392.3 MB, free: 31.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/0.61, allocations: 108.8 kB / 392.4 MB, free: 31.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.25e-05/0.6101, allocations: 22.06 kB / 392.4 MB, free: 31.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002141/0.6104, allocations: 159.1 kB / 392.6 MB, free: 31.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.6104, allocations: 0 / 392.6 MB, free: 31.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006831/0.6111, allocations: 107.7 kB / 392.7 MB, free: 31.23 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003103/0.6142, allocations: 1.835 MB / 394.5 MB, free: 30.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.6156, allocations: 0.4928 MB / 395 MB, free: 29.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.6156, allocations: 3.906 kB / 395 MB, free: 29.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007285/0.6164, allocations: 257 kB / 395.3 MB, free: 29.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000591/0.617, allocations: 42.12 kB / 395.3 MB, free: 29.94 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.6206, allocations: 0.9633 MB / 396.3 MB, free: 29.47 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.6211, allocations: 0.7878 MB / 397.1 MB, free: 28.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.6213, allocations: 84.61 kB / 397.2 MB, free: 28.76 MB / 330.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6213, allocations: 0 / 397.2 MB, free: 28.76 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.825/3.446, allocations: 7.57 MB / 404.7 MB, free: 28.3 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat