Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.901/1.901, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.42e-05/2.416e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2683, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.394, allocations: 67.19 MB / 325.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.3944, allocations: 63.97 kB / 325.6 MB, free: 10.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03247/0.4268, allocations: 5.339 MB / 330.9 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4269, allocations: 0 / 330.9 MB, free: 5.227 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.847e-05/0.427, allocations: 8 kB / 330.9 MB, free: 5.219 MB / 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.002204/0.4292, allocations: 0.5996 MB / 331.5 MB, free: 4.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/0.4293, allocations: 8.031 kB / 331.5 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.4294, allocations: 31.62 kB / 331.6 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.4301, allocations: 271.5 kB / 331.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.4301, allocations: 12 kB / 331.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.4303, allocations: 20 kB / 331.8 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001423/0.4317, allocations: 372.9 kB / 332.2 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.4329, allocations: 323.6 kB / 332.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.433, allocations: 7.984 kB / 332.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.4331, allocations: 3.938 kB / 332.5 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4331, allocations: 7.938 kB / 332.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.4375, allocations: 1.068 MB / 333.6 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.4384, allocations: 271.3 kB / 333.9 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005967/0.439, allocations: 170.8 kB / 334 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-05/0.4391, allocations: 4 kB / 334.1 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.4391, allocations: 38.55 kB / 334.1 MB, free: 1.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 8.757e-06/0.4392, allocations: 4 kB / 334.1 MB, free: 1.855 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.006863/0.446, allocations: 1.521 MB / 335.6 MB, free: 240 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.4461, allocations: 55.41 kB / 335.7 MB, free: 172 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.4466, allocations: 195.9 kB / 335.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001727/0.4468, allocations: 33.7 kB / 335.9 MB, free: 15.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004048/0.4473, allocations: 215.2 kB / 336.1 MB, free: 15.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007032/0.448, allocations: 149.9 kB / 336.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.4482, allocations: 3.984 kB / 336.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003524/0.4487, allocations: 330.8 kB / 336.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007616/0.4494, allocations: 181.1 kB / 336.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008879/0.4503, allocations: 263.7 kB / 337 MB, free: 14.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.4514, allocations: 160.7 kB / 337.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.4515, allocations: 0 / 337.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004182/0.4557, allocations: 0.7285 MB / 337.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.65e-05/0.4558, allocations: 4 kB / 337.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.588e-05/0.456, allocations: 7.984 kB / 337.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/0.4586, allocations: 0.4935 MB / 338.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007709/0.4595, allocations: 79.83 kB / 338.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.4622, allocations: 1.429 MB / 339.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.4635, allocations: 80.05 kB / 340 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.4636, allocations: 23.98 kB / 340 MB, free: 11.7 MB / 298.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): 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.0003561/0.464, allocations: 125.5 kB / 340.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003398/0.4674, allocations: 0.6502 MB / 340.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.4678, allocations: 31.62 kB / 340.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002479/0.468, allocations: 43.41 kB / 340.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.4681, allocations: 4 kB / 340.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.4681, allocations: 0 / 340.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/0.4681, allocations: 3.984 kB / 340.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008525/0.4767, allocations: 1.375 MB / 342.2 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.31e-05/0.4769, allocations: 0 / 342.2 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.4781, allocations: 63.91 kB / 342.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.48, allocations: 481.5 kB / 342.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.872e-05/0.4802, allocations: 11.98 kB / 342.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.4822, allocations: 1.374 MB / 344.2 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.4822, allocations: 4.031 kB / 344.2 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.4853, allocations: 1.054 MB / 345.2 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.4857, allocations: 156.7 kB / 345.4 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.4858, allocations: 15.95 kB / 345.4 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.4863, allocations: 43.95 kB / 345.4 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003382/0.4867, allocations: 99.72 kB / 345.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.846e-05/0.4868, allocations: 23.98 kB / 345.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002122/0.487, allocations: 148.5 kB / 345.7 MB, free: 5.793 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.487, allocations: 0 / 345.7 MB, free: 5.793 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006723/0.4877, allocations: 88 kB / 345.8 MB, free: 5.707 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.003678/0.4914, allocations: 1.985 MB / 347.8 MB, free: 3.652 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.4929, allocations: 457.9 kB / 348.2 MB, free: 3.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.4929, allocations: 4 kB / 348.2 MB, free: 3.199 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007695/0.4937, allocations: 256.4 kB / 348.5 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.4943, allocations: 32.66 kB / 348.5 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00382/0.4981, allocations: 0.9353 MB / 349.4 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.4987, allocations: 0.7839 MB / 350.2 MB, free: 1.113 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.4989, allocations: 95.39 kB / 350.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of SimCode: time 1.392e-06/0.499, allocations: 0 / 350.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.829/3.328, allocations: 7.169 MB / 357.5 MB, free: 9.848 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat