Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.046/2.046, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.732e-05/3.741e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1228, allocations: 50.42 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5748, allocations: 82.11 MB / 424.7 MB, free: 11.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.5751, allocations: 70.72 kB / 424.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04907/0.6242, allocations: 10.3 MB / 435.1 MB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.6243, allocations: 4 kB / 435.1 MB, free: 3.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.585e-05/0.6243, allocations: 8 kB / 435.1 MB, free: 3 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001614/0.6259, allocations: 0.5877 MB / 435.7 MB, free: 2.391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.626, allocations: 8.031 kB / 435.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.6261, allocations: 75.66 kB / 435.8 MB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004751/0.6266, allocations: 59.44 kB / 435.8 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.6272, allocations: 289.4 kB / 436.1 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.6274, allocations: 91.05 kB / 436.2 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.6275, allocations: 34.88 kB / 436.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009933/0.6285, allocations: 381.5 kB / 436.6 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.6286, allocations: 0 / 436.6 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.076e-05/0.6287, allocations: 14.88 kB / 436.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.6287, allocations: 8 kB / 436.6 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.6298, allocations: 412.6 kB / 437 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002812/0.6327, allocations: 0.8979 MB / 437.9 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.6338, allocations: 348.6 kB / 438.3 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005881/0.6344, allocations: 195.7 kB / 438.5 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.228e-05/0.6345, allocations: 8.438 kB / 438.5 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.534e-05/0.6346, allocations: 38.81 kB / 438.5 MB, free: 96 kB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 6.482e-06/0.6346, allocations: 3.984 kB / 438.5 MB, free: 92 kB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.005077/0.6397, allocations: 1.531 MB / 440.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.6399, allocations: 93.56 kB / 440.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.6403, allocations: 217.4 kB / 440.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.6404, allocations: 32.64 kB / 440.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.6406, allocations: 201.3 kB / 440.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.6408, allocations: 176.1 kB / 440.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.676e-05/0.6409, allocations: 11.31 kB / 440.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.6411, allocations: 329.7 kB / 441.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004895/0.6416, allocations: 167 kB / 441.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005402/0.6421, allocations: 207.5 kB / 441.5 MB, free: 13.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/0.6426, allocations: 162.3 kB / 441.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.6426, allocations: 0 / 441.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001536/0.6442, allocations: 0.5469 MB / 442.2 MB, free: 13.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.6443, allocations: 4 kB / 442.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.6443, allocations: 4 kB / 442.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.6455, allocations: 234.1 kB / 442.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006562/0.6461, allocations: 75 kB / 442.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005779/0.6519, allocations: 2.666 MB / 445.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006322/0.6526, allocations: 34.06 kB / 445.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.504e-05/0.6527, allocations: 25.73 kB / 445.2 MB, free: 10.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * 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: 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001952/0.6529, allocations: 126.5 kB / 445.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.6531, allocations: 39.64 kB / 445.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.6532, allocations: 52.02 kB / 445.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.6532, allocations: 4 kB / 445.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.6532, allocations: 0 / 445.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.6533, allocations: 3.984 kB / 445.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/0.6563, allocations: 1.204 MB / 446.6 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.6564, allocations: 4 kB / 446.6 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00068/0.6571, allocations: 71.06 kB / 446.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.6581, allocations: 223.9 kB / 446.9 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.438e-05/0.6583, allocations: 21.92 kB / 446.9 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005728/0.664, allocations: 2.581 MB / 449.5 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.6641, allocations: 0 / 449.5 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.6663, allocations: 0.8664 MB / 450.4 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003435/0.6667, allocations: 149.1 kB / 450.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.861e-05/0.6668, allocations: 15.25 kB / 450.5 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.6674, allocations: 35.72 kB / 450.6 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/0.6677, allocations: 82.53 kB / 450.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.337e-05/0.6678, allocations: 15.94 kB / 450.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000286/0.6681, allocations: 173.3 kB / 450.8 MB, free: 5.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6681, allocations: 4 kB / 450.8 MB, free: 5.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009917/0.6691, allocations: 155.1 kB / 451 MB, free: 5.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.003274/0.6724, allocations: 1.557 MB / 452.6 MB, free: 4.328 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.6743, allocations: 0.604 MB / 453.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.6744, allocations: 4 kB / 453.2 MB, free: 3.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.6756, allocations: 429.7 kB / 453.6 MB, free: 3.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.6761, allocations: 28.42 kB / 453.6 MB, free: 3.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/0.6788, allocations: 0.7303 MB / 454.3 MB, free: 2.477 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.6794, allocations: 0.8049 MB / 455.1 MB, free: 1.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.6798, allocations: 107.4 kB / 455.3 MB, free: 1.535 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6798, allocations: 0 / 455.3 MB, free: 1.535 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.058/3.738, allocations: 7.018 MB / 462.3 MB, free: 10.52 MB / 378.7 MB