Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.209/2.209, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.497e-05/4.503e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1483, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4791/0.6274, allocations: 79.03 MB / 421.7 MB, free: 15.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.6277, allocations: 66.53 kB / 421.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02667/0.6544, allocations: 5.643 MB / 427.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6544, allocations: 0 / 427.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.799e-05/0.6545, allocations: 8 kB / 427.4 MB, free: 10.16 MB / 346.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.001698/0.6562, allocations: 0.6019 MB / 428 MB, free: 9.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.6563, allocations: 12.02 kB / 428 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.6564, allocations: 63.48 kB / 428.1 MB, free: 9.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.6565, allocations: 35.53 kB / 428.1 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.657, allocations: 267.9 kB / 428.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.657, allocations: 24.19 kB / 428.4 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.6572, allocations: 30.78 kB / 428.4 MB, free: 9.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009528/0.6581, allocations: 343.3 kB / 428.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.6582, allocations: 0 / 428.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-05/0.6582, allocations: 20.83 kB / 428.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.6583, allocations: 8 kB / 428.8 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009471/0.6592, allocations: 334.6 kB / 429.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0034/0.6626, allocations: 1.137 MB / 430.2 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007017/0.6634, allocations: 275.4 kB / 430.5 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.6639, allocations: 171.2 kB / 430.7 MB, free: 7.344 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.274e-05/0.664, allocations: 8 kB / 430.7 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.664, allocations: 45.31 kB / 430.7 MB, free: 7.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.346e-06/0.664, allocations: 4 kB / 430.7 MB, free: 7.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004181/0.6682, allocations: 1.41 MB / 432.1 MB, free: 6.066 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.6683, allocations: 63.8 kB / 432.2 MB, free: 5.992 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.6686, allocations: 189.1 kB / 432.4 MB, free: 5.828 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.192e-05/0.6687, allocations: 39.27 kB / 432.4 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.6689, allocations: 149.5 kB / 432.6 MB, free: 5.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.6691, allocations: 154.9 kB / 432.7 MB, free: 5.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.008e-05/0.6691, allocations: 14.31 kB / 432.7 MB, free: 5.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6693, allocations: 341.2 kB / 433.1 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/0.6698, allocations: 173.1 kB / 433.2 MB, free: 5.098 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.6704, allocations: 248.8 kB / 433.5 MB, free: 4.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000407/0.6709, allocations: 135.4 kB / 433.6 MB, free: 4.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.6709, allocations: 0 / 433.6 MB, free: 4.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002276/0.6732, allocations: 0.6219 MB / 434.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.6732, allocations: 11.95 kB / 434.3 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/0.6733, allocations: 8.141 kB / 434.3 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.6744, allocations: 374.2 kB / 434.6 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/0.675, allocations: 70.47 kB / 434.7 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.6767, allocations: 1.311 MB / 436 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000932/0.6776, allocations: 95.25 kB / 436.1 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.386e-05/0.6778, allocations: 27.05 kB / 436.1 MB, free: 2.625 MB / 346.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.0002264/0.678, allocations: 138.4 kB / 436.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.6781, allocations: 31.62 kB / 436.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.6803, allocations: 0.6258 MB / 436.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.6804, allocations: 4 kB / 436.9 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.6804, allocations: 4.062 kB / 436.9 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.6804, allocations: 0 / 436.9 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004163/0.6846, allocations: 1.287 MB / 438.2 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.6846, allocations: 4.031 kB / 438.2 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005526/0.6852, allocations: 59.91 kB / 438.3 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.6862, allocations: 345.3 kB / 438.6 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.12e-05/0.6863, allocations: 19.16 kB / 438.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.6878, allocations: 1.265 MB / 439.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6879, allocations: 0 / 439.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.6905, allocations: 0.8974 MB / 440.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.6908, allocations: 151.2 kB / 440.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.6909, allocations: 21.25 kB / 441 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005698/0.6915, allocations: 50.39 kB / 441 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.6918, allocations: 101.7 kB / 441.1 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.66e-05/0.6919, allocations: 26.53 kB / 441.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.6922, allocations: 159.6 kB / 441.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6922, allocations: 0 / 441.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006742/0.6929, allocations: 106.1 kB / 441.4 MB, free: 14.03 MB / 362.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.003195/0.6961, allocations: 1.823 MB / 443.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001469/0.6976, allocations: 0.489 MB / 443.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.6976, allocations: 4 kB / 443.7 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008399/0.6984, allocations: 267.5 kB / 444 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005878/0.6991, allocations: 43.2 kB / 444 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004035/0.7031, allocations: 0.9439 MB / 445 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.7036, allocations: 0.7842 MB / 445.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002278/0.7038, allocations: 30.97 kB / 445.8 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.704, allocations: 87.03 kB / 445.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.704, allocations: 0 / 445.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04642/0.7504, allocations: 10.01 MB / 455.9 MB, free: 136 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003745/0.7509, allocations: 179 kB / 456 MB, free: 15.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.762, allocations: 4 kB / 456 MB, free: 15.91 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat