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 2.011/2.011, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.857e-05/2.857e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3216, allocations: 44.49 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.5018, allocations: 72.52 MB / 366.7 MB, free: 9.359 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.5022, allocations: 63.97 kB / 366.8 MB, free: 9.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02773/0.5299, allocations: 5.418 MB / 372.2 MB, free: 3.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.53, allocations: 0 / 372.2 MB, free: 3.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.095e-05/0.53, allocations: 12 kB / 372.2 MB, free: 3.848 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.001708/0.5317, allocations: 0.6035 MB / 372.8 MB, free: 3.199 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.5318, allocations: 8.031 kB / 372.8 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.5319, allocations: 39.53 kB / 372.9 MB, free: 3.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.5324, allocations: 271.4 kB / 373.1 MB, free: 2.848 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.5325, allocations: 12 kB / 373.1 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.5326, allocations: 19.91 kB / 373.2 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009379/0.5335, allocations: 328.9 kB / 373.5 MB, free: 2.496 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008144/0.5344, allocations: 299.6 kB / 373.8 MB, free: 2.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/0.5344, allocations: 15.98 kB / 373.8 MB, free: 2.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.5345, allocations: 0 / 373.8 MB, free: 2.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.5345, allocations: 4 kB / 373.8 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00323/0.5377, allocations: 1.058 MB / 374.8 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006686/0.5384, allocations: 263.1 kB / 375.1 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004177/0.5389, allocations: 176.6 kB / 375.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.86e-05/0.539, allocations: 7.984 kB / 375.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.539, allocations: 38.67 kB / 375.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.865e-06/0.539, allocations: 7.875 kB / 375.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004628/0.5437, allocations: 1.346 MB / 376.7 MB, free: 15.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.5437, allocations: 59.84 kB / 376.7 MB, free: 15.03 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.544, allocations: 178.9 kB / 376.9 MB, free: 14.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.599e-05/0.5441, allocations: 33.7 kB / 376.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.5442, allocations: 211.2 kB / 377.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.5445, allocations: 149.9 kB / 377.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.5445, allocations: 4 kB / 377.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5447, allocations: 330.8 kB / 377.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/0.5452, allocations: 165.1 kB / 377.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.5457, allocations: 239.7 kB / 378 MB, free: 13.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005611/0.5463, allocations: 140.7 kB / 378.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5463, allocations: 0 / 378.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002625/0.5489, allocations: 0.5909 MB / 378.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.549, allocations: 7.938 kB / 378.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.549, allocations: 4 kB / 378.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.5502, allocations: 377.6 kB / 379.1 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/0.5507, allocations: 67.91 kB / 379.2 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/0.5527, allocations: 1.362 MB / 380.5 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008241/0.5535, allocations: 79.98 kB / 380.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.005e-05/0.5536, allocations: 23.98 kB / 380.7 MB, free: 10.98 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0002696/0.5539, allocations: 117.6 kB / 380.8 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001792/0.5557, allocations: 0.4934 MB / 381.3 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.5558, allocations: 35.62 kB / 381.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002288/0.5581, allocations: 0.6015 MB / 381.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.5582, allocations: 4 kB / 381.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5582, allocations: 0 / 381.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.5582, allocations: 0 / 381.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/0.5624, allocations: 1.217 MB / 383.1 MB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-06/0.5624, allocations: 8.109 kB / 383.1 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/0.563, allocations: 59.91 kB / 383.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009977/0.564, allocations: 341.5 kB / 383.5 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.5641, allocations: 19.97 kB / 383.5 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.566, allocations: 1.301 MB / 384.8 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.566, allocations: 0 / 384.8 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.5686, allocations: 0.8774 MB / 385.7 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002843/0.5689, allocations: 148.8 kB / 385.9 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.5691, allocations: 12 kB / 385.9 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.5696, allocations: 49.02 kB / 385.9 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.57, allocations: 103.7 kB / 386 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-05/0.5701, allocations: 23.97 kB / 386 MB, free: 5.348 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001894/0.5703, allocations: 148.5 kB / 386.2 MB, free: 5.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5703, allocations: 0 / 386.2 MB, free: 5.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006639/0.5709, allocations: 88 kB / 386.3 MB, free: 5.113 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.003354/0.5743, allocations: 1.778 MB / 388.1 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.5757, allocations: 497.6 kB / 388.5 MB, free: 2.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5757, allocations: 320 / 388.5 MB, free: 2.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007516/0.5765, allocations: 260 kB / 388.8 MB, free: 2.516 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.5771, allocations: 36.67 kB / 388.8 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.5808, allocations: 0.9311 MB / 389.8 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.5813, allocations: 0.7878 MB / 390.5 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.5816, allocations: 91.41 kB / 390.6 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5816, allocations: 0 / 390.6 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.351, allocations: 7.533 MB / 398.2 MB, free: 9.059 MB / 346.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