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.862/1.862, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.783e-05/2.797e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2623, allocations: 38.76 MB / 258.3 MB, free: 12.03 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.402, allocations: 77.1 MB / 335.4 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.4023, allocations: 71.95 kB / 335.5 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1131/0.5154, allocations: 22.83 MB / 358.3 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5155, allocations: 3.938 kB / 358.3 MB, free: 9.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.964e-05/0.5156, allocations: 20 kB / 358.3 MB, free: 9.699 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.005643/0.5212, allocations: 1.29 MB / 359.6 MB, free: 8.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.5213, allocations: 8.031 kB / 359.6 MB, free: 8.355 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.5223, allocations: 134.6 kB / 359.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.5241, allocations: 0.5452 MB / 360.3 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005444/0.5246, allocations: 167 kB / 360.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004034/0.5251, allocations: 67.89 kB / 360.5 MB, free: 7.383 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003843/0.5289, allocations: 1.16 MB / 361.7 MB, free: 6.223 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003523/0.5325, allocations: 1.052 MB / 362.8 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-05/0.5326, allocations: 11.84 kB / 362.8 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001632/0.5328, allocations: 3.984 kB / 362.8 MB, free: 5.137 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.5329, allocations: 24 kB / 362.8 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/0.5455, allocations: 3.552 MB / 366.3 MB, free: 1.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002867/0.5485, allocations: 0.9055 MB / 367.2 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3022/0.8507, allocations: 0.5504 MB / 367.8 MB, free: 87.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003258/0.8511, allocations: 19.28 kB / 367.8 MB, free: 87.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/0.8512, allocations: 45.91 kB / 367.9 MB, free: 87.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 7.414e-06/0.8512, allocations: 0 / 367.9 MB, free: 87.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.02103/0.8723, allocations: 3.588 MB / 371.5 MB, free: 86.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.8724, allocations: 95.59 kB / 371.5 MB, free: 86.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.8737, allocations: 447.2 kB / 372 MB, free: 86.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005371/0.8743, allocations: 43.62 kB / 372 MB, free: 86.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004275/0.8748, allocations: 379.5 kB / 372.4 MB, free: 86.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/0.8759, allocations: 464.8 kB / 372.8 MB, free: 85.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.8761, allocations: 1.031 kB / 372.8 MB, free: 85.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.8763, allocations: 363.5 kB / 373.2 MB, free: 85.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/0.8788, allocations: 0.523 MB / 373.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002782/0.8817, allocations: 0.6471 MB / 374.4 MB, free: 85.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.8845, allocations: 482.7 kB / 374.8 MB, free: 85.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.168e-05/0.8845, allocations: 2.531 kB / 374.8 MB, free: 85.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.008463/0.893, allocations: 1.739 MB / 376.6 MB, free: 85.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.8931, allocations: 11.28 kB / 376.6 MB, free: 85.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/0.8932, allocations: 0 / 376.6 MB, free: 85.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00427/0.8974, allocations: 0.97 MB / 377.6 MB, free: 85.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/0.9004, allocations: 268.5 kB / 377.8 MB, free: 85.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005461/0.9059, allocations: 2.113 MB / 379.9 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003535/0.9095, allocations: 182.9 kB / 380.1 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005736/0.9102, allocations: 64.89 kB / 380.2 MB, free: 83.63 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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.0008925/0.9111, allocations: 144.5 kB / 380.3 MB, free: 83.51 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007378/0.9185, allocations: 1.438 MB / 381.8 MB, free: 83.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000856/0.9194, allocations: 90.62 kB / 381.9 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005763/0.92, allocations: 116.2 kB / 382 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.808e-05/0.9201, allocations: 15.12 kB / 382 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-05/0.9201, allocations: 0 / 382 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.458e-05/0.9202, allocations: 7.312 kB / 382 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.933, allocations: 2.954 MB / 384.9 MB, free: 81.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.933, allocations: 0 / 384.9 MB, free: 81.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/0.9353, allocations: 259.3 kB / 385.2 MB, free: 81.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/0.9382, allocations: 0.9282 MB / 386.1 MB, free: 81.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003223/0.9386, allocations: 35.7 kB / 386.2 MB, free: 81.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.942, allocations: 2.026 MB / 388.2 MB, free: 80.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.942, allocations: 2.031 kB / 388.2 MB, free: 80.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00678/0.9488, allocations: 2.37 MB / 390.6 MB, free: 79.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.9499, allocations: 297.1 kB / 390.8 MB, free: 78.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003611/0.9503, allocations: 19.66 kB / 390.9 MB, free: 78.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/0.9526, allocations: 192.2 kB / 391.1 MB, free: 78.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008148/0.9535, allocations: 231.2 kB / 391.3 MB, free: 78.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/0.9537, allocations: 61.89 kB / 391.3 MB, free: 78.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005844/0.9543, allocations: 336.2 kB / 391.7 MB, free: 78.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.9543, allocations: 0 / 391.7 MB, free: 78.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001743/0.9561, allocations: 294.6 kB / 392 MB, free: 78.18 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 (brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.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.007123/0.9633, allocations: 3.143 MB / 395.1 MB, free: 75.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003661/0.967, allocations: 1.272 MB / 396.4 MB, free: 74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.9671, allocations: 0 / 396.4 MB, free: 74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.9692, allocations: 0.7028 MB / 397.1 MB, free: 73.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001661/0.9709, allocations: 111.1 kB / 397.2 MB, free: 73.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.9853, allocations: 3.068 MB / 400.3 MB, free: 70.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.9859, allocations: 1.05 MB / 401.3 MB, free: 69.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/0.9869, allocations: 356.7 kB / 401.6 MB, free: 69.36 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9869, allocations: 0 / 401.6 MB, free: 69.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.459/4.446, allocations: 22.16 MB / 423.8 MB, free: 49.02 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