Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.971/1.971, allocations: 171.2 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.577e-05/2.576e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3184, allocations: 38.77 MB / 258.3 MB, free: 12.3 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.163/0.4815, allocations: 77.1 MB / 335.4 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/0.4819, allocations: 67.97 kB / 335.5 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1133/0.5953, allocations: 22.82 MB / 358.3 MB, free: 9.785 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5953, allocations: 3.938 kB / 358.3 MB, free: 9.781 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.22e-05/0.5954, allocations: 20 kB / 358.4 MB, free: 9.762 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.00544/0.6009, allocations: 1.286 MB / 359.6 MB, free: 8.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.254e-05/0.601, allocations: 8.031 kB / 359.6 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009992/0.602, allocations: 138.6 kB / 359.8 MB, free: 8.285 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.6037, allocations: 0.5451 MB / 360.3 MB, free: 7.695 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005398/0.6042, allocations: 167.1 kB / 360.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004047/0.6047, allocations: 63.89 kB / 360.6 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003842/0.6085, allocations: 1.16 MB / 361.7 MB, free: 6.289 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003767/0.6123, allocations: 1.052 MB / 362.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.128e-05/0.6125, allocations: 11.91 kB / 362.8 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001479/0.6126, allocations: 3.938 kB / 362.8 MB, free: 5.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.6127, allocations: 24 kB / 362.8 MB, free: 5.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.6242, allocations: 3.552 MB / 366.4 MB, free: 1.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.6268, allocations: 0.9055 MB / 367.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.6283, allocations: 0.563 MB / 367.8 MB, free: 0 / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2647/0.893, allocations: 14.39 kB / 367.8 MB, free: 87.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.351e-05/0.8932, allocations: 46.42 kB / 367.9 MB, free: 87.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=129): time 4.819e-06/0.8932, allocations: 0.625 kB / 367.9 MB, free: 87.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.01299/0.9062, allocations: 3.592 MB / 371.5 MB, free: 86.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.9063, allocations: 91.45 kB / 371.6 MB, free: 86.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009012/0.9072, allocations: 459.4 kB / 372 MB, free: 86.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000302/0.9075, allocations: 37.67 kB / 372.1 MB, free: 86.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.9078, allocations: 344.4 kB / 372.4 MB, free: 86.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005265/0.9084, allocations: 463.1 kB / 372.8 MB, free: 86.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.9085, allocations: 1.031 kB / 372.8 MB, free: 86.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.9087, allocations: 392.6 kB / 373.2 MB, free: 85.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.9102, allocations: 0.5238 MB / 373.7 MB, free: 85.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.9116, allocations: 0.6465 MB / 374.4 MB, free: 85.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.9132, allocations: 483.6 kB / 374.9 MB, free: 85.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.9132, allocations: 6.188 kB / 374.9 MB, free: 85.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.005346/0.9186, allocations: 1.767 MB / 376.6 MB, free: 85.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.9187, allocations: 7.375 kB / 376.6 MB, free: 85.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.9187, allocations: 3.938 kB / 376.7 MB, free: 85.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002935/0.9216, allocations: 0.9594 MB / 377.6 MB, free: 85.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/0.9238, allocations: 269.2 kB / 377.9 MB, free: 85.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003541/0.9273, allocations: 2.112 MB / 380 MB, free: 84.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/0.9296, allocations: 180.7 kB / 380.2 MB, free: 84.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.9299, allocations: 59.91 kB / 380.2 MB, free: 84.05 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.0004914/0.9304, allocations: 153.2 kB / 380.4 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004256/0.9346, allocations: 1.448 MB / 381.8 MB, free: 83.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003933/0.9351, allocations: 92.59 kB / 381.9 MB, free: 83.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.9355, allocations: 114.1 kB / 382 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/0.9355, allocations: 13.47 kB / 382 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.9355, allocations: 3.719 kB / 382 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.9355, allocations: 8.906 kB / 382 MB, free: 83.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007804/0.9434, allocations: 2.942 MB / 385 MB, free: 82.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.9434, allocations: 3.25 kB / 385 MB, free: 82.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/0.9456, allocations: 261 kB / 385.2 MB, free: 82.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002667/0.9483, allocations: 0.9256 MB / 386.2 MB, free: 81.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002358/0.9486, allocations: 32.62 kB / 386.2 MB, free: 81.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003319/0.9519, allocations: 2.029 MB / 388.2 MB, free: 80.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.952, allocations: 2.812 kB / 388.2 MB, free: 80.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006368/0.9583, allocations: 2.362 MB / 390.6 MB, free: 79.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008632/0.9593, allocations: 301.4 kB / 390.9 MB, free: 79.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/0.9596, allocations: 20 kB / 390.9 MB, free: 79.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002046/0.9616, allocations: 189.9 kB / 391.1 MB, free: 79.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006579/0.9623, allocations: 231.4 kB / 391.3 MB, free: 79.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.9625, allocations: 66.48 kB / 391.4 MB, free: 79.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005071/0.963, allocations: 334.7 kB / 391.7 MB, free: 78.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.963, allocations: 0 / 391.7 MB, free: 78.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001298/0.9644, allocations: 301.6 kB / 392 MB, free: 78.44 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.006638/0.971, allocations: 3.124 MB / 395.1 MB, free: 75.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003216/0.9743, allocations: 1.272 MB / 396.4 MB, free: 74.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.9743, allocations: 4 kB / 396.4 MB, free: 74.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.9764, allocations: 0.7206 MB / 397.1 MB, free: 73.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.9779, allocations: 114.5 kB / 397.2 MB, free: 73.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.9915, allocations: 3.024 MB / 400.3 MB, free: 70.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.9921, allocations: 1.048 MB / 401.3 MB, free: 69.97 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009339/0.9931, allocations: 142.6 kB / 401.5 MB, free: 69.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007698/0.9939, allocations: 351 kB / 401.8 MB, free: 69.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.9939, allocations: 0 / 401.8 MB, free: 69.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0788/1.073, allocations: 25.03 MB / 426.8 MB, free: 46.32 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002534/1.073, allocations: 136.2 kB / 427 MB, free: 46.13 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.554/4.628, allocations: 0 / 427 MB, free: 46.13 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat