Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.163/2.163, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.358e-05, allocations: 4 kB / 292.7 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1329, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4762/0.6092, allocations: 89.11 MB / 432.3 MB, free: 4.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.6095, allocations: 69.77 kB / 432.3 MB, free: 4.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1112/0.7207, allocations: 23.34 MB / 455.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7208, allocations: 0 / 455.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.95e-05/0.7208, allocations: 20 kB / 455.7 MB, free: 0.8906 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.005386/0.7262, allocations: 1.27 MB / 457 MB, free: 15.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.7263, allocations: 12.03 kB / 457 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004969/0.7268, allocations: 147 kB / 457.1 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008938/0.7277, allocations: 142.2 kB / 457.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.7293, allocations: 0.5309 MB / 457.8 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005809/0.7299, allocations: 198.9 kB / 458 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004735/0.7304, allocations: 108.1 kB / 458.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003758/0.7342, allocations: 1.137 MB / 459.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/0.7344, allocations: 11.89 kB / 459.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002009/0.7346, allocations: 39.19 kB / 459.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.39e-05/0.7346, allocations: 28 kB / 459.3 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004012/0.7387, allocations: 1.125 MB / 460.4 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01419/0.7529, allocations: 3.701 MB / 464.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.7559, allocations: 0.925 MB / 465 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001863/0.7578, allocations: 0.5905 MB / 465.6 MB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001957/0.7581, allocations: 25.28 kB / 465.7 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/0.7581, allocations: 51.88 kB / 465.7 MB, free: 7.754 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 5.019e-06/0.7581, allocations: 0 / 465.7 MB, free: 7.754 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01445/0.7726, allocations: 3.735 MB / 469.4 MB, free: 3.953 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.583e-05/0.7727, allocations: 94.41 kB / 469.5 MB, free: 3.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009869/0.7737, allocations: 436.7 kB / 470 MB, free: 3.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000459/0.7742, allocations: 65.69 kB / 470 MB, free: 3.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003756/0.7746, allocations: 313.6 kB / 470.3 MB, free: 3.027 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009544/0.7756, allocations: 0.497 MB / 470.8 MB, free: 2.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.7758, allocations: 28 kB / 470.9 MB, free: 2.496 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003123/0.7761, allocations: 398.7 kB / 471.2 MB, free: 2.098 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/0.7791, allocations: 0.5117 MB / 471.8 MB, free: 1.586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002081/0.7812, allocations: 0.6452 MB / 472.4 MB, free: 0.918 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.7828, allocations: 461.8 kB / 472.9 MB, free: 484 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.7828, allocations: 0 / 472.9 MB, free: 484 kB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005924/0.7888, allocations: 1.642 MB / 474.5 MB, free: 14.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.7889, allocations: 4 kB / 474.5 MB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.217e-05/0.789, allocations: 11.98 kB / 474.5 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004616/0.7936, allocations: 0.7824 MB / 475.3 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/0.7966, allocations: 251.7 kB / 475.5 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005378/0.8021, allocations: 1.868 MB / 477.4 MB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/0.8056, allocations: 211.9 kB / 477.6 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006032/0.8063, allocations: 64.06 kB / 477.7 MB, free: 11.57 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.0007806/0.8071, allocations: 187.9 kB / 477.9 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/0.8077, allocations: 90.97 kB / 478 MB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008852/0.8166, allocations: 1.773 MB / 479.7 MB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/0.8167, allocations: 16 kB / 479.7 MB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.8167, allocations: 0 / 479.7 MB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.972e-05/0.8167, allocations: 11.97 kB / 479.8 MB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01361/0.8304, allocations: 3.029 MB / 482.8 MB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-05/0.8305, allocations: 0 / 482.8 MB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003234/0.8337, allocations: 267.8 kB / 483 MB, free: 6.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004269/0.838, allocations: 0.7312 MB / 483.8 MB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004713/0.8386, allocations: 55.94 kB / 483.8 MB, free: 5.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004685/0.8433, allocations: 1.8 MB / 485.6 MB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.8433, allocations: 0 / 485.6 MB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006877/0.8502, allocations: 2.266 MB / 487.9 MB, free: 1.113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009327/0.8512, allocations: 295.8 kB / 488.2 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.8515, allocations: 43.95 kB / 488.2 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/0.8539, allocations: 215.8 kB / 488.4 MB, free: 0.5508 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007882/0.8547, allocations: 228.8 kB / 488.7 MB, free: 332 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002147/0.855, allocations: 59.94 kB / 488.7 MB, free: 272 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007131/0.8557, allocations: 357.5 kB / 489.1 MB, free: 15.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8557, allocations: 0 / 489.1 MB, free: 15.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001493/0.8572, allocations: 320 kB / 489.4 MB, free: 15.61 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.007329/0.8646, allocations: 3.148 MB / 492.5 MB, free: 12.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004202/0.8688, allocations: 1.414 MB / 493.9 MB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8689, allocations: 0 / 493.9 MB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/0.8714, allocations: 0.76 MB / 494.7 MB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.873, allocations: 137.9 kB / 494.8 MB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.8886, allocations: 3.137 MB / 498 MB, free: 6.879 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007881/0.8894, allocations: 1.051 MB / 499 MB, free: 5.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009854/0.8904, allocations: 131.2 kB / 499.2 MB, free: 5.668 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000859/0.8913, allocations: 347.3 kB / 499.5 MB, free: 5.328 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8913, allocations: 0 / 499.5 MB, free: 5.328 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08606/0.9774, allocations: 26.45 MB / 0.5136 GB, free: 11.06 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003427/0.9778, allocations: 173.8 kB / 0.5138 GB, free: 10.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.855/4.833, allocations: 3.938 kB / 0.5138 GB, free: 10.84 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat