Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.499e-05/4.512e-05, allocations: 4 kB / 269.4 MB, free: 6.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1326, allocations: 47.57 MB / 317 MB, free: 6.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4333/0.566, allocations: 87.52 MB / 404.5 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.5664, allocations: 73.95 kB / 404.6 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1178/0.6842, allocations: 23.13 MB / 427.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6843, allocations: 0 / 427.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.634e-05/0.6843, allocations: 20 kB / 427.8 MB, free: 12.84 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.005396/0.6897, allocations: 1.272 MB / 429 MB, free: 11.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.6898, allocations: 12.02 kB / 429 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005605/0.6904, allocations: 146.1 kB / 429.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009356/0.6913, allocations: 142.6 kB / 429.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001739/0.6931, allocations: 0.5492 MB / 429.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005838/0.6938, allocations: 199.1 kB / 430.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004665/0.6942, allocations: 100.8 kB / 430.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003557/0.6978, allocations: 1.141 MB / 431.3 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.142e-05/0.698, allocations: 11.89 kB / 431.3 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001863/0.6982, allocations: 38.62 kB / 431.3 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.6982, allocations: 20 kB / 431.4 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003968/0.7022, allocations: 1.128 MB / 432.5 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01354/0.7158, allocations: 3.689 MB / 436.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002994/0.7189, allocations: 0.923 MB / 437.1 MB, free: 5.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.7208, allocations: 0.594 MB / 437.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001997/0.7211, allocations: 17.3 kB / 437.7 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.722e-05/0.7212, allocations: 55.42 kB / 437.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 5.872e-06/0.7212, allocations: 0 / 437.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.0135/0.7347, allocations: 3.73 MB / 441.5 MB, free: 2.055 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.7348, allocations: 98.41 kB / 441.6 MB, free: 1.941 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009048/0.7358, allocations: 440 kB / 442 MB, free: 1.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004422/0.7362, allocations: 71 kB / 442.1 MB, free: 1.539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.7366, allocations: 315.3 kB / 442.4 MB, free: 1.305 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000898/0.7375, allocations: 498.3 kB / 442.9 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.7377, allocations: 25.44 kB / 442.9 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002849/0.738, allocations: 395.4 kB / 443.3 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.7397, allocations: 0.5168 MB / 443.8 MB, free: 208 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002074/0.7418, allocations: 0.644 MB / 444.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.7436, allocations: 465.7 kB / 444.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.7437, allocations: 0 / 444.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005942/0.7496, allocations: 1.638 MB / 446.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.7497, allocations: 7.953 kB / 446.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.321e-05/0.7498, allocations: 11.98 kB / 446.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002941/0.7527, allocations: 0.7786 MB / 447.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/0.7551, allocations: 259.7 kB / 447.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00378/0.7589, allocations: 1.868 MB / 449.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/0.7615, allocations: 207.9 kB / 449.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003459/0.7619, allocations: 63.97 kB / 449.7 MB, free: 10.3 MB / 362.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.0005196/0.7624, allocations: 187.6 kB / 449.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003546/0.7628, allocations: 86.97 kB / 450 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005612/0.7684, allocations: 1.785 MB / 451.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.479e-05/0.7685, allocations: 12 kB / 451.8 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7685, allocations: 3.953 kB / 451.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.219e-05/0.7686, allocations: 8.062 kB / 451.8 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.7788, allocations: 3.033 MB / 454.9 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.7789, allocations: 3.938 kB / 454.9 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/0.7815, allocations: 259.8 kB / 455.1 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003036/0.7846, allocations: 0.7352 MB / 455.8 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000464/0.7851, allocations: 55.89 kB / 455.9 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003581/0.7887, allocations: 1.804 MB / 457.7 MB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.7888, allocations: 4.031 kB / 457.7 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00784/0.7966, allocations: 2.251 MB / 460 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/0.798, allocations: 299.8 kB / 460.3 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/0.7985, allocations: 36 kB / 460.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002533/0.801, allocations: 219.8 kB / 460.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009326/0.802, allocations: 224.8 kB / 460.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/0.8023, allocations: 64.03 kB / 460.8 MB, free: 14.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007864/0.8031, allocations: 349.5 kB / 461.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8031, allocations: 8 kB / 461.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001833/0.805, allocations: 328 kB / 461.5 MB, free: 14.32 MB / 378.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.008556/0.8136, allocations: 3.163 MB / 464.6 MB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004934/0.8186, allocations: 1.399 MB / 466 MB, free: 9.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.8186, allocations: 384 / 466 MB, free: 9.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003057/0.8217, allocations: 0.7672 MB / 466.8 MB, free: 8.914 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.8235, allocations: 139.4 kB / 466.9 MB, free: 8.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/0.8448, allocations: 3.129 MB / 470 MB, free: 5.594 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.8463, allocations: 1.051 MB / 471.1 MB, free: 4.516 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001611/0.8479, allocations: 135.2 kB / 471.2 MB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.8493, allocations: 343.3 kB / 471.6 MB, free: 4.043 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.8493, allocations: 0 / 471.6 MB, free: 4.043 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09452/0.9439, allocations: 26.43 MB / 498 MB, free: 9.664 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003851/0.9443, allocations: 177.3 kB / 498.2 MB, free: 9.441 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.909/4.853, allocations: 4.062 kB / 498.2 MB, free: 9.438 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat