Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.817/2.817, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.758e-05/3.791e-05, allocations: 2.719 kB / 249.7 MB, free: 5.254 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1243, allocations: 44.52 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6286/0.753, allocations: 82.25 MB / 376.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/0.7534, allocations: 72.02 kB / 376.6 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1459/0.8993, allocations: 22.77 MB / 399.4 MB, free: 14.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.68e-06/0.8994, allocations: 3.984 kB / 399.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.455e-05/0.8995, allocations: 19.28 kB / 399.4 MB, free: 14.72 MB / 314.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.007001/0.9065, allocations: 1.265 MB / 400.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.9066, allocations: 7.438 kB / 400.6 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005868/0.9072, allocations: 123 kB / 400.8 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.9084, allocations: 138.7 kB / 400.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.9104, allocations: 0.5273 MB / 401.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009864/0.9114, allocations: 167.5 kB / 401.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006935/0.9122, allocations: 65.16 kB / 401.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004593/0.9168, allocations: 1.087 MB / 402.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003877/0.9207, allocations: 1.024 MB / 403.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.136e-05/0.9209, allocations: 11.34 kB / 403.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.9211, allocations: 7.953 kB / 403.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.9212, allocations: 22.94 kB / 403.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01661/0.9378, allocations: 3.538 MB / 407.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003463/0.9413, allocations: 0.8833 MB / 408.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.9434, allocations: 0.555 MB / 408.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/0.9436, allocations: 25.02 kB / 408.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.996e-05/0.9437, allocations: 51.69 kB / 408.9 MB, free: 9.664 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 6.251e-06/0.9437, allocations: 3.938 kB / 408.9 MB, free: 9.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01819/0.962, allocations: 3.527 MB / 412.4 MB, free: 6.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.9621, allocations: 94.42 kB / 412.5 MB, free: 6.754 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.9632, allocations: 408.1 kB / 412.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000393/0.9636, allocations: 35.77 kB / 412.9 MB, free: 6.395 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/0.964, allocations: 327.1 kB / 413.2 MB, free: 6.148 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009542/0.965, allocations: 470 kB / 413.7 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.9652, allocations: 11.86 kB / 413.7 MB, free: 5.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003341/0.9655, allocations: 387.1 kB / 414.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.9676, allocations: 0.4953 MB / 414.6 MB, free: 5.094 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00231/0.9699, allocations: 0.6145 MB / 415.2 MB, free: 4.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002434/0.9724, allocations: 462.2 kB / 415.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/0.9725, allocations: 3.953 kB / 415.7 MB, free: 4.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00738/0.9799, allocations: 1.557 MB / 417.2 MB, free: 3.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.98, allocations: 8 kB / 417.2 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/0.98, allocations: 4 kB / 417.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003583/0.9836, allocations: 0.7653 MB / 418 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/0.9865, allocations: 260.7 kB / 418.2 MB, free: 2.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005223/0.9917, allocations: 1.996 MB / 420.2 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0037/0.9955, allocations: 179.9 kB / 420.4 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005243/0.9961, allocations: 66.41 kB / 420.5 MB, free: 0.5156 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0006915/0.9968, allocations: 153.2 kB / 420.6 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004596/0.9973, allocations: 94.95 kB / 420.7 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006896/1.004, allocations: 1.66 MB / 422.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.944e-05/1.004, allocations: 19.95 kB / 422.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.835e-05/1.004, allocations: 8 kB / 422.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.222e-05/1.004, allocations: 11.91 kB / 422.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/1.016, allocations: 2.817 MB / 425.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/1.016, allocations: 0 / 425.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003335/1.02, allocations: 263.8 kB / 425.5 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003695/1.023, allocations: 0.7352 MB / 426.2 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003876/1.024, allocations: 35.94 kB / 426.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005128/1.029, allocations: 1.905 MB / 428.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/1.029, allocations: 7.969 kB / 428.2 MB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008644/1.038, allocations: 2.157 MB / 430.3 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/1.039, allocations: 299.8 kB / 430.6 MB, free: 6.156 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004055/1.039, allocations: 16 kB / 430.6 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/1.042, allocations: 195.8 kB / 430.8 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/1.043, allocations: 228.8 kB / 431.1 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/1.044, allocations: 63.94 kB / 431.1 MB, free: 5.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007903/1.044, allocations: 326.9 kB / 431.4 MB, free: 5.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.044, allocations: 0 / 431.4 MB, free: 5.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001869/1.046, allocations: 264 kB / 431.7 MB, free: 5.082 MB / 330.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.009538/1.056, allocations: 3.053 MB / 434.8 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005161/1.061, allocations: 1.342 MB / 436.1 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.061, allocations: 0 / 436.1 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004409/1.066, allocations: 0.742 MB / 436.8 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/1.068, allocations: 110.1 kB / 436.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04703/1.115, allocations: 3.036 MB / 440 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001428/1.117, allocations: 1.047 MB / 441 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001788/1.118, allocations: 131.1 kB / 441.2 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/1.12, allocations: 343.2 kB / 441.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of SimCode: time 1.653e-06/1.12, allocations: 0 / 441.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1539/1.274, allocations: 26.03 MB / 467.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003839/1.274, allocations: 145.1 kB / 467.7 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.913/6.187, allocations: 0 / 467.7 MB, free: 0.9258 MB / 362.7 MB