Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 171.2 MB / 183.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.322e-05, allocations: 0 / 225.1 MB, free: 2.137 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2773, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4068, allocations: 70.95 MB / 334.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4072, allocations: 71.97 kB / 334.9 MB, free: 2.676 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07297/0.4802, allocations: 13.33 MB / 348.2 MB, free: 5.309 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4802, allocations: 0 / 348.2 MB, free: 5.309 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.001e-05/0.4803, allocations: 12 kB / 348.2 MB, free: 5.297 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005255/0.4856, allocations: 1.119 MB / 349.3 MB, free: 4.129 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.4856, allocations: 8.031 kB / 349.3 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003884/0.486, allocations: 82.52 kB / 349.4 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003611/0.4864, allocations: 87.06 kB / 349.5 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/0.4882, allocations: 0.5848 MB / 350.1 MB, free: 3.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.823e-05/0.4884, allocations: 28.78 kB / 350.1 MB, free: 3.293 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003379/0.4887, allocations: 47.94 kB / 350.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004023/0.4927, allocations: 1.451 MB / 351.6 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.046e-05/0.4928, allocations: 11.89 kB / 351.6 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.4931, allocations: 35.92 kB / 351.7 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.521e-05/0.4931, allocations: 8 kB / 351.7 MB, free: 1.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00576/0.4989, allocations: 2.154 MB / 353.8 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.5116, allocations: 3.14 MB / 357 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.5146, allocations: 1.028 MB / 358 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002458/0.5171, allocations: 0.8611 MB / 358.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/0.5174, allocations: 4 kB / 358.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003174/0.5205, allocations: 1.127 MB / 360 MB, free: 9.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.718e-06/0.5206, allocations: 0 / 360 MB, free: 9.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01746/0.5381, allocations: 5.727 MB / 365.7 MB, free: 3.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.734e-05/0.5382, allocations: 89.02 kB / 365.8 MB, free: 3.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.541, allocations: 0.7963 MB / 366.6 MB, free: 2.531 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004692/0.5416, allocations: 53.69 kB / 366.6 MB, free: 2.473 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004741/0.542, allocations: 292.3 kB / 366.9 MB, free: 2.184 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005485/0.5426, allocations: 177.9 kB / 367.1 MB, free: 2.008 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002526/0.5429, allocations: 27.92 kB / 367.1 MB, free: 1.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003024/0.5432, allocations: 378.8 kB / 367.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.5469, allocations: 1.044 MB / 368.5 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2502/0.7971, allocations: 1.126 MB / 369.7 MB, free: 93.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/0.8, allocations: 0.9657 MB / 370.6 MB, free: 93.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.8, allocations: 3.344 kB / 370.6 MB, free: 93.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00787/0.8079, allocations: 3.313 MB / 374 MB, free: 93.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.808, allocations: 10.88 kB / 374 MB, free: 93.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.808, allocations: 7.781 kB / 374 MB, free: 93.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02079/0.8288, allocations: 11.42 MB / 385.4 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.8304, allocations: 131.8 kB / 385.5 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01847/0.8488, allocations: 7.101 MB / 392.6 MB, free: 79.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0039/0.8528, allocations: 308.4 kB / 392.9 MB, free: 79.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003443/0.8532, allocations: 108.5 kB / 393 MB, free: 78.94 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004713/0.8537, allocations: 168.7 kB / 393.2 MB, free: 78.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003917/0.8541, allocations: 75.16 kB / 393.3 MB, free: 78.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004021/0.8545, allocations: 102.3 kB / 393.4 MB, free: 78.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.8545, allocations: 4 kB / 393.4 MB, free: 78.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.8545, allocations: 0 / 393.4 MB, free: 78.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.8546, allocations: 3.984 kB / 393.4 MB, free: 78.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/0.8695, allocations: 4.509 MB / 397.9 MB, free: 74.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.8696, allocations: 3.984 kB / 397.9 MB, free: 74.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009378/0.8705, allocations: 91.88 kB / 398 MB, free: 73.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01632/0.8869, allocations: 11.33 MB / 409.3 MB, free: 62.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/0.8872, allocations: 49.64 kB / 409.4 MB, free: 62.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.8987, allocations: 6.81 MB / 416.2 MB, free: 55.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.8987, allocations: 0 / 416.2 MB, free: 55.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009428/0.9081, allocations: 4.3 MB / 420.5 MB, free: 51.15 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001266/0.9095, allocations: 412.1 kB / 420.9 MB, free: 50.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003075/0.9098, allocations: 24 kB / 420.9 MB, free: 50.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002831/0.9126, allocations: 315.7 kB / 421.2 MB, free: 50.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002631/0.9153, allocations: 0.6549 MB / 421.9 MB, free: 49.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002666/0.9156, allocations: 99.95 kB / 422 MB, free: 49.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001099/0.9167, allocations: 0.628 MB / 422.6 MB, free: 49.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.9167, allocations: 0 / 422.6 MB, free: 49.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001181/0.9179, allocations: 220.6 kB / 422.8 MB, free: 48.8 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007484/0.9254, allocations: 6.05 MB / 428.9 MB, free: 42.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002722/0.9282, allocations: 1.663 MB / 430.5 MB, free: 41.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.178e-06/0.9282, allocations: 7.172 kB / 430.5 MB, free: 41.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.93, allocations: 0.9539 MB / 431.5 MB, free: 40.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.9307, allocations: 63.03 kB / 431.5 MB, free: 39.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/0.9389, allocations: 2.15 MB / 433.7 MB, free: 37.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.9394, allocations: 0.9338 MB / 434.6 MB, free: 36.86 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004675/0.9399, allocations: 75.27 kB / 434.7 MB, free: 36.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.9404, allocations: 207.3 kB / 434.9 MB, free: 36.58 MB / 314.7 MB Notification: Performance of SimCode: time 1.623e-06/0.9404, allocations: 0 / 434.9 MB, free: 36.58 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0613/1.002, allocations: 20.5 MB / 455.4 MB, free: 16.13 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.002, allocations: 175.1 kB / 455.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.589/4.591, allocations: 0 / 455.6 MB, free: 15.91 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat