Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.245e-05, allocations: 0 / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1268, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.5945, allocations: 83.59 MB / 426.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.5948, allocations: 69.95 kB / 426.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05714/0.652, allocations: 12.02 MB / 438.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.652, allocations: 0 / 438.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.6521, allocations: 12 kB / 438.3 MB, free: 15.89 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002054/0.6541, allocations: 0.703 MB / 439 MB, free: 15.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.6542, allocations: 12.03 kB / 439 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.6543, allocations: 75.09 kB / 439.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005367/0.6549, allocations: 66.61 kB / 439.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006622/0.6556, allocations: 324 kB / 439.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.6558, allocations: 97.23 kB / 439.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.6559, allocations: 49.41 kB / 439.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.6572, allocations: 0.5014 MB / 440.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.6573, allocations: 7.938 kB / 440.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.021e-05/0.6574, allocations: 17 kB / 440.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.6574, allocations: 8 kB / 440.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.6589, allocations: 0.5326 MB / 440.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.6621, allocations: 1.161 MB / 441.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.6634, allocations: 458.8 kB / 442.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000716/0.6642, allocations: 289 kB / 442.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.545e-05/0.6643, allocations: 12.55 kB / 442.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.6643, allocations: 38.31 kB / 442.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.386e-06/0.6643, allocations: 0 / 442.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.005774/0.6701, allocations: 1.984 MB / 444.6 MB, free: 10.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.6702, allocations: 85.89 kB / 444.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.6707, allocations: 248.8 kB / 444.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.584e-05/0.6708, allocations: 48.39 kB / 445 MB, free: 10.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.671, allocations: 208.8 kB / 445.2 MB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.6713, allocations: 237.9 kB / 445.4 MB, free: 9.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/0.6714, allocations: 9.062 kB / 445.4 MB, free: 9.992 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6715, allocations: 336.6 kB / 445.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006803/0.6722, allocations: 240.2 kB / 446 MB, free: 9.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007411/0.673, allocations: 295.2 kB / 446.3 MB, free: 9.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006239/0.6736, allocations: 217.6 kB / 446.5 MB, free: 9.172 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6736, allocations: 4.031 kB / 446.5 MB, free: 9.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002448/0.6761, allocations: 0.7805 MB / 447.3 MB, free: 8.605 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.6761, allocations: 4 kB / 447.3 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.6762, allocations: 3.984 kB / 447.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.6778, allocations: 434.9 kB / 447.7 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007634/0.6786, allocations: 83.5 kB / 447.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.6805, allocations: 1.004 MB / 448.8 MB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000968/0.6815, allocations: 84.61 kB / 448.9 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.6816, allocations: 27.3 kB / 448.9 MB, free: 7.254 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.6819, allocations: 152.9 kB / 449.1 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.6821, allocations: 47.44 kB / 449.1 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002443/0.6845, allocations: 0.8137 MB / 449.9 MB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.6846, allocations: 15.95 kB / 449.9 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.6846, allocations: 4.062 kB / 449.9 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.6846, allocations: 3.984 kB / 449.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004592/0.6892, allocations: 1.633 MB / 451.6 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.6892, allocations: 0 / 451.6 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007558/0.69, allocations: 91.33 kB / 451.7 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001525/0.6916, allocations: 404.1 kB / 452.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.126e-05/0.6917, allocations: 22.67 kB / 452.1 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.6934, allocations: 0.9708 MB / 453.1 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6934, allocations: 0 / 453.1 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.6969, allocations: 1.204 MB / 454.3 MB, free: 2.793 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.6974, allocations: 176.6 kB / 454.4 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.6975, allocations: 23.98 kB / 454.5 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008596/0.6984, allocations: 76 kB / 454.5 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.6987, allocations: 96.36 kB / 454.6 MB, free: 2.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.6989, allocations: 31.97 kB / 454.7 MB, free: 2.379 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003547/0.6992, allocations: 203.1 kB / 454.8 MB, free: 2.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6992, allocations: 4 kB / 454.9 MB, free: 2.176 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007936/0.7, allocations: 155.9 kB / 455 MB, free: 2.023 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004134/0.7042, allocations: 1.937 MB / 456.9 MB, free: 44 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.7063, allocations: 0.6249 MB / 457.6 MB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.7063, allocations: 0 / 457.6 MB, free: 15.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.7075, allocations: 349.8 kB / 457.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.7081, allocations: 48.8 kB / 458 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.7126, allocations: 1.096 MB / 459.1 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.7132, allocations: 0.8368 MB / 459.9 MB, free: 13.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004283/0.7136, allocations: 135.4 kB / 460 MB, free: 12.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.7136, allocations: 0 / 460 MB, free: 12.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.004/3.717, allocations: 8.562 MB / 468.6 MB, free: 4.32 MB / 378.7 MB