Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.421e-05, allocations: 0 / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2734, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3991, allocations: 67.86 MB / 331.7 MB, free: 5.758 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3994, allocations: 67.97 kB / 331.8 MB, free: 5.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02628/0.4257, allocations: 5.379 MB / 337.2 MB, free: 300 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4258, allocations: 0 / 337.2 MB, free: 300 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.4258, allocations: 4 kB / 337.2 MB, free: 296 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.001743/0.4276, allocations: 0.6035 MB / 337.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.4276, allocations: 12.03 kB / 337.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.4277, allocations: 62.53 kB / 337.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.4279, allocations: 35.62 kB / 337.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.4284, allocations: 271.5 kB / 338.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.4285, allocations: 20.56 kB / 338.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.4286, allocations: 35.95 kB / 338.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009743/0.4296, allocations: 359.6 kB / 338.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.4296, allocations: 4 kB / 338.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.084e-05/0.4297, allocations: 8 kB / 338.6 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.4297, allocations: 8 kB / 338.6 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.4308, allocations: 377 kB / 338.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.4341, allocations: 1.135 MB / 340.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007345/0.4348, allocations: 279.4 kB / 340.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004863/0.4353, allocations: 186.8 kB / 340.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.4354, allocations: 15.83 kB / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.4355, allocations: 34.56 kB / 340.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.156e-06/0.4355, allocations: 0 / 340.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004979/0.4405, allocations: 1.594 MB / 342.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.4406, allocations: 55.41 kB / 342.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.4409, allocations: 204.9 kB / 342.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.962e-05/0.441, allocations: 49.7 kB / 342.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.4412, allocations: 152.8 kB / 342.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.4414, allocations: 153.9 kB / 342.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.4414, allocations: 12 kB / 342.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4416, allocations: 338.8 kB / 343.1 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.4422, allocations: 197.1 kB / 343.3 MB, free: 9.801 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006306/0.4428, allocations: 275.7 kB / 343.6 MB, free: 9.508 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.4433, allocations: 153.6 kB / 343.7 MB, free: 9.359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.4433, allocations: 3.984 kB / 343.7 MB, free: 9.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002635/0.446, allocations: 0.7747 MB / 344.5 MB, free: 8.566 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.446, allocations: 8 kB / 344.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.446, allocations: 0 / 344.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.4475, allocations: 0.5052 MB / 345 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.4481, allocations: 75.84 kB / 345.1 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.4499, allocations: 1.378 MB / 346.5 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/0.4508, allocations: 92.05 kB / 346.6 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-05/0.4509, allocations: 23.98 kB / 346.6 MB, free: 6.43 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.000219/0.4512, allocations: 137.2 kB / 346.7 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.4513, allocations: 35.58 kB / 346.8 MB, free: 6.254 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.4514, allocations: 51.08 kB / 346.8 MB, free: 6.203 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4515, allocations: 4 kB / 346.8 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.4515, allocations: 0 / 346.8 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.876e-06/0.4515, allocations: 3.984 kB / 346.8 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004817/0.4563, allocations: 1.453 MB / 348.3 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.4564, allocations: 4 kB / 348.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/0.457, allocations: 64.06 kB / 348.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.4583, allocations: 489.3 kB / 348.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.282e-05/0.4585, allocations: 19.97 kB / 348.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001767/0.4602, allocations: 1.323 MB / 350.2 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/0.4603, allocations: 8.109 kB / 350.2 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003166/0.4635, allocations: 1.072 MB / 351.2 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003372/0.4639, allocations: 144.8 kB / 351.4 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.464, allocations: 23.94 kB / 351.4 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005773/0.4646, allocations: 51.95 kB / 351.5 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.465, allocations: 107.7 kB / 351.6 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.371e-05/0.4651, allocations: 27.97 kB / 351.6 MB, free: 1.203 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002682/0.4653, allocations: 165.4 kB / 351.7 MB, free: 1.039 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4653, allocations: 0 / 351.7 MB, free: 1.039 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007233/0.4661, allocations: 104 kB / 351.9 MB, free: 0.9375 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.004024/0.4701, allocations: 2.028 MB / 353.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.4717, allocations: 481.5 kB / 354.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.4718, allocations: 0 / 354.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009354/0.4727, allocations: 268.1 kB / 354.6 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006133/0.4733, allocations: 40.42 kB / 354.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004179/0.4775, allocations: 0.9538 MB / 355.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.4781, allocations: 0.7803 MB / 356.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002501/0.4784, allocations: 34.95 kB / 356.4 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.4786, allocations: 91.39 kB / 356.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.4786, allocations: 0 / 356.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05154/0.5302, allocations: 9.685 MB / 366.2 MB, free: 2.52 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003295/0.5306, allocations: 178.8 kB / 366.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.838/3.369, allocations: 0 / 366.4 MB, free: 2.293 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat