Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.901e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.42 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5643, allocations: 82.6 MB / 425.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5647, allocations: 70.39 kB / 425.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0713/0.636, allocations: 13.88 MB / 439.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.636, allocations: 0 / 439.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.409e-05/0.6361, allocations: 12 kB / 439.2 MB, free: 15.29 MB / 362.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.004835/0.641, allocations: 1.091 MB / 440.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.641, allocations: 8.031 kB / 440.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002336/0.6413, allocations: 71.84 kB / 440.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002852/0.6416, allocations: 75.06 kB / 440.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.6428, allocations: 0.4936 MB / 440.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.6428, allocations: 22.91 kB / 440.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.643, allocations: 41.47 kB / 441 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.6454, allocations: 0.8714 MB / 441.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.6455, allocations: 7.062 kB / 441.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.6456, allocations: 18.11 kB / 441.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.6457, allocations: 8 kB / 441.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002895/0.6486, allocations: 1.034 MB / 442.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008599/0.6572, allocations: 2.407 MB / 445.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.659, allocations: 0.6369 MB / 446 MB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.6603, allocations: 0.4991 MB / 446.5 MB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.6605, allocations: 11.98 kB / 446.5 MB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001872/0.6623, allocations: 0.7496 MB / 447.2 MB, free: 8.645 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.948e-06/0.6624, allocations: 0 / 447.2 MB, free: 8.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01022/0.6726, allocations: 3.314 MB / 450.5 MB, free: 5.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.6727, allocations: 85.11 kB / 450.6 MB, free: 5.762 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.6737, allocations: 0.5312 MB / 451.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.674, allocations: 52.31 kB / 451.2 MB, free: 5.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.6743, allocations: 313 kB / 451.5 MB, free: 5.051 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.6746, allocations: 174.1 kB / 451.7 MB, free: 4.906 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.6747, allocations: 14.94 kB / 451.7 MB, free: 4.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.6749, allocations: 329.8 kB / 452 MB, free: 4.578 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.6763, allocations: 0.514 MB / 452.5 MB, free: 4.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.6778, allocations: 0.5941 MB / 453.1 MB, free: 3.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.679, allocations: 458.6 kB / 453.6 MB, free: 3.441 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/0.6791, allocations: 7.953 kB / 453.6 MB, free: 3.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005242/0.6843, allocations: 1.625 MB / 455.2 MB, free: 2.082 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.6844, allocations: 8 kB / 455.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.206e-05/0.6844, allocations: 11.98 kB / 455.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009086/0.6935, allocations: 4.13 MB / 459.4 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.6946, allocations: 119.8 kB / 459.5 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.7066, allocations: 5.4 MB / 464.9 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/0.7096, allocations: 295.8 kB / 465.2 MB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002643/0.7099, allocations: 99.98 kB / 465.3 MB, free: 7.719 MB / 378.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.0004203/0.7103, allocations: 151.3 kB / 465.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002529/0.7106, allocations: 67.25 kB / 465.5 MB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/0.7158, allocations: 1.494 MB / 467 MB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.7159, allocations: 4 kB / 467 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.7159, allocations: 128 / 467 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.7159, allocations: 0 / 467 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008107/0.724, allocations: 2.536 MB / 469.5 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.7241, allocations: 0 / 469.5 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.7252, allocations: 99.97 kB / 469.6 MB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009133/0.7343, allocations: 4.153 MB / 473.8 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002113/0.7346, allocations: 35.97 kB / 473.8 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.7455, allocations: 5.102 MB / 478.9 MB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7455, allocations: 0 / 478.9 MB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007159/0.7527, allocations: 2.267 MB / 481.2 MB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.7538, allocations: 304.2 kB / 481.5 MB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.754, allocations: 24 kB / 481.5 MB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002973/0.757, allocations: 303.7 kB / 481.8 MB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00274/0.7598, allocations: 0.6627 MB / 482.4 MB, free: 6.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/0.76, allocations: 87.97 kB / 482.5 MB, free: 5.949 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001069/0.7611, allocations: 0.5108 MB / 483 MB, free: 5.445 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7611, allocations: 0 / 483 MB, free: 5.445 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001384/0.7625, allocations: 236 kB / 483.3 MB, free: 5.215 MB / 394.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.008056/0.7706, allocations: 3.149 MB / 486.4 MB, free: 2.004 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004135/0.7748, allocations: 1.34 MB / 487.8 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/0.7749, allocations: 4 kB / 487.8 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00237/0.7773, allocations: 0.7714 MB / 488.5 MB, free: 15.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009524/0.7783, allocations: 59.22 kB / 488.6 MB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009928/0.7882, allocations: 2.06 MB / 490.7 MB, free: 13.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007457/0.789, allocations: 0.9339 MB / 491.6 MB, free: 12.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005479/0.7896, allocations: 195.4 kB / 491.8 MB, free: 12.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.532e-06/0.7896, allocations: 4 kB / 491.8 MB, free: 12.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.041/3.831, allocations: 18.46 MB / 0.4983 GB, free: 10.02 MB / 426.7 MB