Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.633/2.633, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.214e-05, allocations: 2.438 kB / 249.7 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 44.51 MB / 294.3 MB, free: 10.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5301/0.6424, allocations: 75.35 MB / 369.6 MB, free: 6.973 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003364/0.6428, allocations: 74.47 kB / 369.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05196/0.6948, allocations: 7.406 MB / 377.1 MB, free: 21.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.6949, allocations: 0 / 377.1 MB, free: 21.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.985e-05/0.695, allocations: 11.75 kB / 377.1 MB, free: 21.96 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.003488/0.6985, allocations: 0.6909 MB / 377.8 MB, free: 21.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001054/0.6986, allocations: 11.62 kB / 377.8 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004909/0.6992, allocations: 76.94 kB / 377.9 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.6994, allocations: 53.72 kB / 377.9 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006991/0.7001, allocations: 307.4 kB / 378.2 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.7002, allocations: 20.88 kB / 378.2 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.7004, allocations: 23.22 kB / 378.3 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001441/0.7018, allocations: 386.2 kB / 378.6 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.7032, allocations: 385.2 kB / 379 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.776e-05/0.7033, allocations: 7.781 kB / 379 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.572e-05/0.7034, allocations: 3.938 kB / 379 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.7034, allocations: 7.75 kB / 379 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004925/0.7084, allocations: 1.088 MB / 380.1 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.7098, allocations: 357.6 kB / 380.5 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007787/0.7106, allocations: 228.1 kB / 380.7 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.7107, allocations: 12.12 kB / 380.7 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.7108, allocations: 38.81 kB / 380.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 5.249e-06/0.7108, allocations: 0 / 380.8 MB, free: 20.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.006883/0.7177, allocations: 1.572 MB / 382.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.7178, allocations: 59.81 kB / 382.4 MB, free: 19.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.7182, allocations: 193.7 kB / 382.6 MB, free: 19.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001507/0.7184, allocations: 33.45 kB / 382.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.7186, allocations: 188.5 kB / 382.8 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.7188, allocations: 189.5 kB / 383 MB, free: 18.99 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.7189, allocations: 0 / 383 MB, free: 18.99 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.7191, allocations: 348.3 kB / 383.3 MB, free: 18.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/0.7198, allocations: 183.2 kB / 383.5 MB, free: 18.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000719/0.7206, allocations: 230.7 kB / 383.7 MB, free: 18.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008309/0.7214, allocations: 166.6 kB / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.7214, allocations: 4 kB / 383.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0034/0.7249, allocations: 0.6449 MB / 384.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.7249, allocations: 11.64 kB / 384.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.26e-05/0.725, allocations: 4.031 kB / 384.5 MB, free: 18.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.7265, allocations: 383.4 kB / 384.9 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/0.7275, allocations: 89.14 kB / 385 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/0.7302, allocations: 1.374 MB / 386.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.7317, allocations: 94.16 kB / 386.5 MB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.7319, allocations: 23.48 kB / 386.5 MB, free: 17.18 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003954/0.7323, allocations: 124.1 kB / 386.6 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.7325, allocations: 43.2 kB / 386.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003033/0.7355, allocations: 0.6513 MB / 387.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.7356, allocations: 3.875 kB / 387.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.7356, allocations: 4 kB / 387.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.7356, allocations: 7.938 kB / 387.3 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005653/0.7413, allocations: 1.27 MB / 388.6 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.7414, allocations: 0 / 388.6 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.7425, allocations: 86.86 kB / 388.7 MB, free: 16.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.7439, allocations: 358.1 kB / 389 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.7441, allocations: 23.22 kB / 389 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002496/0.7466, allocations: 1.339 MB / 390.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.7467, allocations: 0 / 390.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.7503, allocations: 0.9654 MB / 391.4 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004701/0.7508, allocations: 160.5 kB / 391.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.751, allocations: 7.594 kB / 391.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.7522, allocations: 74.48 kB / 391.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004898/0.7528, allocations: 122.9 kB / 391.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.7529, allocations: 27.06 kB / 391.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003168/0.7532, allocations: 163.5 kB / 391.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.7533, allocations: 0 / 391.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001095/0.7544, allocations: 112.2 kB / 392 MB, free: 14.27 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004584/0.759, allocations: 1.9 MB / 393.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002135/0.7612, allocations: 0.535 MB / 394.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.7613, allocations: 0 / 394.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.7626, allocations: 293.4 kB / 394.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.7638, allocations: 53.16 kB / 394.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008963/0.7728, allocations: 1.4 MB / 396.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006506/0.7735, allocations: 0.8284 MB / 397 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004237/0.774, allocations: 31.97 kB / 397 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.7744, allocations: 131.8 kB / 397.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.7744, allocations: 3.344 kB / 397.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07903/0.8534, allocations: 11.41 MB / 408.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000418/0.8539, allocations: 142.5 kB / 408.7 MB, free: 5.359 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.11/4.964, allocations: 0 / 408.7 MB, free: 5.359 MB / 314.7 MB "" Variables in the reference:time,clutch.phi_rel,clutch.w_rel,inertia3.phi,inertia3.w,spring.phi_rel,spring.w_rel,brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward Variables in the result:_D_outputAlias_tBrake,_D_outputAlias_tClutch,_D_outputAlias_tMotor,_D_outputAlias_tSpring,brake.a,brake.a_relfric,brake.cgeo,brake.f_normalized,brake.flange_a.phi,brake.flange_a.tau,brake.flange_b.phi,brake.flange_b.tau,brake.fn,brake.fn_max,brake.free,brake.locked,brake.lossPower,brake.mode,brake.mue0,brake.mue_pos[1,1],brake.mue_pos[1,2],brake.peak,brake.phi,brake.phi_support,brake.sa,brake.startBackward,brake.startForward,brake.support.phi,brake.support.tau,brake.tau,brake.tau0,brake.tau0_max,brake.useHeatPort,brake.useSupport,brake.w,brake.w_relfric,brake.w_small,clutch.a_rel,clutch.a_relfric,clutch.cgeo,clutch.f_normalized,clutch.flange_a.phi,clutch.flange_a.tau,clutch.flange_b.phi,clutch.flange_b.tau,clutch.fn,clutch.fn_max,clutch.free,clutch.locked,clutch.lossPower,clutch.mode,clutch.mue0,clutch.mue_pos[1,1],clutch.mue_pos[1,2],clutch.peak,clutch.phi_nominal,clutch.phi_rel,clutch.sa,clutch.startBackward,clutch.startForward,clutch.stateSelect,clutch.tau,clutch.tau0,clutch.tau0_max,clutch.useHeatPort,clutch.w_rel,clutch.w_relfric,clutch.w_small,const.k,const.y,der(brake.phi),der(brake.w),der(clutch.phi_rel),der(clutch.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(spring.phi_rel),der(spring.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,product.u1,product.u2,product.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,spring.a_rel,spring.c,spring.d,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.lossPower,spring.phi_nominal,spring.phi_rel,spring.phi_rel0,spring.stateSelect,spring.tau,spring.tau_c,spring.tau_d,spring.useHeatPort,spring.w_rel,startTime,step.height,step.offset,step.startTime,step.y,step2.height,step2.offset,step2.startTime,step2.y,tBrake,tClutch,tMotor,tSpring,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport