Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.701/1.701, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.635e-05, allocations: 7.438 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2579, allocations: 38.77 MB / 263.9 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.4291, allocations: 70.96 MB / 334.8 MB, free: 2.801 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.4294, allocations: 67.97 kB / 334.9 MB, free: 2.734 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07095/0.5004, allocations: 13.34 MB / 348.2 MB, free: 5.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5004, allocations: 0 / 348.2 MB, free: 5.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.5005, allocations: 12 kB / 348.2 MB, free: 5.336 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.00507/0.5056, allocations: 1.114 MB / 349.3 MB, free: 4.172 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.5056, allocations: 12.03 kB / 349.4 MB, free: 4.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003522/0.506, allocations: 82.52 kB / 349.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/0.5064, allocations: 83.06 kB / 349.5 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.5079, allocations: 0.5847 MB / 350.1 MB, free: 3.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.524e-05/0.508, allocations: 28.78 kB / 350.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002578/0.5083, allocations: 40 kB / 350.2 MB, free: 3.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003661/0.512, allocations: 1.453 MB / 351.6 MB, free: 1.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/0.512, allocations: 7.906 kB / 351.6 MB, free: 1.816 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/0.5123, allocations: 27.98 kB / 351.7 MB, free: 1.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.5123, allocations: 8 kB / 351.7 MB, free: 1.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005255/0.5175, allocations: 2.16 MB / 353.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.5289, allocations: 3.132 MB / 357 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/0.5317, allocations: 1.024 MB / 358 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.5339, allocations: 0.8606 MB / 358.8 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.534, allocations: 16.5 kB / 358.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002673/0.5367, allocations: 1.122 MB / 360 MB, free: 9.336 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.228e-06/0.5367, allocations: 0 / 360 MB, free: 9.336 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.01514/0.5519, allocations: 5.721 MB / 365.7 MB, free: 3.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.552, allocations: 89.02 kB / 365.8 MB, free: 3.402 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.554, allocations: 0.7885 MB / 366.6 MB, free: 2.609 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003777/0.5544, allocations: 57.69 kB / 366.6 MB, free: 2.547 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002948/0.5547, allocations: 318.8 kB / 366.9 MB, free: 2.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003486/0.555, allocations: 169.9 kB / 367.1 MB, free: 2.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.5552, allocations: 16 kB / 367.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5554, allocations: 342.8 kB / 367.5 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/0.5579, allocations: 1.04 MB / 368.5 MB, free: 0.668 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2299/0.7878, allocations: 1.128 MB / 369.6 MB, free: 93.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/0.7907, allocations: 0.966 MB / 370.6 MB, free: 93.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.7908, allocations: 1.406 kB / 370.6 MB, free: 93.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008226/0.799, allocations: 3.273 MB / 373.9 MB, free: 93.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.7991, allocations: 9.688 kB / 373.9 MB, free: 93.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.7991, allocations: 3.188 kB / 373.9 MB, free: 93.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01749/0.8166, allocations: 11.43 MB / 385.3 MB, free: 86.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/0.8178, allocations: 130.5 kB / 385.4 MB, free: 86.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.8304, allocations: 7.111 MB / 392.5 MB, free: 79.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002992/0.8334, allocations: 302.3 kB / 392.8 MB, free: 79.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004201/0.8339, allocations: 113.4 kB / 393 MB, free: 79.08 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.0004208/0.8343, allocations: 152.8 kB / 393.1 MB, free: 78.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.8346, allocations: 80.44 kB / 393.2 MB, free: 78.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003038/0.835, allocations: 102.3 kB / 393.3 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.835, allocations: 8 kB / 393.3 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.835, allocations: 0 / 393.3 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.835, allocations: 7.984 kB / 393.3 MB, free: 78.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.8467, allocations: 4.5 MB / 397.8 MB, free: 74.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.58e-05/0.8468, allocations: 7.547 kB / 397.8 MB, free: 74.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000982/0.8477, allocations: 99.92 kB / 397.9 MB, free: 74.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0168/0.8646, allocations: 11.32 MB / 409.2 MB, free: 62.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002746/0.8649, allocations: 44.73 kB / 409.3 MB, free: 62.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.8764, allocations: 6.813 MB / 416.1 MB, free: 55.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.8765, allocations: 4.031 kB / 416.1 MB, free: 55.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009203/0.8857, allocations: 4.296 MB / 420.4 MB, free: 51.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.887, allocations: 418 kB / 420.8 MB, free: 50.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002847/0.8873, allocations: 28 kB / 420.8 MB, free: 50.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002854/0.8901, allocations: 311.7 kB / 421.1 MB, free: 50.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002518/0.8927, allocations: 0.6588 MB / 421.8 MB, free: 49.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002448/0.8929, allocations: 99.97 kB / 421.9 MB, free: 49.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.894, allocations: 0.628 MB / 422.5 MB, free: 49.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.894, allocations: 4 kB / 422.5 MB, free: 49.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001191/0.8952, allocations: 213.5 kB / 422.7 MB, free: 48.96 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.007394/0.9026, allocations: 6.046 MB / 428.8 MB, free: 42.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.9052, allocations: 1.643 MB / 430.4 MB, free: 41.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.9052, allocations: 4 kB / 430.4 MB, free: 41.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001423/0.9067, allocations: 0.9007 MB / 431.3 MB, free: 40.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007535/0.9075, allocations: 72.03 kB / 431.4 MB, free: 40.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00798/0.9155, allocations: 2.188 MB / 433.6 MB, free: 38.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.916, allocations: 0.9377 MB / 434.5 MB, free: 37.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004598/0.9165, allocations: 207.4 kB / 434.7 MB, free: 36.85 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9165, allocations: 4 kB / 434.7 MB, free: 36.85 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.197/4.114, allocations: 16.85 MB / 451.6 MB, free: 19.99 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat