Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.556/2.556, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.248e-05, allocations: 4 kB / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 47.58 MB / 317 MB, free: 6.645 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.5495, allocations: 80.68 MB / 397.7 MB, free: 7.414 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.5498, allocations: 72.89 kB / 397.8 MB, free: 7.375 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07327/0.6231, allocations: 13.71 MB / 411.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6232, allocations: 0 / 411.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.403e-05/0.6233, allocations: 16 kB / 411.5 MB, free: 11.27 MB / 330.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.00521/0.6285, allocations: 1.085 MB / 412.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.6286, allocations: 8.031 kB / 412.6 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003482/0.6289, allocations: 77.28 kB / 412.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003343/0.6293, allocations: 79.06 kB / 412.7 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001296/0.6306, allocations: 0.4888 MB / 413.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.791e-05/0.6307, allocations: 27.78 kB / 413.3 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.6309, allocations: 39.22 kB / 413.3 MB, free: 9.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.6334, allocations: 0.8692 MB / 414.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/0.6335, allocations: 3.984 kB / 414.2 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.6337, allocations: 15.69 kB / 414.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.6337, allocations: 15.94 kB / 414.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.6368, allocations: 1.039 MB / 415.2 MB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00935/0.6462, allocations: 2.397 MB / 417.6 MB, free: 6.027 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.648, allocations: 0.6353 MB / 418.3 MB, free: 5.566 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.6494, allocations: 0.4999 MB / 418.8 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.6495, allocations: 11.56 kB / 418.8 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001888/0.6514, allocations: 0.7437 MB / 419.5 MB, free: 4.629 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.869e-06/0.6515, allocations: 0 / 419.5 MB, free: 4.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.01131/0.6628, allocations: 3.325 MB / 422.9 MB, free: 1.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/0.6629, allocations: 89.11 kB / 422.9 MB, free: 1.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.664, allocations: 0.5352 MB / 423.5 MB, free: 1.285 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003525/0.6643, allocations: 48.25 kB / 423.5 MB, free: 1.242 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.6647, allocations: 289.9 kB / 423.8 MB, free: 1.062 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/0.665, allocations: 169.2 kB / 424 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.6651, allocations: 13.19 kB / 424 MB, free: 0.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.6653, allocations: 379.6 kB / 424.4 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.6668, allocations: 0.5108 MB / 424.9 MB, free: 224 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.6683, allocations: 0.5995 MB / 425.5 MB, free: 15.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.6695, allocations: 441.7 kB / 425.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6696, allocations: 3.938 kB / 425.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005641/0.6752, allocations: 1.683 MB / 427.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.6753, allocations: 4 kB / 427.6 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.609e-05/0.6754, allocations: 12 kB / 427.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008875/0.6843, allocations: 4.125 MB / 431.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.6854, allocations: 126.7 kB / 431.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01273/0.6982, allocations: 5.413 MB / 437.3 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003071/0.7013, allocations: 294.5 kB / 437.5 MB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003713/0.7017, allocations: 106.8 kB / 437.7 MB, free: 4.891 MB / 346.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): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000454/0.7022, allocations: 137.5 kB / 437.8 MB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.7025, allocations: 75.09 kB / 437.9 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005144/0.7077, allocations: 1.478 MB / 439.3 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/0.7077, allocations: 4.188 kB / 439.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.7078, allocations: 8 kB / 439.3 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.406e-05/0.7078, allocations: 7.938 kB / 439.4 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008413/0.7162, allocations: 2.519 MB / 441.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.7163, allocations: 0 / 441.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.7174, allocations: 99.45 kB / 442 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009078/0.7265, allocations: 4.156 MB / 446.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/0.7268, allocations: 38.27 kB / 446.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.738, allocations: 5.107 MB / 451.3 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.738, allocations: 4.062 kB / 451.3 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007687/0.7457, allocations: 2.252 MB / 453.5 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.747, allocations: 316 kB / 453.8 MB, free: 5.516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/0.7473, allocations: 20 kB / 453.9 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003121/0.7505, allocations: 311.7 kB / 454.2 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003051/0.7536, allocations: 0.6549 MB / 454.8 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000387/0.754, allocations: 91.97 kB / 454.9 MB, free: 4.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00111/0.7551, allocations: 0.5108 MB / 455.4 MB, free: 3.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7552, allocations: 0 / 455.4 MB, free: 3.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001583/0.7568, allocations: 243.9 kB / 455.7 MB, free: 3.703 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * 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.007951/0.7647, allocations: 3.126 MB / 458.8 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004197/0.769, allocations: 1.335 MB / 460.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/0.7691, allocations: 4 kB / 460.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002627/0.7717, allocations: 0.8272 MB / 460.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/0.7727, allocations: 63.53 kB / 461 MB, free: 14.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009586/0.7823, allocations: 2.003 MB / 463 MB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007221/0.7831, allocations: 0.9377 MB / 463.9 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.7835, allocations: 43.27 kB / 464 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004865/0.784, allocations: 195.4 kB / 464.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.372e-06/0.784, allocations: 0 / 464.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.8911, allocations: 26.21 MB / 490.4 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003204/0.8915, allocations: 186.2 kB / 490.6 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.619/4.51, allocations: 0 / 490.6 MB, free: 0.4922 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat