Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.142e-05/4.163e-05, allocations: 8 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5035/0.6123, allocations: 82.92 MB / 382.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.6127, allocations: 70.78 kB / 383 MB, free: 12.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1086/0.7213, allocations: 22.88 MB / 405.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.7214, allocations: 0 / 405.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.648e-05/0.7215, allocations: 27.47 kB / 405.9 MB, free: 7.938 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.004603/0.7261, allocations: 1.269 MB / 407.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.7261, allocations: 11.78 kB / 407.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003481/0.7265, allocations: 148.5 kB / 407.3 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007394/0.7272, allocations: 140.3 kB / 407.4 MB, free: 7.004 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.7285, allocations: 0.5296 MB / 408 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004515/0.7289, allocations: 196 kB / 408.2 MB, free: 6.531 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.7292, allocations: 108.4 kB / 408.3 MB, free: 6.523 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/0.732, allocations: 1.136 MB / 409.4 MB, free: 6.227 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-05/0.7321, allocations: 10.69 kB / 409.4 MB, free: 6.223 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001715/0.7323, allocations: 37.12 kB / 409.4 MB, free: 6.223 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.602e-05/0.7323, allocations: 31.2 kB / 409.5 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.7353, allocations: 1.127 MB / 410.6 MB, free: 6.086 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.7458, allocations: 3.704 MB / 414.3 MB, free: 4.207 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.7482, allocations: 0.9201 MB / 415.2 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.7497, allocations: 0.5966 MB / 415.8 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001726/0.7498, allocations: 24.59 kB / 415.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.7499, allocations: 46.78 kB / 415.9 MB, free: 4.043 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.749e-06/0.7499, allocations: 4 kB / 415.9 MB, free: 4.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01064/0.7606, allocations: 3.738 MB / 419.6 MB, free: 2.887 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/0.7607, allocations: 97.86 kB / 419.7 MB, free: 2.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007546/0.7614, allocations: 441.5 kB / 420.2 MB, free: 2.637 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002659/0.7617, allocations: 61.58 kB / 420.2 MB, free: 2.605 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.762, allocations: 325.6 kB / 420.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005221/0.7625, allocations: 489.6 kB / 421 MB, free: 2.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.7627, allocations: 34.2 kB / 421.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.7628, allocations: 395.6 kB / 421.4 MB, free: 1.711 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.7642, allocations: 0.5226 MB / 422 MB, free: 1.684 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.7658, allocations: 0.6367 MB / 422.6 MB, free: 1.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.7671, allocations: 465 kB / 423.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.7671, allocations: 0 / 423.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004692/0.7718, allocations: 1.638 MB / 424.7 MB, free: 1.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.7719, allocations: 11.58 kB / 424.7 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.504e-05/0.772, allocations: 3.75 kB / 424.7 MB, free: 1.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002597/0.7746, allocations: 0.7811 MB / 425.5 MB, free: 1.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/0.7766, allocations: 252.9 kB / 425.7 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.7797, allocations: 1.865 MB / 427.6 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.7822, allocations: 205.5 kB / 427.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002454/0.7825, allocations: 63.55 kB / 427.9 MB, free: 15.77 MB / 330.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.000479/0.783, allocations: 193.3 kB / 428 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.7833, allocations: 88.06 kB / 428.1 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00494/0.7883, allocations: 1.783 MB / 429.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/0.7883, allocations: 11.66 kB / 429.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.7883, allocations: 0 / 429.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.7884, allocations: 7.969 kB / 429.9 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008928/0.7973, allocations: 3.047 MB / 433 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.7974, allocations: 0 / 433 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/0.7998, allocations: 262 kB / 433.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002868/0.8027, allocations: 0.7389 MB / 434 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002915/0.803, allocations: 51.88 kB / 434 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.8067, allocations: 1.8 MB / 435.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.8067, allocations: 0 / 435.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007398/0.8141, allocations: 2.25 MB / 438.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.8154, allocations: 303.7 kB / 438.4 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003683/0.8158, allocations: 44 kB / 438.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002522/0.8183, allocations: 203.8 kB / 438.6 MB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009465/0.8193, allocations: 244.8 kB / 438.9 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/0.8196, allocations: 59.94 kB / 438.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007791/0.8204, allocations: 353.5 kB / 439.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8204, allocations: 0 / 439.3 MB, free: 7.242 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001837/0.8223, allocations: 324 kB / 439.6 MB, free: 6.926 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.008268/0.8306, allocations: 3.155 MB / 442.7 MB, free: 3.719 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004925/0.8355, allocations: 1.399 MB / 444.1 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.8356, allocations: 3.938 kB / 444.1 MB, free: 2.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002958/0.8386, allocations: 0.7594 MB / 444.9 MB, free: 1.535 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.8403, allocations: 134.4 kB / 445 MB, free: 1.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.8566, allocations: 3.133 MB / 448.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008182/0.8575, allocations: 1.047 MB / 449.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001113/0.8586, allocations: 139.2 kB / 449.3 MB, free: 13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009639/0.8596, allocations: 351.2 kB / 449.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/0.8596, allocations: 3.938 kB / 449.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/0.9651, allocations: 26.43 MB / 476.1 MB, free: 2.27 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003567/0.9655, allocations: 185.2 kB / 476.3 MB, free: 2.035 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.813/4.779, allocations: 7.875 kB / 476.3 MB, free: 2.027 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat