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.056/2.056, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.127e-05/4.145e-05, allocations: 4 kB / 255.4 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5376, allocations: 73.17 MB / 373.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.5379, allocations: 68.91 kB / 373.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0345/0.5725, allocations: 5.454 MB / 378.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5725, allocations: 0 / 378.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.575e-05/0.5726, allocations: 9.906 kB / 378.7 MB, free: 11.88 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.001672/0.5743, allocations: 0.595 MB / 379.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.5743, allocations: 9.844 kB / 379.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000109/0.5745, allocations: 63.28 kB / 379.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.5746, allocations: 36.59 kB / 379.4 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004243/0.575, allocations: 273.3 kB / 379.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.716e-05/0.5751, allocations: 23.91 kB / 379.7 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.5752, allocations: 32.72 kB / 379.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009449/0.5762, allocations: 343.4 kB / 380 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.5762, allocations: 2.906 kB / 380 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.956e-05/0.5763, allocations: 10.66 kB / 380 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.5763, allocations: 6.812 kB / 380 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000989/0.5773, allocations: 344.7 kB / 380.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.5807, allocations: 1.133 MB / 381.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.5814, allocations: 279 kB / 381.8 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.5819, allocations: 174.6 kB / 382 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.409e-05/0.582, allocations: 6.531 kB / 382 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.5821, allocations: 37.33 kB / 382 MB, free: 10.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.196e-06/0.5821, allocations: 3.938 kB / 382 MB, free: 10.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.004055/0.5861, allocations: 1.417 MB / 383.4 MB, free: 9.992 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.5862, allocations: 56.16 kB / 383.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.5865, allocations: 191.4 kB / 383.7 MB, free: 9.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.779e-05/0.5866, allocations: 43.31 kB / 383.7 MB, free: 9.789 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.5867, allocations: 147.7 kB / 383.8 MB, free: 9.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.5869, allocations: 156.6 kB / 384 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.587, allocations: 8.875 kB / 384 MB, free: 9.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.397e-05/0.5871, allocations: 339.8 kB / 384.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005005/0.5876, allocations: 170.6 kB / 384.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005308/0.5881, allocations: 257.8 kB / 384.8 MB, free: 9.203 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.5885, allocations: 139.8 kB / 384.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.5885, allocations: 1.25 kB / 384.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002296/0.5908, allocations: 0.6247 MB / 385.5 MB, free: 9.102 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.5909, allocations: 5.5 kB / 385.5 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.5909, allocations: 4.281 kB / 385.5 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.5921, allocations: 376.6 kB / 385.9 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.5926, allocations: 75.09 kB / 386 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.5941, allocations: 1.312 MB / 387.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008875/0.595, allocations: 93.25 kB / 387.4 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.5951, allocations: 23.78 kB / 387.4 MB, free: 8.008 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.0002266/0.5954, allocations: 143 kB / 387.5 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.5955, allocations: 33.16 kB / 387.6 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.5977, allocations: 0.6211 MB / 388.2 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.5978, allocations: 8 kB / 388.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.5978, allocations: 1.375 kB / 388.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5978, allocations: 3.094 kB / 388.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.6019, allocations: 1.297 MB / 389.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6019, allocations: 8.062 kB / 389.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005392/0.6025, allocations: 62.72 kB / 389.6 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009528/0.6034, allocations: 342 kB / 389.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.6035, allocations: 21.77 kB / 389.9 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.605, allocations: 1.269 MB / 391.2 MB, free: 22.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.605, allocations: 3.938 kB / 391.2 MB, free: 22.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.6075, allocations: 0.8965 MB / 392.1 MB, free: 21.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.6078, allocations: 154.3 kB / 392.2 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.6079, allocations: 13.34 kB / 392.3 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005287/0.6085, allocations: 55.36 kB / 392.3 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.6088, allocations: 97.98 kB / 392.4 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.237e-05/0.6089, allocations: 30.89 kB / 392.4 MB, free: 21.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000212/0.6091, allocations: 155.2 kB / 392.6 MB, free: 21.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6091, allocations: 0 / 392.6 MB, free: 21.74 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006619/0.6098, allocations: 106.6 kB / 392.7 MB, free: 21.73 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.003081/0.6129, allocations: 1.833 MB / 394.5 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00138/0.6143, allocations: 0.5047 MB / 395 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6143, allocations: 4 kB / 395 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007997/0.6152, allocations: 263.7 kB / 395.3 MB, free: 20.44 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.6158, allocations: 42.16 kB / 395.3 MB, free: 20.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.6195, allocations: 0.9494 MB / 396.3 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.6199, allocations: 0.783 MB / 397.1 MB, free: 19.28 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.6201, allocations: 31.97 kB / 397.1 MB, free: 19.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.6203, allocations: 85.64 kB / 397.2 MB, free: 19.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.573e-06/0.6204, allocations: 0 / 397.2 MB, free: 19.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04474/0.6651, allocations: 10.01 MB / 407.2 MB, free: 17.36 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003679/0.6656, allocations: 184.2 kB / 407.4 MB, free: 17.13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.861/3.527, allocations: 4 kB / 407.4 MB, free: 17.13 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