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 1.866/1.866, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.655e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09647/0.09654, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5581, allocations: 82.91 MB / 382.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.5584, allocations: 72.38 kB / 382.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1003/0.6588, allocations: 22.88 MB / 405.8 MB, free: 8.523 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6588, allocations: 0 / 405.8 MB, free: 8.523 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.431e-05/0.6589, allocations: 27.17 kB / 405.8 MB, free: 8.52 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.00419/0.6631, allocations: 1.262 MB / 407.1 MB, free: 7.719 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.6632, allocations: 19.41 kB / 407.1 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002551/0.6634, allocations: 151 kB / 407.2 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006474/0.6641, allocations: 140.3 kB / 407.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.6652, allocations: 0.5284 MB / 407.9 MB, free: 7.219 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004544/0.6656, allocations: 199.3 kB / 408.1 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002561/0.6659, allocations: 102.3 kB / 408.2 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/0.6686, allocations: 1.148 MB / 409.4 MB, free: 6.801 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.481e-05/0.6686, allocations: 10.97 kB / 409.4 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001627/0.6688, allocations: 37.31 kB / 409.4 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.6688, allocations: 27.33 kB / 409.4 MB, free: 6.793 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.6717, allocations: 1.142 MB / 410.6 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009505/0.6812, allocations: 3.701 MB / 414.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.6835, allocations: 0.9392 MB / 415.2 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.6848, allocations: 0.5885 MB / 415.8 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001731/0.685, allocations: 27.5 kB / 415.8 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.6851, allocations: 49.22 kB / 415.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.679e-06/0.6851, allocations: 0 / 415.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.009828/0.6949, allocations: 3.736 MB / 419.6 MB, free: 3.465 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.695, allocations: 97.27 kB / 419.7 MB, free: 3.367 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006937/0.6957, allocations: 441.8 kB / 420.1 MB, free: 3.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.6959, allocations: 62.92 kB / 420.2 MB, free: 3.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.6961, allocations: 358.9 kB / 420.5 MB, free: 2.918 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004152/0.6966, allocations: 492 kB / 421 MB, free: 2.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.6967, allocations: 33.22 kB / 421.1 MB, free: 2.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.6968, allocations: 364.2 kB / 421.4 MB, free: 2.238 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.6982, allocations: 0.5212 MB / 421.9 MB, free: 2.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.6997, allocations: 0.6512 MB / 422.6 MB, free: 2.094 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.7009, allocations: 462.8 kB / 423 MB, free: 2.016 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.7009, allocations: 0 / 423 MB, free: 2.016 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004417/0.7053, allocations: 1.614 MB / 424.7 MB, free: 1.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.7054, allocations: 11.78 kB / 424.7 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-05/0.7054, allocations: 3.875 kB / 424.7 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/0.7079, allocations: 0.7785 MB / 425.4 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001859/0.7097, allocations: 263.6 kB / 425.7 MB, free: 1.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002834/0.7126, allocations: 1.87 MB / 427.6 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/0.7147, allocations: 206 kB / 427.8 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/0.7149, allocations: 57.42 kB / 427.8 MB, free: 304 kB / 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 ($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.0003839/0.7153, allocations: 188.3 kB / 428 MB, free: 172 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.7156, allocations: 93.38 kB / 428.1 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004666/0.7202, allocations: 1.782 MB / 429.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.7203, allocations: 15.25 kB / 429.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.7203, allocations: 0 / 429.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.166e-05/0.7203, allocations: 11.97 kB / 429.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007974/0.7283, allocations: 3.04 MB / 433 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.7284, allocations: 4.031 kB / 433 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/0.7306, allocations: 269.6 kB / 433.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002545/0.7331, allocations: 0.7319 MB / 434 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/0.7334, allocations: 55.94 kB / 434 MB, free: 13.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/0.7367, allocations: 1.796 MB / 435.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.7367, allocations: 4.062 kB / 435.8 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006418/0.7431, allocations: 2.25 MB / 438.1 MB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008978/0.7441, allocations: 303.7 kB / 438.4 MB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003169/0.7444, allocations: 44 kB / 438.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00223/0.7466, allocations: 207.8 kB / 438.6 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007897/0.7475, allocations: 240.8 kB / 438.8 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003253/0.7478, allocations: 59.94 kB / 438.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001212/0.749, allocations: 357.5 kB / 439.2 MB, free: 7.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.773e-06/0.7491, allocations: 0 / 439.2 MB, free: 7.727 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002528/0.7516, allocations: 320 kB / 439.6 MB, free: 7.414 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.01211/0.7638, allocations: 3.151 MB / 442.7 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005214/0.769, allocations: 1.425 MB / 444.1 MB, free: 2.758 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.7691, allocations: 4 kB / 444.1 MB, free: 2.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.7716, allocations: 0.7503 MB / 444.9 MB, free: 2.004 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.773, allocations: 142.4 kB / 445 MB, free: 1.863 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/0.7884, allocations: 3.188 MB / 448.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008815/0.7894, allocations: 1.051 MB / 449.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.7904, allocations: 351.3 kB / 449.6 MB, free: 13.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.332e-06/0.7904, allocations: 0 / 449.6 MB, free: 13.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.321/4.112, allocations: 22.62 MB / 472.2 MB, free: 6.559 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