Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.777/1.777, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.043e-05, allocations: 4 kB / 225.1 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2839, allocations: 38.76 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.4208, allocations: 67.84 MB / 331.7 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.4211, allocations: 71.97 kB / 331.8 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02558/0.4467, allocations: 5.382 MB / 337.1 MB, free: 428 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4468, allocations: 0 / 337.1 MB, free: 428 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.4468, allocations: 4 kB / 337.1 MB, free: 424 kB / 282.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.001738/0.4486, allocations: 0.6074 MB / 337.8 MB, free: 15.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.4486, allocations: 12.03 kB / 337.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.4487, allocations: 62.53 kB / 337.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.4489, allocations: 31.62 kB / 337.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.4494, allocations: 271.5 kB / 338.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.4494, allocations: 20.5 kB / 338.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.4496, allocations: 39.95 kB / 338.2 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.4506, allocations: 364.8 kB / 338.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.4506, allocations: 0 / 338.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.4507, allocations: 12 kB / 338.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.4507, allocations: 4 kB / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.4519, allocations: 382.1 kB / 338.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.4552, allocations: 1.135 MB / 340.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007574/0.456, allocations: 280.7 kB / 340.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005142/0.4565, allocations: 188.8 kB / 340.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.259e-05/0.4566, allocations: 7.953 kB / 340.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.4567, allocations: 39.22 kB / 340.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.575e-06/0.4567, allocations: 0 / 340.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.005013/0.4617, allocations: 1.598 MB / 342.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.4618, allocations: 55.41 kB / 342.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003512/0.4622, allocations: 208.9 kB / 342.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.012e-05/0.4623, allocations: 45.7 kB / 342.5 MB, free: 10.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.4624, allocations: 148.8 kB / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/0.4627, allocations: 153.9 kB / 342.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/0.4627, allocations: 8 kB / 342.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.4629, allocations: 342.8 kB / 343.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005718/0.4635, allocations: 193.1 kB / 343.3 MB, free: 9.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006534/0.4642, allocations: 288.7 kB / 343.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.4646, allocations: 153.6 kB / 343.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4647, allocations: 7.938 kB / 343.7 MB, free: 9.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002675/0.4673, allocations: 0.7785 MB / 344.5 MB, free: 8.664 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.4674, allocations: 4 kB / 344.5 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.4674, allocations: 4 kB / 344.5 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.4689, allocations: 0.4974 MB / 345 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005778/0.4695, allocations: 79.84 kB / 345.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/0.4714, allocations: 1.386 MB / 346.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008669/0.4723, allocations: 92.05 kB / 346.6 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.4724, allocations: 23.98 kB / 346.6 MB, free: 6.523 MB / 298.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): 47 * 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 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002103/0.4726, allocations: 133.3 kB / 346.7 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.4727, allocations: 35.58 kB / 346.8 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.4729, allocations: 47.08 kB / 346.8 MB, free: 6.305 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.4729, allocations: 4 kB / 346.8 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.473, allocations: 0 / 346.8 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.473, allocations: 7.984 kB / 346.8 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004829/0.4778, allocations: 1.452 MB / 348.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.4779, allocations: 4 kB / 348.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006029/0.4785, allocations: 64.06 kB / 348.3 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.4799, allocations: 493.2 kB / 348.8 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.043e-05/0.48, allocations: 19.97 kB / 348.8 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/0.4818, allocations: 1.323 MB / 350.2 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/0.4818, allocations: 8.109 kB / 350.2 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.4851, allocations: 1.076 MB / 351.2 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003287/0.4855, allocations: 148.8 kB / 351.4 MB, free: 1.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.4856, allocations: 16 kB / 351.4 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005665/0.4862, allocations: 51.95 kB / 351.5 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/0.4865, allocations: 111.7 kB / 351.6 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.94e-05/0.4866, allocations: 23.97 kB / 351.6 MB, free: 1.297 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002414/0.4869, allocations: 165.4 kB / 351.7 MB, free: 1.133 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4869, allocations: 0 / 351.7 MB, free: 1.133 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006393/0.4876, allocations: 104 kB / 351.8 MB, free: 1.031 MB / 298.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.003786/0.4914, allocations: 2.029 MB / 353.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.4929, allocations: 482.3 kB / 354.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4929, allocations: 320 / 354.3 MB, free: 14.47 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.4938, allocations: 271.8 kB / 354.6 MB, free: 14.2 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005819/0.4944, allocations: 46.22 kB / 354.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.4982, allocations: 0.9554 MB / 355.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.4987, allocations: 0.7803 MB / 356.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002294/0.4989, allocations: 34.95 kB / 356.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.4992, allocations: 95.39 kB / 356.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4992, allocations: 0 / 356.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04171/0.5409, allocations: 9.708 MB / 366.2 MB, free: 2.574 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003442/0.5413, allocations: 180 kB / 366.4 MB, free: 2.348 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.867/3.408, allocations: 0 / 366.4 MB, free: 2.348 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat