Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Translational_Examples_Brake",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.612/2.612, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.492e-05, allocations: 2.75 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4999/0.6135, allocations: 72.5 MB / 366.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.6138, allocations: 68.34 kB / 366.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02955/0.6434, allocations: 5.415 MB / 372.3 MB, free: 26.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.6434, allocations: 0 / 372.3 MB, free: 26.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.6435, allocations: 15.78 kB / 372.3 MB, free: 26.5 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.001897/0.6454, allocations: 0.5961 MB / 372.9 MB, free: 26.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.6454, allocations: 7.594 kB / 372.9 MB, free: 26.08 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.6456, allocations: 45.28 kB / 372.9 MB, free: 26.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.646, allocations: 265.3 kB / 373.2 MB, free: 25.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.6461, allocations: 11.56 kB / 373.2 MB, free: 25.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.6462, allocations: 23.39 kB / 373.2 MB, free: 25.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001037/0.6473, allocations: 334.4 kB / 373.6 MB, free: 25.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008933/0.6482, allocations: 300.5 kB / 373.9 MB, free: 25.78 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.6482, allocations: 11.09 kB / 373.9 MB, free: 25.78 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.604e-05/0.6483, allocations: 0 / 373.9 MB, free: 25.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.6483, allocations: 7.75 kB / 373.9 MB, free: 25.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/0.6519, allocations: 1.054 MB / 374.9 MB, free: 25.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/0.6526, allocations: 271.1 kB / 375.2 MB, free: 25.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004628/0.653, allocations: 167 kB / 375.4 MB, free: 25.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.6532, allocations: 7.578 kB / 375.4 MB, free: 25.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.6532, allocations: 42.38 kB / 375.4 MB, free: 25.26 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.125e-06/0.6532, allocations: 0 / 375.4 MB, free: 25.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.005012/0.6582, allocations: 1.353 MB / 376.8 MB, free: 24.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.6583, allocations: 59.72 kB / 376.8 MB, free: 24.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.6585, allocations: 178.5 kB / 377 MB, free: 24.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.432e-05/0.6586, allocations: 36 kB / 377 MB, free: 24.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.6587, allocations: 144.7 kB / 377.2 MB, free: 24.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.6589, allocations: 153.7 kB / 377.3 MB, free: 24.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.038e-05/0.659, allocations: 3.781 kB / 377.3 MB, free: 24.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.6592, allocations: 337.5 kB / 377.6 MB, free: 23.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004954/0.6597, allocations: 163.2 kB / 377.8 MB, free: 23.99 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005542/0.6603, allocations: 240.9 kB / 378 MB, free: 23.92 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/0.661, allocations: 142 kB / 378.2 MB, free: 23.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.661, allocations: 7.938 kB / 378.2 MB, free: 23.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002608/0.6636, allocations: 0.5968 MB / 378.8 MB, free: 23.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.6637, allocations: 7.938 kB / 378.8 MB, free: 23.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/0.6637, allocations: 11.78 kB / 378.8 MB, free: 23.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.665, allocations: 364.1 kB / 379.2 MB, free: 23.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.6656, allocations: 74.22 kB / 379.2 MB, free: 23.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/0.6678, allocations: 1.36 MB / 380.6 MB, free: 22.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.6689, allocations: 87.77 kB / 380.7 MB, free: 22.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.6691, allocations: 21.5 kB / 380.7 MB, free: 22.71 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0003367/0.6694, allocations: 120.3 kB / 380.8 MB, free: 22.6 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002396/0.6718, allocations: 0.4932 MB / 381.3 MB, free: 22.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/0.6721, allocations: 31.19 kB / 381.3 MB, free: 22.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.676, allocations: 0.5901 MB / 381.9 MB, free: 22.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-05/0.676, allocations: 7.719 kB / 381.9 MB, free: 22.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6761, allocations: 3.938 kB / 381.9 MB, free: 22.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.6761, allocations: 2.766 kB / 381.9 MB, free: 22.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007181/0.6833, allocations: 1.215 MB / 383.2 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.6834, allocations: 3.953 kB / 383.2 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009315/0.6844, allocations: 61.12 kB / 383.2 MB, free: 22.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.686, allocations: 346.2 kB / 383.6 MB, free: 21.97 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.6862, allocations: 14.22 kB / 383.6 MB, free: 21.97 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003083/0.6893, allocations: 1.295 MB / 384.9 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.6893, allocations: 6.453 kB / 384.9 MB, free: 20.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/0.6942, allocations: 0.8782 MB / 385.8 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005518/0.6948, allocations: 148.9 kB / 385.9 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.6951, allocations: 14.53 kB / 385.9 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6962, allocations: 48.88 kB / 386 MB, free: 20.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00057/0.6968, allocations: 101.8 kB / 386.1 MB, free: 20.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.697, allocations: 26.22 kB / 386.1 MB, free: 20.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003496/0.6974, allocations: 142.3 kB / 386.2 MB, free: 20.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.6974, allocations: 0 / 386.2 MB, free: 20.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001629/0.699, allocations: 85.62 kB / 386.3 MB, free: 20.39 MB / 314.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.00603/0.7051, allocations: 1.801 MB / 388.1 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.7076, allocations: 490.8 kB / 388.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.7076, allocations: 3.938 kB / 388.6 MB, free: 19.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.7091, allocations: 259 kB / 388.8 MB, free: 19.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.7102, allocations: 35.73 kB / 388.9 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006257/0.7165, allocations: 0.8994 MB / 389.8 MB, free: 18.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007906/0.7174, allocations: 0.7857 MB / 390.6 MB, free: 17.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004213/0.7178, allocations: 34.78 kB / 390.6 MB, free: 17.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.7182, allocations: 86.66 kB / 390.7 MB, free: 17.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7183, allocations: 0 / 390.7 MB, free: 17.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08218/0.8005, allocations: 9.357 MB / 400 MB, free: 13.03 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003127/0.8008, allocations: 146.3 kB / 400.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.531/4.331, allocations: 0 / 400.2 MB, free: 12.83 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat