Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.874e-05/3.889e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.5582, allocations: 89.16 MB / 431.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.5585, allocations: 76.39 kB / 431.9 MB, free: 4.715 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1156/0.6742, allocations: 23.33 MB / 455.2 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6743, allocations: 0 / 455.2 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.049e-05/0.6743, allocations: 20 kB / 455.2 MB, free: 0.7617 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005652/0.68, allocations: 1.272 MB / 456.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.6801, allocations: 8.031 kB / 456.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005641/0.6807, allocations: 150.4 kB / 456.6 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009074/0.6816, allocations: 142.6 kB / 456.8 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.6833, allocations: 0.5288 MB / 457.3 MB, free: 14.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005958/0.6839, allocations: 201.7 kB / 457.5 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004302/0.6843, allocations: 111.3 kB / 457.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003792/0.6882, allocations: 1.141 MB / 458.7 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.06e-05/0.6883, allocations: 3.906 kB / 458.8 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/0.6885, allocations: 43.5 kB / 458.8 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.31e-05/0.6885, allocations: 20 kB / 458.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003923/0.6925, allocations: 1.128 MB / 459.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01307/0.7056, allocations: 3.706 MB / 463.6 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.7085, allocations: 0.9251 MB / 464.6 MB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001871/0.7104, allocations: 0.5905 MB / 465.2 MB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001978/0.7107, allocations: 21.3 kB / 465.2 MB, free: 8.051 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.7107, allocations: 43.88 kB / 465.2 MB, free: 8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 5.43e-06/0.7108, allocations: 4 kB / 465.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01386/0.7246, allocations: 3.735 MB / 469 MB, free: 4.195 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.254e-05/0.7248, allocations: 94.42 kB / 469.1 MB, free: 4.082 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009658/0.7257, allocations: 444.7 kB / 469.5 MB, free: 3.645 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004243/0.7262, allocations: 65.69 kB / 469.6 MB, free: 3.574 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.7265, allocations: 352 kB / 469.9 MB, free: 3.227 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000871/0.7274, allocations: 0.4931 MB / 470.4 MB, free: 2.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/0.7276, allocations: 27.98 kB / 470.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.7279, allocations: 362.8 kB / 470.8 MB, free: 2.336 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.7296, allocations: 0.5156 MB / 471.3 MB, free: 1.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002118/0.7318, allocations: 0.649 MB / 471.9 MB, free: 1.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001737/0.7336, allocations: 457.8 kB / 472.4 MB, free: 0.707 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/0.7336, allocations: 0 / 472.4 MB, free: 0.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006061/0.7397, allocations: 1.615 MB / 474 MB, free: 15.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.7398, allocations: 4 kB / 474 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.313e-05/0.7399, allocations: 4 kB / 474 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003038/0.7429, allocations: 0.7825 MB / 474.8 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.7453, allocations: 255.7 kB / 475 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003746/0.7491, allocations: 1.872 MB / 476.9 MB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.7519, allocations: 207.9 kB / 477.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000588/0.7525, allocations: 63.97 kB / 477.2 MB, free: 11.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007386/0.7533, allocations: 186.3 kB / 477.4 MB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005545/0.7538, allocations: 86.97 kB / 477.4 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008541/0.7624, allocations: 1.781 MB / 479.2 MB, free: 9.754 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.921e-05/0.7625, allocations: 16 kB / 479.2 MB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.7625, allocations: 0 / 479.2 MB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.992e-05/0.7626, allocations: 4.078 kB / 479.2 MB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.7741, allocations: 3.037 MB / 482.3 MB, free: 6.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.7741, allocations: 4 kB / 482.3 MB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002499/0.7766, allocations: 263.8 kB / 482.5 MB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002932/0.7796, allocations: 0.735 MB / 483.3 MB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003772/0.7801, allocations: 51.94 kB / 483.3 MB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.7837, allocations: 1.792 MB / 485.1 MB, free: 3.711 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.7837, allocations: 7.969 kB / 485.1 MB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007218/0.791, allocations: 2.258 MB / 487.4 MB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/0.7922, allocations: 295.8 kB / 487.7 MB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004079/0.7926, allocations: 43.95 kB / 487.7 MB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002542/0.7952, allocations: 219.8 kB / 487.9 MB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009565/0.7962, allocations: 224.9 kB / 488.2 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/0.7965, allocations: 63.94 kB / 488.2 MB, free: 0.5352 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007561/0.7972, allocations: 353.5 kB / 488.6 MB, free: 196 kB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7972, allocations: 3.938 kB / 488.6 MB, free: 192 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001728/0.799, allocations: 328 kB / 488.9 MB, free: 15.87 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.008099/0.8071, allocations: 3.152 MB / 492 MB, free: 12.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004906/0.8121, allocations: 1.399 MB / 493.4 MB, free: 11.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/0.8122, allocations: 8.375 kB / 493.4 MB, free: 11.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00282/0.815, allocations: 0.7438 MB / 494.2 MB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/0.8167, allocations: 142.2 kB / 494.3 MB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.8328, allocations: 3.185 MB / 497.5 MB, free: 7.102 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008653/0.8337, allocations: 1.047 MB / 498.6 MB, free: 6.027 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.8348, allocations: 359.3 kB / 498.9 MB, free: 5.676 MB / 410.7 MB Notification: Performance of SimCode: time 1.193e-06/0.8348, allocations: 0 / 498.9 MB, free: 5.676 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.405/4.24, allocations: 22.6 MB / 0.5093 GB, free: 15.06 MB / 442.7 MB