Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.14/2.14, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.781e-05, allocations: 4 kB / 292.8 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 50.4 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4867/0.6055, allocations: 79.06 MB / 422.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.6058, allocations: 68.64 kB / 422.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.6332, allocations: 5.652 MB / 427.9 MB, free: 9.797 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6332, allocations: 0 / 427.9 MB, free: 9.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.6333, allocations: 4 kB / 427.9 MB, free: 9.793 MB / 346.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.001761/0.635, allocations: 0.5979 MB / 428.5 MB, free: 9.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.6351, allocations: 8.031 kB / 428.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.6353, allocations: 66.53 kB / 428.6 MB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.6354, allocations: 39.53 kB / 428.6 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004528/0.6359, allocations: 261.9 kB / 428.9 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.561e-05/0.6359, allocations: 23.25 kB / 428.9 MB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.636, allocations: 34.03 kB / 429 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000939/0.637, allocations: 343.7 kB / 429.3 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.637, allocations: 0 / 429.3 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.267e-05/0.6371, allocations: 15.33 kB / 429.3 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.6371, allocations: 7.984 kB / 429.3 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000979/0.6381, allocations: 346.7 kB / 429.7 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.6416, allocations: 1.128 MB / 430.8 MB, free: 7.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007553/0.6424, allocations: 275.5 kB / 431 MB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004677/0.6429, allocations: 177.1 kB / 431.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.22e-05/0.643, allocations: 4 kB / 431.2 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.643, allocations: 39.06 kB / 431.3 MB, free: 6.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 3.637e-06/0.643, allocations: 0 / 431.3 MB, free: 6.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004283/0.6473, allocations: 1.415 MB / 432.7 MB, free: 5.703 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.6474, allocations: 59.8 kB / 432.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.6478, allocations: 195.4 kB / 432.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.6479, allocations: 44.39 kB / 433 MB, free: 5.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.648, allocations: 141.3 kB / 433.1 MB, free: 5.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.6482, allocations: 159.7 kB / 433.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/0.6483, allocations: 18.48 kB / 433.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.6485, allocations: 333.1 kB / 433.6 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005101/0.649, allocations: 174 kB / 433.8 MB, free: 4.734 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.6496, allocations: 248.5 kB / 434 MB, free: 4.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004316/0.65, allocations: 138.6 kB / 434.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.65, allocations: 0 / 434.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002307/0.6524, allocations: 0.6182 MB / 434.8 MB, free: 3.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.6524, allocations: 7.953 kB / 434.8 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/0.6525, allocations: 4 kB / 434.8 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.6536, allocations: 385.4 kB / 435.2 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005516/0.6543, allocations: 67.03 kB / 435.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.656, allocations: 1.313 MB / 436.5 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009546/0.657, allocations: 94.23 kB / 436.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.6572, allocations: 27.86 kB / 436.7 MB, free: 2.262 MB / 346.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.0002379/0.6574, allocations: 141.7 kB / 436.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.6575, allocations: 27.62 kB / 436.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002396/0.66, allocations: 0.6268 MB / 437.5 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.66, allocations: 4 kB / 437.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.66, allocations: 0 / 437.5 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.6601, allocations: 3.984 kB / 437.5 MB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004526/0.6646, allocations: 1.278 MB / 438.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.6647, allocations: 4.156 kB / 438.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.6653, allocations: 63.91 kB / 438.8 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00108/0.6664, allocations: 341.2 kB / 439.1 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.6665, allocations: 22.66 kB / 439.2 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/0.6682, allocations: 1.257 MB / 440.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/0.6683, allocations: 4.156 kB / 440.4 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00286/0.6711, allocations: 0.9001 MB / 441.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.6715, allocations: 157.4 kB / 441.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.6717, allocations: 15.56 kB / 441.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.6723, allocations: 54.94 kB / 441.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/0.6726, allocations: 106 kB / 441.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.6727, allocations: 23.84 kB / 441.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002654/0.673, allocations: 162.8 kB / 441.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.2e-07/0.673, allocations: 0 / 441.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007902/0.6738, allocations: 102.1 kB / 441.9 MB, free: 13.67 MB / 362.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.003715/0.6775, allocations: 1.835 MB / 443.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001632/0.6792, allocations: 0.4909 MB / 444.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.6793, allocations: 320 / 444.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009448/0.6802, allocations: 267 kB / 444.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.6809, allocations: 42.73 kB / 444.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.6851, allocations: 0.9351 MB / 445.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.6856, allocations: 0.7881 MB / 446.3 MB, free: 9.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002633/0.6859, allocations: 30.97 kB / 446.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.6862, allocations: 82.91 kB / 446.4 MB, free: 9.672 MB / 362.7 MB Notification: Performance of SimCode: time 1.233e-06/0.6862, allocations: 0 / 446.4 MB, free: 9.672 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06201/0.7482, allocations: 10.01 MB / 456.4 MB, free: 15.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002564/0.7485, allocations: 178.5 kB / 456.6 MB, free: 15.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/3.816, allocations: 3.938 kB / 456.6 MB, free: 15.54 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat