Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.181/2.181, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.022e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3165, allocations: 44.5 MB / 294.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4502, allocations: 72.51 MB / 366.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.4505, allocations: 63.97 kB / 366.8 MB, free: 9.352 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02685/0.4774, allocations: 5.41 MB / 372.2 MB, free: 3.922 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4775, allocations: 3.938 kB / 372.2 MB, free: 3.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.745e-05/0.4776, allocations: 16 kB / 372.2 MB, free: 3.902 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.001796/0.4794, allocations: 0.5918 MB / 372.8 MB, free: 3.266 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.4794, allocations: 12.03 kB / 372.8 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.4796, allocations: 39.53 kB / 372.9 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.4802, allocations: 275.4 kB / 373.1 MB, free: 2.906 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.4802, allocations: 12 kB / 373.2 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.4803, allocations: 19.91 kB / 373.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009902/0.4813, allocations: 329 kB / 373.5 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008777/0.4822, allocations: 307.6 kB / 373.8 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.4823, allocations: 4 kB / 373.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.24e-05/0.4824, allocations: 0 / 373.8 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.4824, allocations: 8 kB / 373.8 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.4859, allocations: 1.065 MB / 374.9 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.4866, allocations: 267.1 kB / 375.1 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.4871, allocations: 164.6 kB / 375.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.913e-05/0.4872, allocations: 11.92 kB / 375.3 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.4872, allocations: 42.67 kB / 375.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.557e-06/0.4873, allocations: 3.938 kB / 375.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004787/0.4921, allocations: 1.35 MB / 376.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.4921, allocations: 59.84 kB / 376.8 MB, free: 15.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.4924, allocations: 170.9 kB / 376.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.246e-05/0.4925, allocations: 37.69 kB / 377 MB, free: 14.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.4927, allocations: 148.8 kB / 377.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.4929, allocations: 149.8 kB / 377.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.396e-05/0.493, allocations: 0 / 377.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.4932, allocations: 342.8 kB / 377.6 MB, free: 14.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005106/0.4937, allocations: 169 kB / 377.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.4943, allocations: 239.8 kB / 378 MB, free: 13.8 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/0.4949, allocations: 136.8 kB / 378.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.4949, allocations: 4 kB / 378.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004433/0.4994, allocations: 0.5947 MB / 378.7 MB, free: 13.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.4995, allocations: 4.156 kB / 378.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.4995, allocations: 8 kB / 378.7 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/0.5007, allocations: 365.5 kB / 379.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/0.5013, allocations: 75.89 kB / 379.2 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002052/0.5033, allocations: 1.355 MB / 380.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008911/0.5043, allocations: 84.03 kB / 380.6 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-05/0.5044, allocations: 27.98 kB / 380.6 MB, free: 11.08 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.0003049/0.5047, allocations: 124.7 kB / 380.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001941/0.5067, allocations: 0.4895 MB / 381.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.5069, allocations: 31.62 kB / 381.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/0.5092, allocations: 0.6015 MB / 381.9 MB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.5092, allocations: 4 kB / 381.9 MB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.5092, allocations: 0 / 381.9 MB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.5093, allocations: 3.984 kB / 381.9 MB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004327/0.5136, allocations: 1.221 MB / 383.1 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.5137, allocations: 3.953 kB / 383.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005687/0.5142, allocations: 59.91 kB / 383.2 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.5153, allocations: 341.6 kB / 383.5 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.75e-05/0.5154, allocations: 15.97 kB / 383.5 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.5171, allocations: 1.304 MB / 384.8 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.5172, allocations: 0 / 384.8 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.5199, allocations: 0.8774 MB / 385.7 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.5202, allocations: 148.7 kB / 385.8 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.5203, allocations: 8 kB / 385.8 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005386/0.5209, allocations: 47.95 kB / 385.9 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.5212, allocations: 103.7 kB / 386 MB, free: 5.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.5213, allocations: 19.98 kB / 386 MB, free: 5.457 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002069/0.5215, allocations: 144.5 kB / 386.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5215, allocations: 0 / 386.2 MB, free: 5.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007102/0.5222, allocations: 91.98 kB / 386.2 MB, free: 5.223 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.003394/0.5257, allocations: 1.79 MB / 388 MB, free: 3.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.5271, allocations: 0.4897 MB / 388.5 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5271, allocations: 0 / 388.5 MB, free: 2.867 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008329/0.528, allocations: 256.7 kB / 388.8 MB, free: 2.617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.5286, allocations: 36.78 kB / 388.8 MB, free: 2.582 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.5324, allocations: 0.9021 MB / 389.7 MB, free: 1.633 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.5329, allocations: 0.7878 MB / 390.5 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002212/0.5331, allocations: 27.28 kB / 390.5 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.5334, allocations: 91.41 kB / 390.6 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5334, allocations: 0 / 390.6 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.6533, allocations: 9.35 MB / 400 MB, free: 7.355 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002941/0.6537, allocations: 134.3 kB / 400.1 MB, free: 7.164 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.65, allocations: 0 / 400.1 MB, free: 7.164 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat