Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.593e-05, allocations: 3.984 kB / 255.5 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09564, allocations: 44.51 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4298/0.5255, allocations: 82.91 MB / 382.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5258, allocations: 69.94 kB / 382.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1029/0.6287, allocations: 22.88 MB / 405.8 MB, free: 8.191 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6287, allocations: 0 / 405.8 MB, free: 8.191 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.837e-05/0.6288, allocations: 23.38 kB / 405.8 MB, free: 8.188 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.004763/0.6336, allocations: 1.263 MB / 407.1 MB, free: 7.387 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.6337, allocations: 11.75 kB / 407.1 MB, free: 7.387 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004273/0.6341, allocations: 148.2 kB / 407.3 MB, free: 7.324 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007507/0.6349, allocations: 147.2 kB / 407.4 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.6361, allocations: 0.5329 MB / 407.9 MB, free: 6.887 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004593/0.6366, allocations: 194.9 kB / 408.1 MB, free: 6.781 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.6369, allocations: 102.3 kB / 408.2 MB, free: 6.773 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002904/0.6398, allocations: 1.144 MB / 409.4 MB, free: 6.473 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-05/0.64, allocations: 7.875 kB / 409.4 MB, free: 6.469 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001699/0.6401, allocations: 38.53 kB / 409.4 MB, free: 6.469 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.6402, allocations: 27.27 kB / 409.4 MB, free: 6.465 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002985/0.6432, allocations: 1.129 MB / 410.6 MB, free: 6.332 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.6542, allocations: 3.696 MB / 414.3 MB, free: 4.461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002361/0.6566, allocations: 0.9278 MB / 415.2 MB, free: 4.363 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.6582, allocations: 0.5937 MB / 415.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.6584, allocations: 24.55 kB / 415.8 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.6584, allocations: 45.81 kB / 415.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.438e-06/0.6584, allocations: 0 / 415.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01065/0.6691, allocations: 3.74 MB / 419.6 MB, free: 3.137 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.6692, allocations: 93.67 kB / 419.7 MB, free: 3.043 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.67, allocations: 442.9 kB / 420.1 MB, free: 2.891 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.6703, allocations: 64.98 kB / 420.2 MB, free: 2.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.6706, allocations: 360.8 kB / 420.5 MB, free: 2.594 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/0.6711, allocations: 495.9 kB / 421 MB, free: 2.246 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.6712, allocations: 32.66 kB / 421.1 MB, free: 2.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.6714, allocations: 367 kB / 421.4 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.6728, allocations: 0.5169 MB / 421.9 MB, free: 1.887 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.6743, allocations: 0.6438 MB / 422.6 MB, free: 1.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.6756, allocations: 458.5 kB / 423 MB, free: 1.695 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.6756, allocations: 3.906 kB / 423 MB, free: 1.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004539/0.6802, allocations: 1.612 MB / 424.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.6802, allocations: 7.75 kB / 424.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-05/0.6803, allocations: 3.75 kB / 424.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/0.6829, allocations: 0.7756 MB / 425.4 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002097/0.685, allocations: 259.4 kB / 425.7 MB, free: 1.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003127/0.6882, allocations: 1.871 MB / 427.6 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/0.6907, allocations: 206.8 kB / 427.8 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/0.691, allocations: 68.22 kB / 427.8 MB, free: 15.98 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.0005006/0.6915, allocations: 185.2 kB / 428 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.6918, allocations: 86.81 kB / 428.1 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/0.6968, allocations: 1.783 MB / 429.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/0.6969, allocations: 16.09 kB / 429.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.6969, allocations: 3.984 kB / 429.9 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/0.697, allocations: 3.984 kB / 429.9 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008934/0.7059, allocations: 3.035 MB / 432.9 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.706, allocations: 0 / 432.9 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002452/0.7085, allocations: 263.8 kB / 433.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002899/0.7114, allocations: 0.7455 MB / 433.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003821/0.7118, allocations: 51.94 kB / 434 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/0.7155, allocations: 1.796 MB / 435.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.7155, allocations: 4.031 kB / 435.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007303/0.7228, allocations: 2.251 MB / 438 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.7241, allocations: 299.8 kB / 438.3 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003796/0.7245, allocations: 40 kB / 438.4 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002486/0.727, allocations: 219.8 kB / 438.6 MB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009152/0.728, allocations: 228.8 kB / 438.8 MB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002343/0.7282, allocations: 63.94 kB / 438.9 MB, free: 8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007768/0.729, allocations: 349.5 kB / 439.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.729, allocations: 4 kB / 439.2 MB, free: 7.656 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001713/0.7307, allocations: 328 kB / 439.5 MB, free: 7.336 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.00782/0.7386, allocations: 3.151 MB / 442.7 MB, free: 4.133 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00481/0.7435, allocations: 1.399 MB / 444.1 MB, free: 2.711 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.7435, allocations: 3.938 kB / 444.1 MB, free: 2.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00275/0.7463, allocations: 0.7481 MB / 444.8 MB, free: 1.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.748, allocations: 139 kB / 445 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.764, allocations: 3.189 MB / 448.2 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008586/0.765, allocations: 1.043 MB / 449.2 MB, free: 13.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/0.7661, allocations: 351.3 kB / 449.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7661, allocations: 3.938 kB / 449.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.295/4.061, allocations: 22.59 MB / 472.1 MB, free: 6.551 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat