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.042/2.042, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.33e-05/2.339e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3033, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.453, allocations: 82.26 MB / 376.5 MB, free: 15.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.4533, allocations: 71.95 kB / 376.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.109/0.5623, allocations: 22.72 MB / 399.2 MB, free: 8.766 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.5624, allocations: 4 kB / 399.2 MB, free: 8.762 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.78e-05/0.5625, allocations: 16 kB / 399.3 MB, free: 8.746 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.005114/0.5676, allocations: 1.27 MB / 400.5 MB, free: 7.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.5677, allocations: 8.031 kB / 400.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009185/0.5686, allocations: 150.5 kB / 400.7 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.57, allocations: 0.5258 MB / 401.2 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000496/0.5706, allocations: 171 kB / 401.4 MB, free: 6.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003144/0.5709, allocations: 63.91 kB / 401.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003237/0.5741, allocations: 1.085 MB / 402.5 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002832/0.577, allocations: 1.021 MB / 403.5 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.148e-05/0.5771, allocations: 7.906 kB / 403.6 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.5773, allocations: 0 / 403.6 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-05/0.5773, allocations: 27.95 kB / 403.6 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01175/0.5891, allocations: 3.541 MB / 407.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002479/0.5916, allocations: 0.8902 MB / 408 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.5931, allocations: 0.5513 MB / 408.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/0.5935, allocations: 25.2 kB / 408.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.5935, allocations: 47.83 kB / 408.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=135): time 4.488e-06/0.5935, allocations: 0 / 408.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.01317/0.6067, allocations: 3.534 MB / 412.2 MB, free: 11.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.88e-05/0.6069, allocations: 98.42 kB / 412.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009008/0.6078, allocations: 405.3 kB / 412.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003394/0.6081, allocations: 41.7 kB / 412.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003464/0.6085, allocations: 360 kB / 413.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007625/0.6093, allocations: 477.1 kB / 413.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.6094, allocations: 0 / 413.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.6097, allocations: 366.8 kB / 413.9 MB, free: 9.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.6111, allocations: 499.9 kB / 414.4 MB, free: 9.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.6129, allocations: 0.614 MB / 415 MB, free: 8.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.6147, allocations: 465.8 kB / 415.4 MB, free: 8.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.6147, allocations: 0 / 415.4 MB, free: 8.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005691/0.6204, allocations: 1.521 MB / 417 MB, free: 6.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.6205, allocations: 8.188 kB / 417 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.316e-05/0.6206, allocations: 8 kB / 417 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002873/0.6235, allocations: 0.7667 MB / 417.7 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002165/0.6257, allocations: 255.6 kB / 418 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/0.63, allocations: 2.013 MB / 420 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.6326, allocations: 179.9 kB / 420.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003604/0.633, allocations: 63.97 kB / 420.2 MB, free: 3.25 MB / 362.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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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 brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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 ($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.0005599/0.6336, allocations: 153.2 kB / 420.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004951/0.6385, allocations: 1.372 MB / 421.8 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004632/0.639, allocations: 94.88 kB / 421.9 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2562/0.8953, allocations: 1.654 MB / 423.5 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.435e-05/0.8954, allocations: 15.45 kB / 423.5 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.8954, allocations: 1.969 kB / 423.5 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.741e-05/0.8955, allocations: 7.453 kB / 423.5 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.9063, allocations: 2.819 MB / 426.4 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/0.9064, allocations: 1.25 kB / 426.4 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00301/0.9095, allocations: 263.8 kB / 426.6 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00358/0.9131, allocations: 0.728 MB / 427.3 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004026/0.9135, allocations: 33.09 kB / 427.4 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005212/0.9188, allocations: 1.915 MB / 429.3 MB, free: 102.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/0.9188, allocations: 4.969 kB / 429.3 MB, free: 102.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008984/0.9278, allocations: 2.158 MB / 431.5 MB, free: 102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.9292, allocations: 295.6 kB / 431.7 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004823/0.9297, allocations: 21.2 kB / 431.8 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003004/0.9327, allocations: 194.7 kB / 432 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/0.9337, allocations: 230.2 kB / 432.2 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000294/0.9341, allocations: 60.75 kB / 432.2 MB, free: 101.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008282/0.9349, allocations: 326.4 kB / 432.6 MB, free: 101.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.9349, allocations: 0 / 432.6 MB, free: 101.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002113/0.937, allocations: 269.8 kB / 432.8 MB, free: 101.8 MB / 362.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.008828/0.9459, allocations: 3.032 MB / 435.8 MB, free: 100.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004995/0.951, allocations: 1.35 MB / 437.2 MB, free: 99.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.951, allocations: 0 / 437.2 MB, free: 99.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.9539, allocations: 0.7228 MB / 437.9 MB, free: 99.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.9558, allocations: 116.2 kB / 438 MB, free: 99.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0188/0.9746, allocations: 3.078 MB / 441.1 MB, free: 98.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007954/0.9755, allocations: 1.047 MB / 442.2 MB, free: 97.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.9767, allocations: 351.7 kB / 442.5 MB, free: 97.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.9767, allocations: 4 kB / 442.5 MB, free: 97.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.258/4.235, allocations: 22.56 MB / 465.1 MB, free: 82.65 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