Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.949e-05/3.97e-05, allocations: 0 / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3433, allocations: 38.76 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1754/0.5187, allocations: 77.78 MB / 341.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.5191, allocations: 75.95 kB / 341.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1453/0.6644, allocations: 22.98 MB / 364.7 MB, free: 4.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6645, allocations: 0 / 364.7 MB, free: 4.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.019e-05/0.6645, allocations: 24 kB / 364.7 MB, free: 4.656 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.005911/0.6705, allocations: 1.282 MB / 366 MB, free: 3.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.6705, allocations: 12.03 kB / 366 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005469/0.6711, allocations: 144 kB / 366.2 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000847/0.672, allocations: 146.5 kB / 366.3 MB, free: 3.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.6736, allocations: 0.5451 MB / 366.8 MB, free: 2.434 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005569/0.6742, allocations: 199.1 kB / 367 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003998/0.6747, allocations: 103.9 kB / 367.1 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00356/0.6782, allocations: 1.169 MB / 368.3 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.421e-05/0.6784, allocations: 7.906 kB / 368.3 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/0.6786, allocations: 40 kB / 368.4 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.021e-05/0.6786, allocations: 24 kB / 368.4 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2351/0.9137, allocations: 1.194 MB / 369.6 MB, free: 85.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.9273, allocations: 3.702 MB / 373.3 MB, free: 84.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.9304, allocations: 0.9532 MB / 374.2 MB, free: 84.24 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/0.9321, allocations: 0.6005 MB / 374.8 MB, free: 84.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.9322, allocations: 18.08 kB / 374.8 MB, free: 84.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.9323, allocations: 45.25 kB / 374.9 MB, free: 84.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.529e-06/0.9323, allocations: 0 / 374.9 MB, free: 84.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01101/0.9433, allocations: 3.84 MB / 378.7 MB, free: 83.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.9434, allocations: 93.33 kB / 378.8 MB, free: 83.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008358/0.9443, allocations: 478.8 kB / 379.3 MB, free: 82.87 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002406/0.9445, allocations: 61.3 kB / 379.3 MB, free: 82.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.9448, allocations: 341.9 kB / 379.7 MB, free: 82.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005122/0.9453, allocations: 484.8 kB / 380.2 MB, free: 82.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.9455, allocations: 29.09 kB / 380.2 MB, free: 82.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9456, allocations: 395.3 kB / 380.6 MB, free: 81.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.9471, allocations: 0.5553 MB / 381.1 MB, free: 81.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.9487, allocations: 0.6716 MB / 381.8 MB, free: 81.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.95, allocations: 0.4911 MB / 382.3 MB, free: 81.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.95, allocations: 0 / 382.3 MB, free: 81.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005198/0.9552, allocations: 1.872 MB / 384.2 MB, free: 80.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.9553, allocations: 7.656 kB / 384.2 MB, free: 80.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.9553, allocations: 3.953 kB / 384.2 MB, free: 80.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002888/0.9582, allocations: 0.9787 MB / 385.1 MB, free: 80.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002044/0.9603, allocations: 263.4 kB / 385.4 MB, free: 80.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.9634, allocations: 1.968 MB / 387.4 MB, free: 78.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/0.9658, allocations: 217.2 kB / 387.6 MB, free: 78.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/0.966, allocations: 61.92 kB / 387.6 MB, free: 78.86 MB / 314.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 (bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004036/0.9664, allocations: 190.7 kB / 387.8 MB, free: 78.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.9667, allocations: 90 kB / 387.9 MB, free: 78.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.967, allocations: 132.9 kB / 388.1 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.9671, allocations: 13.66 kB / 388.1 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.9671, allocations: 5.406 kB / 388.1 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.9671, allocations: 10.59 kB / 388.1 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007874/0.975, allocations: 3.173 MB / 391.3 MB, free: 76.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.9751, allocations: 3.281 kB / 391.3 MB, free: 76.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/0.9773, allocations: 255.7 kB / 391.5 MB, free: 76.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002709/0.98, allocations: 0.936 MB / 392.4 MB, free: 75.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000249/0.9803, allocations: 46.62 kB / 392.5 MB, free: 75.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.9833, allocations: 1.912 MB / 394.4 MB, free: 73.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.9833, allocations: 0 / 394.4 MB, free: 73.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006816/0.9901, allocations: 2.463 MB / 396.9 MB, free: 71.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009374/0.9911, allocations: 300.8 kB / 397.2 MB, free: 71.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000341/0.9915, allocations: 44 kB / 397.2 MB, free: 71.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/0.9938, allocations: 210.6 kB / 397.4 MB, free: 70.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007597/0.9946, allocations: 230.6 kB / 397.6 MB, free: 70.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.9948, allocations: 64.94 kB / 397.7 MB, free: 70.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006867/0.9955, allocations: 371.6 kB / 398.1 MB, free: 70.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.9955, allocations: 0 / 398.1 MB, free: 70.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0016/0.9971, allocations: 339 kB / 398.4 MB, free: 70.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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.007354/1.005, allocations: 3.258 MB / 401.6 MB, free: 67.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004026/1.009, allocations: 1.324 MB / 403 MB, free: 65.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.009, allocations: 384 / 403 MB, free: 65.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/1.011, allocations: 0.7527 MB / 403.7 MB, free: 65.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/1.013, allocations: 132.5 kB / 403.9 MB, free: 64.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/1.027, allocations: 3.129 MB / 407 MB, free: 62.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/1.028, allocations: 1.047 MB / 408 MB, free: 61.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001095/1.029, allocations: 140.3 kB / 408.2 MB, free: 61.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008583/1.03, allocations: 346.2 kB / 408.5 MB, free: 60.92 MB / 314.7 MB Notification: Performance of SimCode: time 1.283e-06/1.03, allocations: 0 / 408.5 MB, free: 60.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0718/1.102, allocations: 26.15 MB / 434.7 MB, free: 35.88 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/1.102, allocations: 176.9 kB / 434.8 MB, free: 35.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.733/4.835, allocations: 0 / 434.8 MB, free: 35.66 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat