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 2.03/2.03, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.731e-05/3.741e-05, allocations: 3.438 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2764, allocations: 38.76 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1249/0.4014, allocations: 67.85 MB / 331.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.4017, allocations: 63.97 kB / 331.8 MB, free: 5.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0259/0.4277, allocations: 5.377 MB / 337.1 MB, free: 360 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4277, allocations: 0 / 337.1 MB, free: 360 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.4278, allocations: 8 kB / 337.1 MB, free: 352 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.00181/0.4296, allocations: 0.6074 MB / 337.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.4296, allocations: 8.031 kB / 337.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.4298, allocations: 70.47 kB / 337.8 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.4299, allocations: 39.62 kB / 337.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/0.4304, allocations: 271.5 kB / 338.1 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.4305, allocations: 20.56 kB / 338.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4306, allocations: 27.95 kB / 338.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00098/0.4316, allocations: 363.6 kB / 338.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.4317, allocations: 4 kB / 338.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.121e-05/0.4317, allocations: 12 kB / 338.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.4317, allocations: 12 kB / 338.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.4328, allocations: 377 kB / 338.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003401/0.4362, allocations: 1.127 MB / 340.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007198/0.437, allocations: 271.4 kB / 340.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000492/0.4375, allocations: 194.8 kB / 340.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.076e-05/0.4376, allocations: 7.953 kB / 340.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.4376, allocations: 34.5 kB / 340.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.406e-06/0.4377, allocations: 4 kB / 340.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.005076/0.4427, allocations: 1.594 MB / 342.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.4428, allocations: 55.41 kB / 342.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.4432, allocations: 212.9 kB / 342.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.4434, allocations: 37.7 kB / 342.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.4435, allocations: 211.2 kB / 342.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.4437, allocations: 153.9 kB / 342.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.943e-05/0.4438, allocations: 8 kB / 342.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4439, allocations: 338.8 kB / 343.1 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005561/0.4445, allocations: 197.1 kB / 343.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.4452, allocations: 259.8 kB / 343.6 MB, free: 9.523 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.4456, allocations: 173.5 kB / 343.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4457, allocations: 0 / 343.8 MB, free: 9.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002662/0.4483, allocations: 0.7604 MB / 344.5 MB, free: 8.586 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.4484, allocations: 8 kB / 344.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.4484, allocations: 4.062 kB / 344.5 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/0.4499, allocations: 0.5052 MB / 345 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005994/0.4505, allocations: 67.91 kB / 345.1 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.4525, allocations: 1.386 MB / 346.5 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009293/0.4535, allocations: 95.97 kB / 346.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.242e-05/0.4536, allocations: 20 kB / 346.6 MB, free: 6.445 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.0002459/0.4538, allocations: 133.2 kB / 346.7 MB, free: 6.309 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.454, allocations: 35.66 kB / 346.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001623/0.4542, allocations: 47.09 kB / 346.8 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.4542, allocations: 11.98 kB / 346.8 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.4542, allocations: 3.938 kB / 346.8 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.4542, allocations: 3.984 kB / 346.8 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005113/0.4593, allocations: 1.452 MB / 348.3 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.4594, allocations: 4 kB / 348.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005966/0.46, allocations: 63.91 kB / 348.4 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/0.4614, allocations: 485.5 kB / 348.8 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.866e-05/0.4615, allocations: 19.97 kB / 348.8 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.4633, allocations: 1.319 MB / 350.2 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.4633, allocations: 7.984 kB / 350.2 MB, free: 2.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/0.4664, allocations: 1.084 MB / 351.3 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003214/0.4668, allocations: 148.7 kB / 351.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.4669, allocations: 16 kB / 351.4 MB, free: 1.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/0.4675, allocations: 59.89 kB / 351.5 MB, free: 1.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.4679, allocations: 99.83 kB / 351.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.991e-05/0.468, allocations: 31.97 kB / 351.6 MB, free: 1.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002499/0.4682, allocations: 157.4 kB / 351.8 MB, free: 1.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4682, allocations: 0 / 351.8 MB, free: 1.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007082/0.469, allocations: 108 kB / 351.9 MB, free: 0.9492 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.003972/0.4729, allocations: 2.035 MB / 353.9 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.4746, allocations: 477.3 kB / 354.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.4746, allocations: 0 / 354.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008297/0.4755, allocations: 255.8 kB / 354.6 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.4761, allocations: 52.97 kB / 354.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004145/0.4802, allocations: 0.9709 MB / 355.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.4808, allocations: 0.7881 MB / 356.4 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/0.4811, allocations: 91.39 kB / 356.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4811, allocations: 0 / 356.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.787/3.268, allocations: 7.197 MB / 363.7 MB, free: 4.941 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