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 2.248/2.248, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.02e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3376, allocations: 44.49 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.4945, allocations: 82.25 MB / 376.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.4949, allocations: 67.97 kB / 376.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1114/0.6063, allocations: 22.72 MB / 399.3 MB, free: 8.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6064, allocations: 4 kB / 399.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.484e-05/0.6064, allocations: 20 kB / 399.3 MB, free: 8.695 MB / 346.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.005079/0.6115, allocations: 1.27 MB / 400.6 MB, free: 7.379 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.6116, allocations: 12.03 kB / 400.6 MB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009803/0.6126, allocations: 146.5 kB / 400.7 MB, free: 7.223 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.6144, allocations: 0.5296 MB / 401.2 MB, free: 6.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000576/0.615, allocations: 167.1 kB / 401.4 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004235/0.6154, allocations: 67.89 kB / 401.5 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003722/0.6192, allocations: 1.089 MB / 402.6 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003018/0.6223, allocations: 1.013 MB / 403.6 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.666e-05/0.6224, allocations: 7.906 kB / 403.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.6225, allocations: 0 / 403.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.6226, allocations: 27.95 kB / 403.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01187/0.6345, allocations: 3.545 MB / 407.1 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.6369, allocations: 0.8863 MB / 408 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.6384, allocations: 0.5591 MB / 408.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001872/0.6386, allocations: 17.22 kB / 408.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.324e-05/0.6387, allocations: 51.83 kB / 408.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of pre-optimization done (n=135): time 5.109e-06/0.6387, allocations: 0 / 408.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.01536/0.654, allocations: 3.537 MB / 412.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.373e-05/0.6542, allocations: 90.42 kB / 412.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008348/0.655, allocations: 405.3 kB / 412.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000389/0.6554, allocations: 45.69 kB / 412.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003615/0.6558, allocations: 317.5 kB / 413 MB, free: 10.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007453/0.6566, allocations: 481.1 kB / 413.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.6567, allocations: 0 / 413.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.657, allocations: 394.7 kB / 413.9 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/0.6585, allocations: 499.9 kB / 414.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.6602, allocations: 0.6178 MB / 415 MB, free: 8.531 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.6621, allocations: 465.1 kB / 415.5 MB, free: 8.086 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.6622, allocations: 0 / 415.5 MB, free: 8.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006058/0.6682, allocations: 1.556 MB / 417 MB, free: 6.516 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.6683, allocations: 8.188 kB / 417 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.387e-05/0.6684, allocations: 4 kB / 417 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002933/0.6713, allocations: 0.7667 MB / 417.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002268/0.6736, allocations: 251.7 kB / 418 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004266/0.6779, allocations: 2.013 MB / 420 MB, free: 3.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/0.6804, allocations: 175.9 kB / 420.2 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/0.6807, allocations: 63.97 kB / 420.3 MB, free: 3.18 MB / 362.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.0006403/0.6814, allocations: 157 kB / 420.4 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00481/0.6862, allocations: 1.376 MB / 421.8 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003937/0.6866, allocations: 90.97 kB / 421.9 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3256/1.012, allocations: 1.658 MB / 423.6 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.637e-05/1.012, allocations: 13.94 kB / 423.6 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/1.012, allocations: 2.562 kB / 423.6 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.893e-05/1.012, allocations: 11.75 kB / 423.6 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/1.027, allocations: 2.809 MB / 426.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.176e-05/1.027, allocations: 2.156 kB / 426.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/1.03, allocations: 264.2 kB / 426.7 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004047/1.035, allocations: 0.7266 MB / 427.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004237/1.035, allocations: 34.66 kB / 427.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005087/1.04, allocations: 1.918 MB / 429.3 MB, free: 102.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.16e-05/1.04, allocations: 3.562 kB / 429.3 MB, free: 102.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009533/1.05, allocations: 2.161 MB / 431.5 MB, free: 102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001402/1.051, allocations: 298 kB / 431.8 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005046/1.052, allocations: 16.53 kB / 431.8 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003305/1.055, allocations: 197.7 kB / 432 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/1.056, allocations: 233.8 kB / 432.2 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003142/1.057, allocations: 60.5 kB / 432.3 MB, free: 101.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008844/1.058, allocations: 318.5 kB / 432.6 MB, free: 101.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.058, allocations: 3.969 kB / 432.6 MB, free: 101.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00244/1.06, allocations: 274.3 kB / 432.9 MB, free: 101.8 MB / 362.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.009605/1.07, allocations: 3.037 MB / 435.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005207/1.075, allocations: 1.344 MB / 437.2 MB, free: 99.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.075, allocations: 3.781 kB / 437.2 MB, free: 99.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003275/1.078, allocations: 0.7319 MB / 438 MB, free: 99.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/1.08, allocations: 112.1 kB / 438.1 MB, free: 99.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/1.096, allocations: 3.032 MB / 441.1 MB, free: 98.35 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/1.097, allocations: 1.047 MB / 442.2 MB, free: 97.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009831/1.098, allocations: 132.2 kB / 442.3 MB, free: 97.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007682/1.098, allocations: 350.8 kB / 442.6 MB, free: 97.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/1.098, allocations: 0 / 442.6 MB, free: 97.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08575/1.184, allocations: 25.35 MB / 468 MB, free: 79.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002653/1.185, allocations: 144.5 kB / 468.1 MB, free: 79.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.758/4.942, allocations: 4 kB / 468.1 MB, free: 79.53 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