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 1.99/1.99, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.638e-05/3.644e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 44.51 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4415/0.5473, allocations: 73.18 MB / 373.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.5476, allocations: 69.28 kB / 373.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02738/0.575, allocations: 5.453 MB / 378.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5751, allocations: 1.219 kB / 378.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.5751, allocations: 9.688 kB / 378.7 MB, free: 12.21 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.001812/0.577, allocations: 0.5968 MB / 379.3 MB, free: 11.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.577, allocations: 9.625 kB / 379.3 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.5772, allocations: 65.98 kB / 379.4 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.5773, allocations: 36.75 kB / 379.4 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.5778, allocations: 271.4 kB / 379.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/0.5778, allocations: 22 kB / 379.7 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.578, allocations: 33.41 kB / 379.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.579, allocations: 340.6 kB / 380 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.5791, allocations: 1.031 kB / 380 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.396e-05/0.5791, allocations: 12.59 kB / 380.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.5792, allocations: 8.328 kB / 380.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.5803, allocations: 339.4 kB / 380.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003582/0.5839, allocations: 1.122 MB / 381.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007317/0.5847, allocations: 282.4 kB / 381.8 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/0.5852, allocations: 176.1 kB / 382 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.721e-05/0.5853, allocations: 5.297 kB / 382 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.5853, allocations: 39.62 kB / 382 MB, free: 10.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.967e-06/0.5853, allocations: 1.281 kB / 382 MB, free: 10.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004219/0.5896, allocations: 1.406 MB / 383.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.5897, allocations: 59.69 kB / 383.5 MB, free: 10.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.59, allocations: 186 kB / 383.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.5901, allocations: 48.45 kB / 383.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.5902, allocations: 147.4 kB / 383.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.5904, allocations: 160.3 kB / 384 MB, free: 9.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.448e-05/0.5905, allocations: 8.594 kB / 384 MB, free: 9.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.5906, allocations: 337.4 kB / 384.3 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005943/0.5912, allocations: 177.6 kB / 384.5 MB, free: 9.617 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005647/0.5918, allocations: 247.9 kB / 384.8 MB, free: 9.547 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004419/0.5922, allocations: 141.8 kB / 384.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.5923, allocations: 1.281 kB / 384.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002288/0.5946, allocations: 0.621 MB / 385.5 MB, free: 9.445 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.5946, allocations: 5.5 kB / 385.5 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/0.5947, allocations: 2.75 kB / 385.5 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.5959, allocations: 377.6 kB / 385.9 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005843/0.5965, allocations: 68.75 kB / 386 MB, free: 9.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.5981, allocations: 1.317 MB / 387.3 MB, free: 8.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.5992, allocations: 92.81 kB / 387.4 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.5993, allocations: 27.44 kB / 387.4 MB, free: 8.344 MB / 314.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): 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.0002425/0.5996, allocations: 141.6 kB / 387.5 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.5997, allocations: 33.86 kB / 387.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.6021, allocations: 0.6226 MB / 388.2 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.6021, allocations: 5.219 kB / 388.2 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.6021, allocations: 0 / 388.2 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.6022, allocations: 4.125 kB / 388.2 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004232/0.6064, allocations: 1.291 MB / 389.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.6065, allocations: 3.875 kB / 389.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005404/0.607, allocations: 65.59 kB / 389.6 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009135/0.6079, allocations: 337.9 kB / 389.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.608, allocations: 24.62 kB / 389.9 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.6093, allocations: 1.264 MB / 391.2 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6093, allocations: 0 / 391.2 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.6119, allocations: 0.9002 MB / 392.1 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.6122, allocations: 157.6 kB / 392.2 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.6124, allocations: 18.53 kB / 392.3 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005702/0.613, allocations: 53.19 kB / 392.3 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002955/0.6133, allocations: 102.2 kB / 392.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.51e-05/0.6134, allocations: 23.47 kB / 392.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004248/0.6138, allocations: 164.1 kB / 392.6 MB, free: 22.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6138, allocations: 0 / 392.6 MB, free: 22.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007521/0.6146, allocations: 102.2 kB / 392.7 MB, free: 22.07 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.00322/0.6178, allocations: 1.836 MB / 394.5 MB, free: 20.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.6193, allocations: 0.4966 MB / 395 MB, free: 20.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.6193, allocations: 0 / 395 MB, free: 20.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008029/0.6201, allocations: 265.4 kB / 395.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.6208, allocations: 37.16 kB / 395.3 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.6246, allocations: 0.9398 MB / 396.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.625, allocations: 0.7851 MB / 397 MB, free: 19.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000218/0.6252, allocations: 30 kB / 397.1 MB, free: 19.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.6254, allocations: 85.86 kB / 397.2 MB, free: 19.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6255, allocations: 0 / 397.2 MB, free: 19.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.6635, allocations: 9.999 MB / 407.2 MB, free: 17.69 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.6637, allocations: 179 kB / 407.3 MB, free: 17.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.83/3.493, allocations: 4 kB / 407.3 MB, free: 17.46 MB / 330.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