Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.269/2.269, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.41e-05, allocations: 6.031 kB / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 50.41 MB / 342.6 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5255/0.6294, allocations: 89.1 MB / 431.7 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003684/0.6298, allocations: 73.33 kB / 431.8 MB, free: 4.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1812/0.8111, allocations: 23.33 MB / 455.1 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.8111, allocations: 3.938 kB / 455.2 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001693/0.8113, allocations: 20 kB / 455.2 MB, free: 0.832 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.007589/0.8189, allocations: 1.268 MB / 456.4 MB, free: 15.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.819, allocations: 12.02 kB / 456.5 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006852/0.8197, allocations: 147 kB / 456.6 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001343/0.8211, allocations: 138.6 kB / 456.7 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.8234, allocations: 0.5373 MB / 457.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008975/0.8244, allocations: 197.1 kB / 457.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007307/0.8252, allocations: 111.9 kB / 457.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005656/0.8309, allocations: 1.138 MB / 458.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001366/0.8311, allocations: 11.88 kB / 458.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003449/0.8314, allocations: 43.69 kB / 458.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-05/0.8315, allocations: 20 kB / 458.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005665/0.8372, allocations: 1.126 MB / 459.9 MB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01434/0.8516, allocations: 3.695 MB / 463.6 MB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/0.8547, allocations: 0.929 MB / 464.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/0.8569, allocations: 0.5945 MB / 465.1 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002468/0.8572, allocations: 21.28 kB / 465.1 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.082e-05/0.8573, allocations: 51.88 kB / 465.2 MB, free: 7.719 MB / 378.7 MB Notification: Performance of pre-optimization done (n=135): time 7.054e-06/0.8573, allocations: 0 / 465.2 MB, free: 7.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01881/0.8761, allocations: 3.74 MB / 468.9 MB, free: 3.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.8763, allocations: 98.41 kB / 469 MB, free: 3.797 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.8776, allocations: 436.7 kB / 469.5 MB, free: 3.363 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004591/0.8781, allocations: 69.69 kB / 469.5 MB, free: 3.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004765/0.8786, allocations: 317.5 kB / 469.8 MB, free: 2.973 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009889/0.8796, allocations: 0.4892 MB / 470.3 MB, free: 2.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.8799, allocations: 28 kB / 470.4 MB, free: 2.449 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003251/0.8802, allocations: 394.7 kB / 470.7 MB, free: 2.055 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002489/0.8827, allocations: 0.5156 MB / 471.3 MB, free: 1.539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002556/0.8853, allocations: 0.6413 MB / 471.9 MB, free: 0.875 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/0.8873, allocations: 465.7 kB / 472.4 MB, free: 436 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.8874, allocations: 0 / 472.4 MB, free: 436 kB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.008392/0.8958, allocations: 1.638 MB / 474 MB, free: 14.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.8959, allocations: 4 kB / 474 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.452e-05/0.896, allocations: 7.984 kB / 474 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004058/0.9, allocations: 0.7785 MB / 474.8 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/0.903, allocations: 255.7 kB / 475 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005204/0.9082, allocations: 1.869 MB / 476.9 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/0.9117, allocations: 207.9 kB / 477.1 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004657/0.9122, allocations: 63.97 kB / 477.2 MB, free: 11.54 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.0006641/0.9129, allocations: 191.9 kB / 477.4 MB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005113/0.9134, allocations: 86.97 kB / 477.4 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007936/0.9214, allocations: 1.781 MB / 479.2 MB, free: 9.449 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/0.9215, allocations: 12 kB / 479.2 MB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.9215, allocations: 0 / 479.2 MB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.624e-05/0.9216, allocations: 7.969 kB / 479.2 MB, free: 9.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.9352, allocations: 3.037 MB / 482.3 MB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.205e-05/0.9353, allocations: 4 kB / 482.3 MB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/0.9386, allocations: 259.8 kB / 482.5 MB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003938/0.9426, allocations: 0.7351 MB / 483.3 MB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004758/0.9431, allocations: 51.94 kB / 483.3 MB, free: 5.258 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.9471, allocations: 1.796 MB / 485.1 MB, free: 3.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/0.9472, allocations: 4.031 kB / 485.1 MB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009123/0.9563, allocations: 2.266 MB / 487.4 MB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/0.9581, allocations: 295.8 kB / 487.7 MB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006887/0.9589, allocations: 43.95 kB / 487.7 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004226/0.9631, allocations: 219.8 kB / 487.9 MB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/0.9643, allocations: 224.8 kB / 488.2 MB, free: 296 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003643/0.9647, allocations: 63.94 kB / 488.2 MB, free: 232 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001212/0.9659, allocations: 349.5 kB / 488.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9659, allocations: 4 kB / 488.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001578/0.9675, allocations: 328 kB / 488.9 MB, free: 15.56 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.00719/0.9747, allocations: 3.152 MB / 492 MB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004391/0.9792, allocations: 1.406 MB / 493.4 MB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.9793, allocations: 384 / 493.4 MB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00267/0.982, allocations: 0.7633 MB / 494.2 MB, free: 10.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.9835, allocations: 138.3 kB / 494.3 MB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/0.9995, allocations: 3.144 MB / 497.5 MB, free: 6.832 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008166/1, allocations: 1.047 MB / 498.5 MB, free: 5.758 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001037/1.001, allocations: 127.2 kB / 498.7 MB, free: 5.629 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009015/1.002, allocations: 347.3 kB / 499 MB, free: 5.289 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/1.002, allocations: 0 / 499 MB, free: 5.289 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08718/1.09, allocations: 26.44 MB / 0.5131 GB, free: 11.03 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00035/1.09, allocations: 181.8 kB / 0.5133 GB, free: 10.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.061/5.151, allocations: 0 / 0.5133 GB, free: 10.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat