Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.777/1.777, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.906e-05, allocations: 3.438 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3033, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1781/0.4815, allocations: 77.77 MB / 341.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.4818, allocations: 71.97 kB / 341.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1302/0.612, allocations: 22.98 MB / 364.7 MB, free: 4.738 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6121, allocations: 3.938 kB / 364.7 MB, free: 4.734 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.955e-05/0.6122, allocations: 24 kB / 364.7 MB, free: 4.711 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.005543/0.6177, allocations: 1.278 MB / 366 MB, free: 3.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.6178, allocations: 12.03 kB / 366 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004245/0.6182, allocations: 152 kB / 366.1 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007986/0.619, allocations: 134.6 kB / 366.3 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.6205, allocations: 0.549 MB / 366.8 MB, free: 2.492 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005779/0.6211, allocations: 199.1 kB / 367 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003763/0.6215, allocations: 99.91 kB / 367.1 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003512/0.6251, allocations: 1.169 MB / 368.3 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-05/0.6252, allocations: 15.89 kB / 368.3 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/0.6254, allocations: 36 kB / 368.3 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.384e-05/0.6254, allocations: 24 kB / 368.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2266/0.852, allocations: 1.196 MB / 369.5 MB, free: 85.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01224/0.8643, allocations: 3.702 MB / 373.3 MB, free: 84.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.867, allocations: 0.948 MB / 374.2 MB, free: 84.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.8687, allocations: 0.5994 MB / 374.8 MB, free: 84.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.8689, allocations: 18.38 kB / 374.8 MB, free: 84.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.8689, allocations: 48.34 kB / 374.9 MB, free: 84.32 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.689e-06/0.8689, allocations: 0 / 374.9 MB, free: 84.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01383/0.8828, allocations: 3.839 MB / 378.7 MB, free: 83.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.8829, allocations: 90.27 kB / 378.8 MB, free: 83.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.8841, allocations: 484.7 kB / 379.3 MB, free: 82.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004256/0.8845, allocations: 65.28 kB / 379.3 MB, free: 82.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/0.8849, allocations: 379 kB / 379.7 MB, free: 82.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007239/0.8856, allocations: 476.1 kB / 380.2 MB, free: 82.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.8858, allocations: 35.45 kB / 380.2 MB, free: 82.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.886, allocations: 360.9 kB / 380.5 MB, free: 81.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002293/0.8883, allocations: 0.5497 MB / 381.1 MB, free: 81.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006502/0.8948, allocations: 0.6805 MB / 381.8 MB, free: 81.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.897, allocations: 496.6 kB / 382.3 MB, free: 81.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.8971, allocations: 0 / 382.3 MB, free: 81.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.01604/0.9131, allocations: 1.845 MB / 384.1 MB, free: 80.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.9132, allocations: 9.531 kB / 384.1 MB, free: 80.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.9133, allocations: 3.953 kB / 384.1 MB, free: 80.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00806/0.9213, allocations: 0.9859 MB / 385.1 MB, free: 80.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007058/0.9284, allocations: 264.5 kB / 385.4 MB, free: 80.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008462/0.937, allocations: 1.969 MB / 387.3 MB, free: 78.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.9403, allocations: 211.5 kB / 387.5 MB, free: 78.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000298/0.9406, allocations: 62.56 kB / 387.6 MB, free: 78.92 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.0005701/0.9412, allocations: 183.4 kB / 387.8 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004274/0.9416, allocations: 94.39 kB / 387.9 MB, free: 78.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008705/0.9504, allocations: 135.9 kB / 388 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.526e-05/0.9504, allocations: 13.41 kB / 388 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.9505, allocations: 0 / 388 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.214e-05/0.9505, allocations: 10.44 kB / 388 MB, free: 78.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.9611, allocations: 3.173 MB / 391.2 MB, free: 76.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.9612, allocations: 0 / 391.2 MB, free: 76.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/0.9634, allocations: 254.7 kB / 391.5 MB, free: 76.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002646/0.9661, allocations: 0.943 MB / 392.4 MB, free: 75.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/0.9663, allocations: 46.81 kB / 392.4 MB, free: 75.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00297/0.9693, allocations: 1.909 MB / 394.4 MB, free: 73.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.9693, allocations: 1.328 kB / 394.4 MB, free: 73.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/0.9758, allocations: 2.466 MB / 396.8 MB, free: 71.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007937/0.9766, allocations: 301.3 kB / 397.1 MB, free: 71.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.9769, allocations: 36 kB / 397.1 MB, free: 71.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.979, allocations: 216.8 kB / 397.4 MB, free: 71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006117/0.9797, allocations: 226.1 kB / 397.6 MB, free: 70.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/0.9798, allocations: 65.64 kB / 397.6 MB, free: 70.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005786/0.9804, allocations: 372.9 kB / 398 MB, free: 70.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.9805, allocations: 0 / 398 MB, free: 70.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001231/0.9817, allocations: 334.7 kB / 398.3 MB, free: 70.2 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.006595/0.9883, allocations: 3.257 MB / 401.6 MB, free: 67.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.9917, allocations: 1.327 MB / 402.9 MB, free: 65.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.9917, allocations: 384 / 402.9 MB, free: 65.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.9936, allocations: 0.7376 MB / 403.7 MB, free: 65.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.995, allocations: 133.3 kB / 403.8 MB, free: 65.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/1.009, allocations: 3.175 MB / 407 MB, free: 62.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/1.009, allocations: 1.047 MB / 408 MB, free: 61.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008202/1.01, allocations: 354.7 kB / 408.4 MB, free: 61.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/1.01, allocations: 0 / 408.4 MB, free: 61.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.188/4.198, allocations: 22.18 MB / 430.5 MB, free: 39.91 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat