Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.442/2.442, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.939e-05, allocations: 2.562 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5448/0.6527, allocations: 82.24 MB / 376.5 MB, free: 6.922 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.653, allocations: 75.89 kB / 376.6 MB, free: 6.922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1468/0.7999, allocations: 22.72 MB / 399.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7999, allocations: 0 / 399.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.376e-05/0.8, allocations: 22.52 kB / 399.3 MB, free: 14.7 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.006468/0.8065, allocations: 1.268 MB / 400.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.8066, allocations: 11.69 kB / 400.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.8078, allocations: 142 kB / 400.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.8096, allocations: 0.5332 MB / 401.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006188/0.8103, allocations: 168.9 kB / 401.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004299/0.8107, allocations: 61.88 kB / 401.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003887/0.8146, allocations: 1.088 MB / 402.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003916/0.8186, allocations: 1.021 MB / 403.6 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.716e-05/0.8187, allocations: 15.81 kB / 403.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.8189, allocations: 0 / 403.6 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.819, allocations: 27.2 kB / 403.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.8345, allocations: 3.539 MB / 407.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005134/0.8397, allocations: 0.8831 MB / 408.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003105/0.8429, allocations: 0.5603 MB / 408.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000385/0.8433, allocations: 24.89 kB / 408.7 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.674e-05/0.8434, allocations: 49.83 kB / 408.7 MB, free: 9.766 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 8.105e-06/0.8435, allocations: 4 kB / 408.7 MB, free: 9.762 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.0202/0.8637, allocations: 3.534 MB / 412.3 MB, free: 6.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.8638, allocations: 94.42 kB / 412.4 MB, free: 6.852 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009805/0.8648, allocations: 408.3 kB / 412.8 MB, free: 6.527 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004339/0.8653, allocations: 36.14 kB / 412.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.8657, allocations: 325 kB / 413.1 MB, free: 6.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008093/0.8665, allocations: 472.2 kB / 413.6 MB, free: 5.848 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.8667, allocations: 7.984 kB / 413.6 MB, free: 5.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000264/0.867, allocations: 386.9 kB / 414 MB, free: 5.488 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/0.8687, allocations: 0.4931 MB / 414.5 MB, free: 5.195 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.8706, allocations: 0.6097 MB / 415.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/0.8728, allocations: 477.2 kB / 415.5 MB, free: 4.473 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.8728, allocations: 0 / 415.5 MB, free: 4.473 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006614/0.8794, allocations: 1.553 MB / 417.1 MB, free: 3.336 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.8795, allocations: 11.98 kB / 417.1 MB, free: 3.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/0.8796, allocations: 4 kB / 417.1 MB, free: 3.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00334/0.8829, allocations: 0.761 MB / 417.9 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/0.8856, allocations: 257.3 kB / 418.1 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/0.8905, allocations: 2.006 MB / 420.1 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/0.8935, allocations: 179.9 kB / 420.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/0.8939, allocations: 64.03 kB / 420.4 MB, free: 0.6133 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: 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.0006328/0.8945, allocations: 158 kB / 420.5 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005951/0.9005, allocations: 1.373 MB / 421.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/0.901, allocations: 86.97 kB / 422 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006312/0.9073, allocations: 1.671 MB / 423.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-05/0.9074, allocations: 15.95 kB / 423.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.9075, allocations: 0 / 423.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.263e-05/0.9075, allocations: 7.969 kB / 423.7 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.9191, allocations: 2.82 MB / 426.5 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/0.9192, allocations: 4 kB / 426.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/0.9222, allocations: 255.8 kB / 426.7 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00346/0.9256, allocations: 0.7386 MB / 427.5 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003597/0.926, allocations: 31.89 kB / 427.5 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004562/0.9306, allocations: 1.917 MB / 429.4 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.9307, allocations: 3.938 kB / 429.4 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008144/0.9388, allocations: 2.153 MB / 431.6 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.9401, allocations: 295.9 kB / 431.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004469/0.9406, allocations: 19.98 kB / 431.9 MB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002636/0.9432, allocations: 191.7 kB / 432.1 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009776/0.9442, allocations: 232.8 kB / 432.3 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002504/0.9445, allocations: 63.88 kB / 432.4 MB, free: 4.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000739/0.9452, allocations: 326.9 kB / 432.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9453, allocations: 0 / 432.7 MB, free: 4.145 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001825/0.9471, allocations: 272 kB / 432.9 MB, free: 3.879 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.008613/0.9557, allocations: 3.041 MB / 436 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005246/0.961, allocations: 1.349 MB / 437.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.9611, allocations: 0 / 437.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003303/0.9644, allocations: 0.7375 MB / 438.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.9664, allocations: 106.4 kB / 438.2 MB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/0.985, allocations: 3.037 MB / 441.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/0.9861, allocations: 1.043 MB / 442.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001298/0.9874, allocations: 135.1 kB / 442.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/0.9888, allocations: 355.2 kB / 442.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of SimCode: time 1.603e-06/0.9888, allocations: 0 / 442.7 MB, free: 9.926 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1752/1.164, allocations: 25.34 MB / 468.1 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003015/1.164, allocations: 141.1 kB / 468.2 MB, free: 448 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.556/5.721, allocations: 4.031 kB / 468.2 MB, free: 444 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat