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 1.939/1.939, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.715e-05/4.741e-05, allocations: 4 kB / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2632, allocations: 38.77 MB / 263.9 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1614/0.4247, allocations: 77.76 MB / 341.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.4251, allocations: 71.97 kB / 341.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1176/0.5427, allocations: 22.99 MB / 364.7 MB, free: 4.809 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5428, allocations: 3.938 kB / 364.7 MB, free: 4.805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.406e-05/0.5429, allocations: 24 kB / 364.7 MB, free: 4.781 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.004854/0.5477, allocations: 1.282 MB / 366 MB, free: 3.449 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.5478, allocations: 12.03 kB / 366 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003631/0.5482, allocations: 148 kB / 366.1 MB, free: 3.285 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007369/0.5489, allocations: 138.6 kB / 366.3 MB, free: 3.148 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.5503, allocations: 0.5373 MB / 366.8 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005397/0.5509, allocations: 203.1 kB / 367 MB, free: 2.355 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003261/0.5512, allocations: 107.9 kB / 367.1 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003252/0.5545, allocations: 1.177 MB / 368.3 MB, free: 1.055 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-05/0.5546, allocations: 7.906 kB / 368.3 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/0.5548, allocations: 40 kB / 368.3 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.36e-05/0.5548, allocations: 28 kB / 368.4 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2914/0.8462, allocations: 1.204 MB / 369.6 MB, free: 85.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/0.8672, allocations: 3.7 MB / 373.3 MB, free: 84.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/0.8703, allocations: 0.9637 MB / 374.2 MB, free: 84.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.8721, allocations: 0.5982 MB / 374.8 MB, free: 84.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.8723, allocations: 17.03 kB / 374.8 MB, free: 84.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.8723, allocations: 46.62 kB / 374.9 MB, free: 84.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 6.432e-06/0.8723, allocations: 2.875 kB / 374.9 MB, free: 84.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01844/0.8908, allocations: 3.844 MB / 378.7 MB, free: 83.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.8909, allocations: 92.05 kB / 378.8 MB, free: 83.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008741/0.8918, allocations: 487.5 kB / 379.3 MB, free: 82.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003914/0.8922, allocations: 60.27 kB / 379.4 MB, free: 82.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002822/0.8925, allocations: 338.4 kB / 379.7 MB, free: 82.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006032/0.8931, allocations: 478.4 kB / 380.2 MB, free: 82.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.8933, allocations: 35.47 kB / 380.2 MB, free: 82.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.8934, allocations: 392.1 kB / 380.6 MB, free: 81.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.895, allocations: 0.5488 MB / 381.1 MB, free: 81.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.8969, allocations: 0.6917 MB / 381.8 MB, free: 81.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.8986, allocations: 499.7 kB / 382.3 MB, free: 81.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.8986, allocations: 0 / 382.3 MB, free: 81.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006029/0.9047, allocations: 1.875 MB / 384.2 MB, free: 80.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.9047, allocations: 5.688 kB / 384.2 MB, free: 80.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.9048, allocations: 7.484 kB / 384.2 MB, free: 80.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00308/0.9079, allocations: 0.9803 MB / 385.2 MB, free: 80.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002094/0.91, allocations: 264.4 kB / 385.4 MB, free: 80.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/0.9134, allocations: 1.968 MB / 387.4 MB, free: 78.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/0.9158, allocations: 210.9 kB / 387.6 MB, free: 78.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/0.9162, allocations: 67.64 kB / 387.7 MB, free: 78.82 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.0004441/0.9167, allocations: 194.1 kB / 387.9 MB, free: 78.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.917, allocations: 86.09 kB / 387.9 MB, free: 78.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003548/0.9174, allocations: 135 kB / 388.1 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.9174, allocations: 13.03 kB / 388.1 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.9174, allocations: 0 / 388.1 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.9175, allocations: 6.656 kB / 388.1 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008908/0.9264, allocations: 3.177 MB / 391.3 MB, free: 76.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.9264, allocations: 0 / 391.3 MB, free: 76.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002311/0.9288, allocations: 261.3 kB / 391.5 MB, free: 76.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/0.9317, allocations: 0.9292 MB / 392.5 MB, free: 75.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003239/0.9321, allocations: 47.19 kB / 392.5 MB, free: 75.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.9351, allocations: 1.919 MB / 394.4 MB, free: 73.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/0.9352, allocations: 0 / 394.4 MB, free: 73.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006994/0.9422, allocations: 2.463 MB / 396.9 MB, free: 71.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.9433, allocations: 299.7 kB / 397.2 MB, free: 71.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003518/0.9437, allocations: 42.53 kB / 397.2 MB, free: 71.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002311/0.946, allocations: 216.5 kB / 397.4 MB, free: 70.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008072/0.9468, allocations: 221.7 kB / 397.6 MB, free: 70.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/0.9471, allocations: 66.47 kB / 397.7 MB, free: 70.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006551/0.9477, allocations: 370.8 kB / 398.1 MB, free: 70.39 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9477, allocations: 0 / 398.1 MB, free: 70.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001484/0.9492, allocations: 335.4 kB / 398.4 MB, free: 70.07 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.007077/0.9563, allocations: 3.263 MB / 401.7 MB, free: 66.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.96, allocations: 1.351 MB / 403 MB, free: 65.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.96, allocations: 0 / 403 MB, free: 65.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.9621, allocations: 0.7471 MB / 403.8 MB, free: 64.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.9635, allocations: 139.5 kB / 403.9 MB, free: 64.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.9773, allocations: 3.124 MB / 407 MB, free: 62.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005341/0.9779, allocations: 1.05 MB / 408.1 MB, free: 61.23 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009641/0.9789, allocations: 139.6 kB / 408.2 MB, free: 61.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007512/0.9796, allocations: 348 kB / 408.6 MB, free: 60.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.223e-06/0.9797, allocations: 7.391 kB / 408.6 MB, free: 60.81 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08505/1.065, allocations: 26.19 MB / 434.7 MB, free: 35.75 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/1.065, allocations: 182.2 kB / 434.9 MB, free: 35.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.761/4.826, allocations: 4 kB / 434.9 MB, free: 35.52 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